devise_oauth 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  .bundle/
2
+ .idea/
2
3
  log/*.log
3
4
  pkg/
4
5
  spec/dummy/db/*.sqlite3
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise_oauth (3.0.0)
4
+ devise_oauth (3.0.2)
5
5
  devise (>= 2.1)
6
- rails (>= 3.0.0)
6
+ rails (>= 4.0.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
@@ -25,14 +25,14 @@ GEM
25
25
  activerecord-deprecated_finders (~> 1.0.2)
26
26
  activesupport (= 4.0.1)
27
27
  arel (~> 4.0.0)
28
- activerecord-deprecated_finders (1.0.3)
28
+ activerecord-deprecated_finders (1.0.4)
29
29
  activesupport (4.0.1)
30
30
  i18n (~> 0.6, >= 0.6.4)
31
31
  minitest (~> 4.2)
32
32
  multi_json (~> 1.3)
33
33
  thread_safe (~> 0.1)
34
34
  tzinfo (~> 0.3.37)
35
- arel (4.0.1)
35
+ arel (4.0.2)
36
36
  atomic (1.1.14)
37
37
  bcrypt-ruby (3.1.2)
38
38
  builder (3.1.4)
@@ -59,11 +59,11 @@ GEM
59
59
  mail (2.5.4)
60
60
  mime-types (~> 1.16)
61
61
  treetop (~> 1.4.8)
62
- mime-types (1.25)
62
+ mime-types (1.25.1)
63
63
  minitest (4.7.5)
64
64
  multi_json (1.8.2)
65
65
  orm_adapter (0.4.0)
66
- polyglot (0.3.3)
66
+ polyglot (0.3.5)
67
67
  rack (1.5.2)
68
68
  rack-test (0.6.2)
69
69
  rack (>= 1.0)
@@ -94,7 +94,7 @@ GEM
94
94
  rspec-mocks (~> 2.14.0)
95
95
  shoulda-matchers (2.4.0)
96
96
  activesupport (>= 3.0.0)
97
- sprockets (2.10.0)
97
+ sprockets (2.12.4)
98
98
  hike (~> 1.2)
99
99
  multi_json (~> 1.0)
100
100
  rack (~> 1.0)
@@ -128,3 +128,6 @@ DEPENDENCIES
128
128
  rspec-rails (~> 2.12)
129
129
  shoulda-matchers
130
130
  sqlite3
131
+
132
+ BUNDLED WITH
133
+ 1.11.2
@@ -30,10 +30,10 @@ class Devise::Oauth::AccessTokensController < ApplicationController
30
30
  }
31
31
 
32
32
  ## common flow
33
- before_filter :find_client, only: :create
34
- before_filter :client_blocked?, only: :create
35
- before_filter :find_grant_type, only: :create
36
- before_filter :execute_flow, only: :create
33
+ before_action :find_client, only: :create
34
+ before_action :client_blocked?, only: :create
35
+ before_action :find_grant_type, only: :create
36
+ before_action :execute_flow, only: :create
37
37
 
38
38
  def create
39
39
  render json: @token_response
@@ -1,16 +1,16 @@
1
1
  class Devise::Oauth::AuthorizationsController < ApplicationController
2
2
  include Devise::Oauth::Helpers
3
3
 
4
- before_filter :authenticate_user! # TODO: use devise scope here
5
- before_filter :find_client
6
- before_filter :find_resource_owner
7
- before_filter :normalize_scope
8
- # before_filter :check_scope # check if the access is authorized
9
- before_filter :client_blocked? # check if the client is blocked
10
- before_filter :access_blocked? # check if user has blocked the client
11
-
12
- # before_filter :token_blocked?, only: :show # check for an existing token
13
- # before_filter :refresh_token, only: :show # create a new token
4
+ before_action :authenticate_user! # TODO: use devise scope here
5
+ before_action :find_client
6
+ before_action :find_resource_owner
7
+ before_action :normalize_scope
8
+ # before_action :check_scope # check if the access is authorized
9
+ before_action :client_blocked? # check if the client is blocked
10
+ before_action :access_blocked? # check if user has blocked the client
11
+
12
+ # before_action :token_blocked?, only: :show # check for an existing token
13
+ # before_action :refresh_token, only: :show # create a new token
14
14
 
15
15
  def show
16
16
  end
Binary file
data/devise_oauth.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_dependency "rails", ">= 3.0.0"
19
+ s.add_dependency "rails", ">= 4.0.0"
20
20
  s.add_dependency "devise", ">= 2.1"
21
21
 
22
22
  s.add_development_dependency "sqlite3"
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Oauth
3
- VERSION = '3.0.1'
3
+ VERSION = '3.0.2'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  class ProtectedResourcesController < ApplicationController
2
- before_filter :authenticate_user!
2
+ before_action :authenticate_user!
3
3
 
4
4
  def index
5
5
  authorize! :index, :protected_resource
metadata CHANGED
@@ -1,32 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Yury Korolev
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-04-08 00:00:00.000000000 Z
12
+ date: 2016-07-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ">="
18
20
  - !ruby/object:Gem::Version
19
- version: 3.0.0
21
+ version: 4.0.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: 3.0.0
29
+ version: 4.0.0
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: devise
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ">="
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ">="
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: sqlite3
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ">="
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ">="
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: factory_girl_rails
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ">="
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ">="
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rspec-rails
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ">="
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ">="
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: database_cleaner
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ">="
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ">="
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: shoulda-matchers
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ">="
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ">="
109
124
  - !ruby/object:Gem::Version
@@ -135,6 +150,7 @@ files:
135
150
  - app/views/devise/oauth/authorizations/show.html.erb
136
151
  - config/routes.rb
137
152
  - db/migrate/20120622164619_devise_create_oauth.rb
153
+ - devise_oauth-3.0.1.gem
138
154
  - devise_oauth.gemspec
139
155
  - lib/devise/models/access_token_authenticatable.rb
140
156
  - lib/devise/models/client_ownable.rb
@@ -198,26 +214,27 @@ files:
198
214
  - spec/support/match_json.rb
199
215
  homepage: https://github.com/anjlab/devise_oauth
200
216
  licenses: []
201
- metadata: {}
202
217
  post_install_message:
203
218
  rdoc_options: []
204
219
  require_paths:
205
220
  - lib
206
221
  required_ruby_version: !ruby/object:Gem::Requirement
222
+ none: false
207
223
  requirements:
208
224
  - - ">="
209
225
  - !ruby/object:Gem::Version
210
226
  version: '0'
211
227
  required_rubygems_version: !ruby/object:Gem::Requirement
228
+ none: false
212
229
  requirements:
213
230
  - - ">="
214
231
  - !ruby/object:Gem::Version
215
232
  version: '0'
216
233
  requirements: []
217
234
  rubyforge_project:
218
- rubygems_version: 2.5.1
235
+ rubygems_version: 1.8.25
219
236
  signing_key:
220
- specification_version: 4
237
+ specification_version: 3
221
238
  summary: Oauth 2.0 provider implementation on top of devise.
222
239
  test_files:
223
240
  - spec/controllers/access_tokens_controller_spec.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e152e0edc3ebfffb8eb352ac663f3f890438da36
4
- data.tar.gz: 489278af8a7e9819b15f0388da33b8c10477439e
5
- SHA512:
6
- metadata.gz: 95b2ab9e9cc57cea478c11326089f349217b922eb4a8776d949f5cf6346a3921bc5003959764aeb4567f739ca4ff92c24473e1590dd86ffe9bd25138b8e1e7b7
7
- data.tar.gz: 27190f346dfe43e0a687117ae4177dea04d66fa5d1ae83fcd46df707faaa921ac20b8aa6642389bab7aa272b0d84b4566e64ef4158549e41f90a4327a0825b10