garage_client 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 580980067ed04267e85d03e5a9f0fdfef39ebac8142e9110a9bc42f622e2fb02
4
- data.tar.gz: 59bc77a7d6499d2f22e7bb3434b0756d2315abfe104cbd883bef653fe2cda52b
3
+ metadata.gz: b719783d93f2fe8a23421f6a05946aa376623d953c99ba1a3cf5435a5d248ac0
4
+ data.tar.gz: 40287bfa976d8608d43a67cd3b50135e1618a28232346508f6ad319d50cf1262
5
5
  SHA512:
6
- metadata.gz: 8a7cba1f1cba35a7bf16bb0c2f00bbcb046a759ed372bddea33878a355bef8a7e39f8b9914645d2d25e86a36e66544632122b186b966afc7f37527d469fb3518
7
- data.tar.gz: e58414b3291d9b60dae0d7d82f516e7b587b9005facc1b2f889a6fa0f3632111109f2cac3e434c68409765f7d31a8c7f4f12bc9f0e7c4a8de45b0622581f6c43
6
+ metadata.gz: bebf81e6430a3765d0f4f970aeca63c6ee059050c2d5f1a9a58b611d17b80f0a6bc91f756f85dee2a2c3d5e7a091ef75a3b5fd87b282288e238494dac213b6cc
7
+ data.tar.gz: 20a0ae03b1803f66a2b3f1ad47329990326f96004c667091600d474c63c7a2e0d65ea037aa026af6880677137e11432b6b284cbd8ba078e8593443aa5f6d7c8e
data/.travis.yml CHANGED
@@ -2,10 +2,10 @@ language: ruby
2
2
 
3
3
  rvm:
4
4
  - ruby-head
5
- - 2.5.3
6
- - 2.4.5
7
- - 2.3.8
8
- - 2.2.10
5
+ - 3.0.0
6
+ - 2.7.2
7
+ - 2.6.6
8
+ - 2.5.8
9
9
  matrix:
10
10
  allow_failures:
11
11
  - rvm: "ruby-head"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.4.5
2
+ - Drop support for Ruby 2.5
3
+ - Remove implicit dependency on Active Support
4
+
1
5
  ## 2.4.4
2
6
  - Remove activesupport dependency
3
7
  - Fix request ID not being propagated
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
- delegate key, "#{key}=", to: :configuration
28
- end
26
+ [*GarageClient::Configuration.keys, :default_headers].each do |key|
27
+ define_method(key) do
28
+ configuration.public_send(key)
29
+ end
29
30
 
30
- delegate 'default_headers', 'default_headers=', to: :configuration
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
@@ -27,7 +27,7 @@ module GarageClient
27
27
  end
28
28
 
29
29
  def headers
30
- @headers ||= GarageClient.configuration.headers.merge(given_headers.stringify_keys)
30
+ @headers ||= GarageClient.configuration.headers.merge(given_headers.transform_keys(&:to_s))
31
31
  end
32
32
  alias :default_headers :headers
33
33
 
@@ -1,3 +1,3 @@
1
1
  module GarageClient
2
- VERSION = '2.4.4'
2
+ VERSION = '2.4.5'
3
3
  end
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
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-01-14 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday