incident_io_sdk 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/incident_io_sdk.gemspec +1 -1
- data/lib/incident_io_sdk/api_client.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c1c566a2f77bb11b3ac7dde8aa6d309fe2fb0d8dac2be808cc152337f19d416
|
4
|
+
data.tar.gz: dd298e847b919a62d73d6957ec819c486dfe4d9df51e114cd577457bd59b10e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17073d38370555e9790805aed6270b9fda7345406d51753e9be38b4489de9d6fac54016d7edcf7898977e5999ddc259dcbc71438fe959e1706c40313cc14fcd7
|
7
|
+
data.tar.gz: cf9de664e22b5dbcff09ce22cb6f1a18112821fa8a43055cc8fbfac433e11b8e846fec050eefeccb26975caae03260c1085e004e0bbdd45eef6bea59f6059e8d
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ gem install incident_io_sdk
|
|
23
23
|
Alternatively, you can add it to your `Gemfile`:
|
24
24
|
|
25
25
|
```ruby
|
26
|
-
gem 'incident_io_sdk', '~> 0.1.
|
26
|
+
gem 'incident_io_sdk', '~> 0.1.1'
|
27
27
|
```
|
28
28
|
|
29
29
|
Then run:
|
@@ -85,8 +85,8 @@ For development purposes, you can run the SDK in a local environment:
|
|
85
85
|
1. Clone the repository:
|
86
86
|
|
87
87
|
```bash
|
88
|
-
git clone https://github.com/mustafabayar/
|
89
|
-
cd
|
88
|
+
git clone https://github.com/mustafabayar/incident-io-sdk.git
|
89
|
+
cd incident-io-sdk
|
90
90
|
```
|
91
91
|
|
92
92
|
2. Install dependencies:
|
data/incident_io_sdk.gemspec
CHANGED
@@ -96,6 +96,10 @@ module IncidentIoSdk
|
|
96
96
|
http_method = http_method.to_sym.downcase
|
97
97
|
|
98
98
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
99
|
+
if @config.access_token_with_refresh
|
100
|
+
header_params['Authorization'] = "Bearer #{@config.access_token_with_refresh}"
|
101
|
+
end
|
102
|
+
|
99
103
|
query_params = opts[:query_params] || {}
|
100
104
|
form_params = opts[:form_params] || {}
|
101
105
|
follow_location = opts[:follow_location] || true
|