katalyst-google-apis 1.2.0 → 1.2.1

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: 9811888c443080f2c6e2107db38c63738cfebe5bbcb912779792924401301db1
4
- data.tar.gz: c247d6f9e6587a57d7375766e3db44f20c6278236016a44eab54a988f3449a23
3
+ metadata.gz: 134e4c5aacc319e53670df643c6252452ab1e865c77132a3de28427b6f762a70
4
+ data.tar.gz: f6e3756bbc7a329c4920340d4a9e446a81fe47f999afbf8437e6cbced7ad824c
5
5
  SHA512:
6
- metadata.gz: 1db1c91469d9628497630629ea4a4d2fa96da7051fc5716bd59a661f01c2fbad7c4ace74094f0e46d880bcf3e2762e0c8dc904098d5cdf151fc90a647b5f7cf4
7
- data.tar.gz: 0d6829ce0f4164179d7b2b6f1d871b9eba78498e7cf9ccb67f9a362d3e1ab3617bd2d5c7848427234e654e03786191b029b0749b24dc11055cad27c6252c1b98
6
+ metadata.gz: 6e5ea2e4950182c34aeacce541c724e33781ff220f71140260aec7fabf103188a667099d644cc49c87df53d76752c9c25423a3114ea22595c94ee5a00c10dfac
7
+ data.tar.gz: 57940e6e4e33caccb19179975047d1380d6d7a76162e373df7dd15403aa787835f1d6b23d2ad3d2f0b38321bebf1b8d6307c972e7dc0c93606add6b4d907200a
@@ -23,7 +23,7 @@ module Katalyst
23
23
  @credentials.apply!(http.headers)
24
24
  end
25
25
 
26
- if @response.content_type == "application/json"
26
+ if %r{^application\/json}.match?(@response.content_type)
27
27
  @result = JSON.parse(response.body, symbolize_names: true)
28
28
  else
29
29
  raise GoogleApis::Error.new(
@@ -23,7 +23,7 @@ module Katalyst
23
23
  @credentials.apply!(http.headers)
24
24
  end
25
25
 
26
- if @response.content_type == "application/json"
26
+ if %r{^application\/json}.match?(@response.content_type)
27
27
  @result = JSON.parse(response.body, symbolize_names: true)
28
28
  else
29
29
  raise GoogleApis::Error.new(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-google-apis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive