spinacz 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spinacz/client.rb +2 -2
- data/lib/spinacz/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5861bb5b09cbf8fb9e9c074b4f203f3ca534c149
|
4
|
+
data.tar.gz: ecc83e11fa2d1f634042b69e9d05bade53624d65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81b34386e0209250588010d84ef322bbfe6e2b31084c629cf801eb2ba6aba5c2a2999e1c235aca66dd424ab2f6d4de1a7a3a6b9f61f0cbf9492a3f7968b6bd1f
|
7
|
+
data.tar.gz: a1341758454ef1834179bc60cd1c02022feabf486c80b11a19e1de4f691e86ac4edb60d640896cd2b9123f736eeccf3b37ebd356033d1461abb70a36cb35f84c
|
data/lib/spinacz/client.rb
CHANGED
@@ -116,13 +116,13 @@ module Spinacz
|
|
116
116
|
if body['error'].nil?
|
117
117
|
body['success']
|
118
118
|
else
|
119
|
-
raise Spinacz::ParametersInvalidError,
|
119
|
+
raise Spinacz::ParametersInvalidError, "Wrong parameters provided. Full error response: #{body['error']}"
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
123
|
def check_credentials
|
124
124
|
unless (@password.present? and @email.present?) or @token.present?
|
125
|
-
raise Spinacz::CredentialsMissingError, '
|
125
|
+
raise Spinacz::CredentialsMissingError, 'Email with password or token are missing.'
|
126
126
|
end
|
127
127
|
|
128
128
|
unless @token.present?
|
data/lib/spinacz/version.rb
CHANGED