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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb284c543994a5660f3b60ba3656cdbbe70d9c993b7cf52c8bc0e82d9e3b4f10
4
- data.tar.gz: c9f3d6e58f7e1ce02e725f8c3beb06338c02e3a69dcfdddc8977c074bce35423
3
+ metadata.gz: 8c1c566a2f77bb11b3ac7dde8aa6d309fe2fb0d8dac2be808cc152337f19d416
4
+ data.tar.gz: dd298e847b919a62d73d6957ec819c486dfe4d9df51e114cd577457bd59b10e8
5
5
  SHA512:
6
- metadata.gz: 97fad55a779f7562e4c0b78bfce8e2e813ac47b75000279a447779091561cc3a79f71f21474b1fff974941fa8b7bc4df2fde42a75cc8ce236d87182d47ef5478
7
- data.tar.gz: 38750af862dd74cecfd5542ee257260b699d0b39dcc4547aaba08b2d77bcc2b5eb566420a43314971366eee5f60ae6ffea184e61d76de3358189a9cf0e05368a
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.0'
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/incident_io_ruby_sdk.git
89
- cd incident_io_ruby_sdk
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:
@@ -4,7 +4,7 @@
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "incident_io_sdk"
7
- s.version = "0.1.1"
7
+ s.version = "0.1.2"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Mustafa Bayar"]
10
10
  s.email = ["mbcoders@gmail.com"]
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incident_io_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mustafa Bayar