spinacz 0.0.9 → 0.0.10
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 +3 -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: 6316abf3ecaca396344b514ece545f61d41d179b
|
4
|
+
data.tar.gz: 6b0cd5b0b56232ae402b80e64819339d9f51b7fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5905d41caf4d7c350eae1bdb1c1dda9c4b48ef6250d6cba270f415727f3b9c5fd5983bc39dc7eb97f00a349f31d48263f54f5435a82cf578c90342881d2bbdc4
|
7
|
+
data.tar.gz: 0aabf1ae266fd6bb538fcb266f03eddaeb4fe969b7efeaafd882c2cad7846f62532541979194d8abc74b060920191287aac5df6df9ee773ad39beb22bc8f0bcc
|
data/lib/spinacz/client.rb
CHANGED
@@ -127,8 +127,9 @@ module Spinacz
|
|
127
127
|
|
128
128
|
unless @token.present?
|
129
129
|
authorization = call_api(:get, 'login', {email: @email, password: Digest::SHA256.hexdigest(@password)})
|
130
|
-
|
131
|
-
|
130
|
+
|
131
|
+
if authorization['hash'].present?
|
132
|
+
@token = authorization['hash']
|
132
133
|
else
|
133
134
|
raise Spinacz::CredentialsInvalidError, 'email or password is invalid'
|
134
135
|
end
|
data/lib/spinacz/version.rb
CHANGED