yt-auth 0.3.0 → 0.3.1

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: 90acfd2ff7bdc68980c0c12c9e72761981cecb55
4
- data.tar.gz: 863100fe5cfcf1429428980fd18f0df8c8b1c2c5
3
+ metadata.gz: 7fe566f505bb9ce9a4481ce80a8b280b8d2e9647
4
+ data.tar.gz: 874cd60e6091c8b75d0c0981bdcba59076534060
5
5
  SHA512:
6
- metadata.gz: 21301ea2bd24299adc34767cdbc33d21fd96c622bd562ded4c420a4ccfd237a32b3c5b708a9e64ae2dffdd1e1296fcb3ff041eff71db8e5ef0da564f0299f2b8
7
- data.tar.gz: 1da658c63db79a7908f6ba1ba11052e1835eb6bc1b82b5753be318b4d5c2a002beb547406f73280094e4ee405af622dd74d3ca87948f2f9d1efcb66d050d3cb0
6
+ metadata.gz: 1a2bb317a6c99de5e2fee9e8f687884e801570a87f1623a7d76fe3e2a4f627e30af9cbda0c02fdf0fea6fcd9136003020fd942c2599512d901d14efc177836e8
7
+ data.tar.gz: 970fc17a7774877192ab4561fc482e03a288ae18da10a1a5342878e2b3f18e0cf614f85f602eb52e88492892b84fedede286876eebf8e220e85eb7c38c2285a1
@@ -6,6 +6,10 @@ For more information about changelogs, check
6
6
  [Keep a Changelog](http://keepachangelog.com) and
7
7
  [Vandamme](http://tech-angels.github.io/vandamme).
8
8
 
9
+ ## 0.3.1 - 2017-08-26
10
+
11
+ * [ENHANCEMENT] Add placeholder method to be notified when token is refreshed.
12
+
9
13
  ## 0.3.0 - 2017-08-25
10
14
 
11
15
  **How to upgrade**
@@ -70,6 +70,12 @@ module Yt
70
70
  tokens['refresh_token']
71
71
  end
72
72
 
73
+ # Placeholder method that can be invoked after a refresh token is used
74
+ # to generate a new access token. Applications can override this method,
75
+ # for instance to store the new token in a database
76
+ def access_token_was_refreshed
77
+ end
78
+
73
79
  private
74
80
 
75
81
  def self.url_params(options)
@@ -2,6 +2,6 @@ module Yt
2
2
  class Auth
3
3
  # @return [String] the SemVer-compatible gem version.
4
4
  # @see http://semver.org
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yt-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-08-26 00:00:00.000000000 Z
12
+ date: 2017-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yt-support