garage_client 2.4.4 → 2.4.5
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/.travis.yml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/garage_client.rb +8 -4
- data/lib/garage_client/client.rb +1 -1
- data/lib/garage_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b719783d93f2fe8a23421f6a05946aa376623d953c99ba1a3cf5435a5d248ac0
|
4
|
+
data.tar.gz: 40287bfa976d8608d43a67cd3b50135e1618a28232346508f6ad319d50cf1262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bebf81e6430a3765d0f4f970aeca63c6ee059050c2d5f1a9a58b611d17b80f0a6bc91f756f85dee2a2c3d5e7a091ef75a3b5fd87b282288e238494dac213b6cc
|
7
|
+
data.tar.gz: 20a0ae03b1803f66a2b3f1ad47329990326f96004c667091600d474c63c7a2e0d65ea037aa026af6880677137e11432b6b284cbd8ba078e8593443aa5f6d7c8e
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/garage_client.rb
CHANGED
@@ -23,11 +23,15 @@ end
|
|
23
23
|
|
24
24
|
module GarageClient
|
25
25
|
class << self
|
26
|
-
GarageClient::Configuration.keys.each do |key|
|
27
|
-
|
28
|
-
|
26
|
+
[*GarageClient::Configuration.keys, :default_headers].each do |key|
|
27
|
+
define_method(key) do
|
28
|
+
configuration.public_send(key)
|
29
|
+
end
|
29
30
|
|
30
|
-
|
31
|
+
define_method("#{key}=") do |value|
|
32
|
+
configuration.public_send("#{key}=", value)
|
33
|
+
end
|
34
|
+
end
|
31
35
|
|
32
36
|
def configuration
|
33
37
|
@configuration ||= GarageClient::Configuration.new
|
data/lib/garage_client/client.rb
CHANGED
@@ -27,7 +27,7 @@ module GarageClient
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def headers
|
30
|
-
@headers ||= GarageClient.configuration.headers.merge(given_headers.
|
30
|
+
@headers ||= GarageClient.configuration.headers.merge(given_headers.transform_keys(&:to_s))
|
31
31
|
end
|
32
32
|
alias :default_headers :headers
|
33
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: garage_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cookpad Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|