rest-client-jogger 1.2.2 → 1.3.0

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: 8e4edb81a85281c1b4c9c61c4669472bd0f55e64aea4047b47070c4d643b35c2
4
- data.tar.gz: e05c73234bd1207aab4876fae3f7c0fb35b2e71048d10a318b022d07a6fef44e
3
+ metadata.gz: 47ca02af5a3db97a2fe9f198002fdaca8e8df2bda98cd8bcd1f084b70518fbf3
4
+ data.tar.gz: 3707a76bcc37703ff62aaf87f26886323015db8331246dff7fc75e924c871e63
5
5
  SHA512:
6
- metadata.gz: b13b42d35fd1a5905e68ded7b6e05b83bfecf96cf6759e96a7b892fb55ad734ca7abf77b4726316fd541accd53ffc98e8c96c98bdba3aa9d96d729494d29a753
7
- data.tar.gz: a0fb29e19867dd25c53d1fe184783c4ebadeb1e12718d327b3378ffc184c3ca8b3880a2640daa3a4fd44bb70511537c08e9f91eed20de96af394d5b783ab7857
6
+ metadata.gz: 1416bc0d1542f4d5b3ec43a22653f6904b22712004dc30b63d18d043c5f3f080711be75dfc2179a9474c025154af3809e2e4a28fafda2b721b19c4c38c5c60b1
7
+ data.tar.gz: f906820f356edc342087acba2f640bfcf27da162979b3abfe4104aea3310192f175f5a3038bbed3750d69f955a171aa0df308ead12f17727c27dbd9066c49f2f
@@ -51,7 +51,8 @@ module RestClient
51
51
  end
52
52
 
53
53
  def filter_class(headers = {})
54
- content_type = headers.fetch(:content_type) { 'application/json' }
54
+ normalized_headers = headers.transform_keys { |k| k.to_s.downcase.tr('-', '_') }
55
+ content_type = normalized_headers.fetch('content_type') { 'application/json' }
55
56
  RestClient::Jogger::Filters::Base.filter_class(content_type)
56
57
  end
57
58
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RestClient
4
4
  module Jogger
5
- VERSION = '1.2.2'
5
+ VERSION = '1.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-client-jogger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Babe
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-01-19 00:00:00.000000000 Z
13
+ date: 2021-03-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport