json_api_client 1.24.0 → 1.25.0

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: d34333a9685c123e07f1228da31f6d9d2ca9d02ab32f9a3eed993de1e602a22a
4
- data.tar.gz: a5c5a7671ececeb97744373b52cf21531f32c2ae273d7006c60d69d06e63e847
3
+ metadata.gz: a44938030a209388a4af552361f130f48e8e0f1454c4f54822181457089699b9
4
+ data.tar.gz: 6522b3b1f6e5555c57d7963c9d6928b4a4c8cb863411329b579cdab95af61a62
5
5
  SHA512:
6
- metadata.gz: 6fa9466ddb2c5e6a95a022391433683d3c8e6454afc0a09255db3028cac75834355626f9b498f2ef5e9d8fa7e507408332f5a345f475f6a69fb3b8ea32432806
7
- data.tar.gz: 1f655052d6802f021d8882e7fff9c4cec52756ced5f5ea8c07fbc77dea074a1bf787134c1059ee93fd9e75095230bc022c4c7cc3c63a350f797a875cc2891a98
6
+ metadata.gz: 3e115b8ef3801da7a7de825f04e483ecfa3f1fe0177f968c1a8532edce600002b67d01e598b032226bc87d473c9cee7e637d900e9701dba2f3cfee47648e054a
7
+ data.tar.gz: 30f14cf2cf25fa60c6ad51ed01f846cbbf403e5cdc3e61d924ce93b4c9e3c1e18654242e166d0a70c1211b60ec7642da67d86ca76884c045f9931f2b3e101c08
@@ -184,10 +184,11 @@ module JsonApiClient
184
184
  # @param headers [Hash] The headers to send along
185
185
  # @param block [Block] The block where headers will be set for
186
186
  def with_headers(headers)
187
+ previous_headers = self.custom_headers
187
188
  self._custom_headers = headers
188
189
  yield
189
190
  ensure
190
- self._custom_headers = {}
191
+ self._custom_headers = previous_headers
191
192
  end
192
193
 
193
194
  # The current custom headers to send with any request made by this
@@ -1,3 +1,3 @@
1
1
  module JsonApiClient
2
- VERSION = "1.24.0"
2
+ VERSION = "1.25.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Ching