smartring 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartling/verbs.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 741dbf42aa9de27318d99f7eac4fdb4cf35d6ef7ac39c20060bd6194834e5860
|
4
|
+
data.tar.gz: a972a6ecf5ca1673e218813cb5e04f0e883a9454ded88bb5ba13ecc8f6cfe889
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e76910cddf5a692848f809181414393c3a091c7a70f1976cea4ee8d1f9b58a18c04136c765fee0525ab2d76195ea204d669cf97f49d531e7ac841f0b16af0e1
|
7
|
+
data.tar.gz: 9bece99febd92073a7ac6685bcc4ad38d894b4c7080534b39e7d27c3c5b6802f2557503181b875e9680acded08880e88865fce1a89155ff256f4ad9e1dca28cd
|
data/lib/smartling/verbs.rb
CHANGED
@@ -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]
|
12
|
+
hh = HipsterHash[resp]
|
13
|
+
return hh unless hh.key?(:response)
|
14
|
+
hh.response
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|