smartring 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smartling/verbs.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 645aad2f02c28fdd93e82b3bc05ca9a605148e1ff863e477c7a58491bf0c5803
4
- data.tar.gz: 3d221a65cf62ce78008f170e77de7de0c60fd4aa40a682fd423e228d508b6ac3
3
+ metadata.gz: 741dbf42aa9de27318d99f7eac4fdb4cf35d6ef7ac39c20060bd6194834e5860
4
+ data.tar.gz: a972a6ecf5ca1673e218813cb5e04f0e883a9454ded88bb5ba13ecc8f6cfe889
5
5
  SHA512:
6
- metadata.gz: 5c655506db6372da29e716e42c03e432349e2982ff8e34fbf373174e0c91557ab7457002cd3047a3ea1428c5f9ab91acb3d72902391358dd3f6bc64020da484d
7
- data.tar.gz: 9e2c3dd5b40645adf4a08a5ec862e78d243b799d70c1424cfe7725786d054468fde3835973b7ed6f7aed06c07afe268837348f0d977b94a34fbb3210325209f4
6
+ metadata.gz: 4e76910cddf5a692848f809181414393c3a091c7a70f1976cea4ee8d1f9b58a18c04136c765fee0525ab2d76195ea204d669cf97f49d531e7ac841f0b16af0e1
7
+ data.tar.gz: 9bece99febd92073a7ac6685bcc4ad38d894b4c7080534b39e7d27c3c5b6802f2557503181b875e9680acded08880e88865fce1a89155ff256f4ad9e1dca28cd
@@ -9,7 +9,9 @@ module Smartling
9
9
  (options[:headers] ||= {})[:Authorization] = "Bearer #{token}"
10
10
  resp = self.class.send(verb, path, options).parsed_response
11
11
  return resp unless resp.is_a?(Hash)
12
- HipsterHash[resp].response
12
+ hh = HipsterHash[resp]
13
+ return hh unless hh.key?(:response)
14
+ hh.response
13
15
  end
14
16
  end
15
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - JJ Buckley