Skip to content

Commit

Permalink
Bump version to 0.1.7 and add error handler for token
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelamjad committed Aug 10, 2016
1 parent 83fec28 commit 5f1a75a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
------------------

0.1.6 (10-08-2016)
0.1.7 (10-08-2016)
------------------
* **Feature** - You can now provide a ``HTTPClient`` instantation for proxy purposes
- ```ruby
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ You can use bundler and refer directly to this repository
```
gem 'poke-go-api',
git: "https://github.com/nabeelamjad/poke-api.git",
tag: '0.1.6'
tag: '0.1.7'
```

Or, alternatively you can download the repository and run ``gem build poke-api.gemspec`` followed with ``gem install poke-api-0.1.6.gem``
Or, alternatively you can download the repository and run ``gem build poke-api.gemspec`` followed with ``gem install poke-api-0.1.7.gem``

The gem is also available by using ``gem install poke-go-api`` (poke-api was taken as a name already).

Expand Down
2 changes: 2 additions & 0 deletions lib/poke-api/auth/google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def access_token_from_refresh_token

@access_token = data['id_token']
@expiry = data['expires_in'].to_i + Helpers.fetch_time(ms: false)

raise 'Invalid refresh token' unless data['id_token']
end

def perform_request(method)
Expand Down
2 changes: 1 addition & 1 deletion lib/poke-api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Poke
module API
VERSION = '0.1.6'.freeze
VERSION = '0.1.7'.freeze
end
end

0 comments on commit 5f1a75a

Please sign in to comment.