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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da82fbd825e5c9d7f0a9505ebd16ccf5d19a2b33
4
- data.tar.gz: 20d2612aea6aeb87173dcb8120d31bf9c342f2fe
3
+ metadata.gz: 6316abf3ecaca396344b514ece545f61d41d179b
4
+ data.tar.gz: 6b0cd5b0b56232ae402b80e64819339d9f51b7fc
5
5
  SHA512:
6
- metadata.gz: 0467d05f331f2be03653d65f9d0c3f1ff57d07871766138a82493a654a8def19bb74b89b4a3596c658106d3137eca22fa1bb6b84ea4f279a72e221eea01ee153
7
- data.tar.gz: 4e68dfc5d75427903a9e7b775b97efcfb89ff861c8aa7d9b7b70d75712e327447a9ea31cb2f0dfe3bbf0ef705bf5b003dbc90c03f21e6249812d4142fc8600e8
6
+ metadata.gz: 5905d41caf4d7c350eae1bdb1c1dda9c4b48ef6250d6cba270f415727f3b9c5fd5983bc39dc7eb97f00a349f31d48263f54f5435a82cf578c90342881d2bbdc4
7
+ data.tar.gz: 0aabf1ae266fd6bb538fcb266f03eddaeb4fe969b7efeaafd882c2cad7846f62532541979194d8abc74b060920191287aac5df6df9ee773ad39beb22bc8f0bcc
@@ -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
- if authorization['success'].present?
131
- @token = authorization['success']['hash']
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
@@ -1,3 +1,3 @@
1
1
  module Spinacz
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spinacz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Jan Adamczyk