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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93e1e0dbedd4bb87f26db3d1c4323a72ef40dc79
4
- data.tar.gz: 3d618247d3484c4b045008a969671e8a46b9fde4
3
+ metadata.gz: e331a96fb02dc14c0c2d53a4ab99eb8c5a47a592
4
+ data.tar.gz: 08f284fdd9562ae53a8f6ff423c35375a2bae849
5
5
  SHA512:
6
- metadata.gz: c0a5e1ff81e3965670f49e6c8e0b76b7eef9d85cb14ebf61df7deb4c8dcd64f6127d7bddca7dccf9b2da64e57cc5e7af222fa78fcfad66392aea8c7c160faa65
7
- data.tar.gz: 8dea41292eda03544f1c3fa01ccf4d9c381356c9a19cf1d2c1cb7141c1bf84dca9574136f48c0eeb2065d5b4ae07f0693b0e1a84b3dd5084cd0ec50f5ba60ce8
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) == 'invalid_resource_owner' ? 'Invalid email or password.' : 'There seems to be a connection problem'
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
@@ -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.5'
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.5
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-17 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler