zooppa_api_v3 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zooppa_api_v3.rb +2 -2
- data/zooppa_api_v3.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e331a96fb02dc14c0c2d53a4ab99eb8c5a47a592
|
4
|
+
data.tar.gz: 08f284fdd9562ae53a8f6ff423c35375a2bae849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccaa56dcd5e0325b700143a023f4b367cbfaec7133a1a7b8b684da5d62927d362f49d93a5eca9bd80de6ab0089ccbe6ef765b730101f16d2c0a4987dcd47660f
|
7
|
+
data.tar.gz: fa2e82b14bc853f3d935993eb5c484eaf8902d3fd502aeb8624e39db3fd3171fa7b39f08c37ddb9fbddb7e24b620d5879a563a800153c757c50fb5dfc96627e4
|
data/lib/zooppa_api_v3.rb
CHANGED
@@ -193,7 +193,7 @@ class ZooppaApiV3
|
|
193
193
|
client = OAuth2::Client.new(
|
194
194
|
@app_id,
|
195
195
|
@app_secret,
|
196
|
-
site: @api_host
|
196
|
+
site: @api_host + '.json'
|
197
197
|
)
|
198
198
|
token = client.password.get_token(email, password).token
|
199
199
|
@encrypt ? encrypt_token(token) : token
|
@@ -210,7 +210,7 @@ class ZooppaApiV3
|
|
210
210
|
end
|
211
211
|
|
212
212
|
def parse_error_message(e)
|
213
|
-
msg = e.try(:code) == '
|
213
|
+
msg = e.try(:code) == 'invalid_grant' ? 'Invalid email or password.' : 'There seems to be a connection problem'
|
214
214
|
{ error: msg }
|
215
215
|
end
|
216
216
|
end
|
data/zooppa_api_v3.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "zooppa_api_v3"
|
8
|
-
spec.version = '0.0.
|
8
|
+
spec.version = '0.0.6'
|
9
9
|
spec.authors = ["Ulrich Soeffing"]
|
10
10
|
spec.email = ["ulrich_soeffing@gmx.de"]
|
11
11
|
spec.description = "Wrapper for the Zooppa api v3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zooppa_api_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ulrich Soeffing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|