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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6316abf3ecaca396344b514ece545f61d41d179b
4
- data.tar.gz: 6b0cd5b0b56232ae402b80e64819339d9f51b7fc
3
+ metadata.gz: 5861bb5b09cbf8fb9e9c074b4f203f3ca534c149
4
+ data.tar.gz: ecc83e11fa2d1f634042b69e9d05bade53624d65
5
5
  SHA512:
6
- metadata.gz: 5905d41caf4d7c350eae1bdb1c1dda9c4b48ef6250d6cba270f415727f3b9c5fd5983bc39dc7eb97f00a349f31d48263f54f5435a82cf578c90342881d2bbdc4
7
- data.tar.gz: 0aabf1ae266fd6bb538fcb266f03eddaeb4fe969b7efeaafd882c2cad7846f62532541979194d8abc74b060920191287aac5df6df9ee773ad39beb22bc8f0bcc
6
+ metadata.gz: 81b34386e0209250588010d84ef322bbfe6e2b31084c629cf801eb2ba6aba5c2a2999e1c235aca66dd424ab2f6d4de1a7a3a6b9f61f0cbf9492a3f7968b6bd1f
7
+ data.tar.gz: a1341758454ef1834179bc60cd1c02022feabf486c80b11a19e1de4f691e86ac4edb60d640896cd2b9123f736eeccf3b37ebd356033d1461abb70a36cb35f84c
@@ -116,13 +116,13 @@ module Spinacz
116
116
  if body['error'].nil?
117
117
  body['success']
118
118
  else
119
- raise Spinacz::ParametersInvalidError, 'wrong parameters provided'
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, 'email with password or token are missing'
125
+ raise Spinacz::CredentialsMissingError, 'Email with password or token are missing.'
126
126
  end
127
127
 
128
128
  unless @token.present?
@@ -1,3 +1,3 @@
1
1
  module Spinacz
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Jan Adamczyk