rack-oauth2 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 543910a8200b083c4111c1e65446d69f8080ef7c
4
- data.tar.gz: ea3a554df24491a246c37af25123ecf2b311704e
3
+ metadata.gz: d5e9c0b93779b062c4cd588a9b79f7d0f6b6bfae
4
+ data.tar.gz: b586a6ee419b7c46406029c0a3c683c95a919411
5
5
  SHA512:
6
- metadata.gz: 4638a95d1d9783ca6d8bcac07d532ed5657051392fe43757296b893ab4346c7989f0a209115f2608066a7f4b4d1dd5e2bcdac9051bcffcfc66ccbdb1de4e0197
7
- data.tar.gz: b67cfac2760b89e84f7492e641fa7804b075b2c2b79cf4043416950db6edee9f30bc931ec39191b276871768a0b4cfb99ef9cadb3897ab90669731bb5c4e8596
6
+ metadata.gz: 3378c4bc5f9bfafae6d12216d44fcc97fd6b474b188a68bc50bec298d9cc19ca680b1e5eac80b5e7297f9f2d13567572b7a67f0c1e904a39c4bac26f17bd34c6
7
+ data.tar.gz: fc93246b58a617d21fb0d1ea2c0b95af705aa6305408e83808c80c68dddb6783487f4cf47b6a5d58ff514d706a41bce8847493715b9cb3b271f8a4d3d7e8b223
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
+ before_install:
2
+ - gem install bundler
3
+
1
4
  rvm:
2
- - 1.9.3
3
- - 2.0.0
4
- - 2.1.6
5
- - 2.2.2
5
+ - 2.0
6
+ - 2.1
7
+ - 2.2
8
+ - 2.3.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
@@ -13,15 +13,14 @@ module Rack
13
13
  @scope = Array(params['scope'].to_s.split(' '))
14
14
  end
15
15
 
16
- def attr_missing_with_error_handling!
16
+ def attr_missing!
17
17
  if params['client_id'].present? && @client_id != params['client_id']
18
18
  invalid_request! 'Multiple client credentials are provided.'
19
19
  end
20
- attr_missing_without_error_handling!
20
+ super
21
21
  rescue AttrRequired::AttrMissing => e
22
22
  invalid_request! e.message, state: @state, redirect_uri: @redirect_uri
23
23
  end
24
- alias_method_chain :attr_missing!, :error_handling
25
24
  end
26
25
  end
27
26
  end
@@ -9,7 +9,7 @@ module Rack
9
9
  def initialize(app, realm = nil, &authenticator)
10
10
  @app = app
11
11
  @realm = realm
12
- super &authenticator
12
+ super(&authenticator)
13
13
  end
14
14
 
15
15
  def call(env)
data/spec/helpers/time.rb CHANGED
@@ -1,13 +1,15 @@
1
1
  class Time
2
2
  class << self
3
- def now_with_fixed_time
4
- if @fixed_time
5
- @fixed_time.dup
6
- else
7
- now_without_fixed_time
3
+ module NowWithFixedTime
4
+ def now
5
+ if @fixed_time
6
+ @fixed_time.dup
7
+ else
8
+ super
9
+ end
8
10
  end
9
11
  end
10
- alias_method_chain :now, :fixed_time
12
+ prepend NowWithFixedTime
11
13
 
12
14
  def fix(time = Time.now)
13
15
  @fixed_time = time
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
283
283
  version: 1.3.6
284
284
  requirements: []
285
285
  rubyforge_project:
286
- rubygems_version: 2.4.5
286
+ rubygems_version: 2.5.1
287
287
  signing_key:
288
288
  specification_version: 4
289
289
  summary: OAuth 2.0 Server & Client Library - Both Bearer and MAC token type are supported