omniauth-oauth2 1.3.0 → 1.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: 97b27d270aece449c0fbd5318ef61056b3179b03
4
- data.tar.gz: 94cc90831da565635c64c5ff036926c7999d3619
3
+ metadata.gz: 414a1411316ba3f8463a30120106b6a89bb62c50
4
+ data.tar.gz: 6c2e2383286d4f5ed5e86daf82d74dda2611d716
5
5
  SHA512:
6
- metadata.gz: 021f0ccaed1fb0bca365ea86ffc31c955e678da42fdad37f8083c71132d7f365af84d0f21da143f6328cb658a26d4e789249d9743899c776bf3872fda0529b9b
7
- data.tar.gz: 68ad4394e13f8adce5aac65da939f823b572ab58d11928ee05d1fba4e932360db79893e1038ac7d039094467c9a3fe98fea564a064b4802ff06d0a53082a549e
6
+ metadata.gz: b62f9e18f9b832f556de30b1a3f085c26266dbd108c9244d441320960e4e0e6e30fb3e9ffe5addf1adf687cab8999f255c0351e3efb2a2daef1cc21e450c1f1f
7
+ data.tar.gz: b83fb3b97ef73310a898d204eed6f6501eba58535eb8829129a239f2a349ea0620cb78477697f1a75e3fcf1d600f40763340dcb27be80c12c7aff382949fce16
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module OAuth2
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
@@ -14,6 +14,10 @@ module OmniAuth
14
14
  class OAuth2
15
15
  include OmniAuth::Strategy
16
16
 
17
+ def self.inherited(subclass)
18
+ OmniAuth::Strategy.included(subclass)
19
+ end
20
+
17
21
  args [:client_id, :client_secret]
18
22
 
19
23
  option :client_id, nil
@@ -16,6 +16,15 @@ describe OmniAuth::Strategies::OAuth2 do
16
16
  OmniAuth.config.test_mode = false
17
17
  end
18
18
 
19
+ describe "Subclassing Behavior" do
20
+ subject { fresh_strategy }
21
+
22
+ it "performs the OmniAuth::Strategy included hook" do
23
+ expect(OmniAuth.strategies).to include(OmniAuth::Strategies::OAuth2)
24
+ expect(OmniAuth.strategies).to include(subject)
25
+ end
26
+ end
27
+
19
28
  describe "#client" do
20
29
  subject { fresh_strategy }
21
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-22 00:00:00.000000000 Z
12
+ date: 2015-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.4.5
98
+ rubygems_version: 2.4.8
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: An abstract OAuth2 strategy for OmniAuth.