doorkeeper 2.2.2 → 3.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of doorkeeper might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +0 -23
- data/NEWS.md +17 -9
- data/README.md +5 -31
- data/config/locales/en.yml +1 -31
- data/doorkeeper.gemspec +0 -3
- data/lib/doorkeeper.rb +0 -4
- data/lib/doorkeeper/models/application_mixin.rb +0 -12
- data/lib/doorkeeper/orm/active_record.rb +3 -4
- data/lib/doorkeeper/rails/helpers.rb +0 -18
- data/lib/doorkeeper/version.rb +1 -1
- data/lib/generators/doorkeeper/templates/README +0 -20
- data/lib/generators/doorkeeper/templates/initializer.rb +1 -3
- data/spec/controllers/protected_resources_controller_spec.rb +0 -13
- data/spec/dummy/app/models/user.rb +1 -25
- data/spec/dummy/config/application.rb +0 -1
- data/spec/dummy/config/initializers/doorkeeper.rb +0 -2
- data/spec/models/doorkeeper/application_spec.rb +0 -15
- data/spec/spec_helper_integration.rb +1 -7
- metadata +4 -84
- data/gemfiles/Gemfile.common.rb +0 -7
- data/gemfiles/Gemfile.mongo_mapper.rb +0 -5
- data/gemfiles/Gemfile.mongoid2.rb +0 -5
- data/gemfiles/Gemfile.mongoid3.rb +0 -4
- data/gemfiles/Gemfile.mongoid4.rb +0 -4
- data/lib/doorkeeper/generators/doorkeeper/mongo_mapper/indexes_generator.rb +0 -12
- data/lib/doorkeeper/generators/doorkeeper/mongo_mapper/templates/indexes.rb +0 -3
- data/lib/doorkeeper/orm/mongo_mapper.rb +0 -19
- data/lib/doorkeeper/orm/mongo_mapper/access_grant.rb +0 -24
- data/lib/doorkeeper/orm/mongo_mapper/access_token.rb +0 -43
- data/lib/doorkeeper/orm/mongo_mapper/application.rb +0 -32
- data/lib/doorkeeper/orm/mongoid2.rb +0 -19
- data/lib/doorkeeper/orm/mongoid2/access_grant.rb +0 -22
- data/lib/doorkeeper/orm/mongoid2/access_token.rb +0 -37
- data/lib/doorkeeper/orm/mongoid2/application.rb +0 -25
- data/lib/doorkeeper/orm/mongoid2/concerns/scopes.rb +0 -30
- data/lib/doorkeeper/orm/mongoid3.rb +0 -19
- data/lib/doorkeeper/orm/mongoid3/access_grant.rb +0 -22
- data/lib/doorkeeper/orm/mongoid3/access_token.rb +0 -37
- data/lib/doorkeeper/orm/mongoid3/application.rb +0 -25
- data/lib/doorkeeper/orm/mongoid3/concerns/scopes.rb +0 -30
- data/lib/doorkeeper/orm/mongoid4.rb +0 -19
- data/lib/doorkeeper/orm/mongoid4/access_grant.rb +0 -22
- data/lib/doorkeeper/orm/mongoid4/access_token.rb +0 -37
- data/lib/doorkeeper/orm/mongoid4/application.rb +0 -25
- data/lib/doorkeeper/orm/mongoid4/concerns/scopes.rb +0 -17
- data/spec/dummy/config/mongo.yml +0 -11
- data/spec/dummy/config/mongoid2.yml +0 -9
- data/spec/dummy/config/mongoid3.yml +0 -18
- data/spec/dummy/config/mongoid4.yml +0 -19
- data/spec/support/orm/mongo_mapper.rb +0 -10
- data/spec/support/orm/mongoid.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8450a1e6cc7b4a4b841532e3886687149b4d9200
|
4
|
+
data.tar.gz: 9d80327b747a96da75785cc32d208cbc829b6131
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a23772dc01acb6827089ea7349c4492d08437d57dd5deb3318f1254505f97658a9b4db5276d5dbf033b8f8e99cc281b59c354e4166fffd85b52bbee9a7491c0
|
7
|
+
data.tar.gz: 749700263b4e424910c5713f923fd82b69737a87d69d472e852f1b6a1bacf330ecef4bd53f94cdae4a153aef371e6a04e2de02ee4a42e436eb61cd4052913365
|
data/.travis.yml
CHANGED
@@ -12,30 +12,7 @@ env:
|
|
12
12
|
- rails=4.1.0
|
13
13
|
- rails=4.2.0
|
14
14
|
|
15
|
-
gemfile:
|
16
|
-
- Gemfile
|
17
|
-
- gemfiles/Gemfile.mongoid2.rb
|
18
|
-
- gemfiles/Gemfile.mongoid3.rb
|
19
|
-
- gemfiles/Gemfile.mongoid4.rb
|
20
|
-
- gemfiles/Gemfile.mongo_mapper.rb
|
21
|
-
|
22
|
-
services:
|
23
|
-
- mongodb
|
24
|
-
|
25
15
|
matrix:
|
26
16
|
exclude:
|
27
17
|
- env: rails=3.2.0
|
28
18
|
rvm: 2.2
|
29
|
-
|
30
|
-
- gemfile: gemfiles/Gemfile.mongoid2.rb
|
31
|
-
env: rails=4.1.0
|
32
|
-
- gemfile: gemfiles/Gemfile.mongoid2.rb
|
33
|
-
env: rails=4.2.0
|
34
|
-
|
35
|
-
- gemfile: gemfiles/Gemfile.mongoid3.rb
|
36
|
-
env: rails=4.1.0
|
37
|
-
- gemfile: gemfiles/Gemfile.mongoid3.rb
|
38
|
-
env: rails=4.2.0
|
39
|
-
|
40
|
-
- gemfile: gemfiles/Gemfile.mongoid4.rb
|
41
|
-
env: rails=3.2.0
|
data/NEWS.md
CHANGED
@@ -4,17 +4,25 @@ User-visible changes worth mentioning.
|
|
4
4
|
|
5
5
|
---
|
6
6
|
|
7
|
-
##
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
-
|
13
|
-
|
14
|
-
|
7
|
+
## 3.0.0 (rc1)
|
8
|
+
|
9
|
+
### Backward incompatible changes
|
10
|
+
|
11
|
+
- [#648] Extracts mongodb ORMs to
|
12
|
+
https://github.com/doorkeeper-gem/doorkeeper-mongodb. If you use ActiveRecord
|
13
|
+
you don’t need to do any change, otherwise you will need to install the new
|
14
|
+
plugin.
|
15
|
+
|
16
|
+
### Removed deprecations
|
17
|
+
|
18
|
+
- Removes `doorkeeper_for` deprecation notice.
|
19
|
+
- Remove `applications.scopes` upgrade notice.
|
20
|
+
|
21
|
+
|
22
|
+
## 2.2.2 (unreleased)
|
23
|
+
|
15
24
|
- [#541] Fixed `undefined method attr_accessible` problem on Rails 4
|
16
25
|
(happens only when ProtectedAttributes gem is used) in #599
|
17
|
-
- [#689] Allow scopes to me resetted to empty in Mongoid
|
18
26
|
|
19
27
|
## 2.2.1
|
20
28
|
|
data/README.md
CHANGED
@@ -19,13 +19,10 @@ https://github.com/doorkeeper-gem/doorkeeper/releases.
|
|
19
19
|
## Table of Contents
|
20
20
|
|
21
21
|
- [Useful links](#useful-links)
|
22
|
-
- [Requirements](#requirements)
|
23
22
|
- [Installation](#installation)
|
24
23
|
- [Configuration](#configuration)
|
25
24
|
- [Active Record](#active-record)
|
26
|
-
- [
|
27
|
-
- [Mongoid indexes](#mongoid-indexes)
|
28
|
-
- [MongoMapper indexes](#mongomapper-indexes)
|
25
|
+
- [Other ORMs](#other-orms)
|
29
26
|
- [Routes](#routes)
|
30
27
|
- [Authenticating](#authenticating)
|
31
28
|
- [Internationalization (I18n)](#internationalization-i18n)
|
@@ -55,12 +52,6 @@ https://github.com/doorkeeper-gem/doorkeeper/releases.
|
|
55
52
|
- For documentation, please check out our [wiki](https://github.com/doorkeeper-gem/doorkeeper/wiki)
|
56
53
|
- For general questions, please post it in [stack overflow](http://stackoverflow.com/questions/tagged/doorkeeper)
|
57
54
|
|
58
|
-
## Requirements
|
59
|
-
|
60
|
-
- Ruby >= 2.0.0
|
61
|
-
- Rails >= 3.2
|
62
|
-
- ORM ActiveRecord, Mongoid, MongoMapper
|
63
|
-
|
64
55
|
## Installation
|
65
56
|
|
66
57
|
Put this in your Gemfile:
|
@@ -88,29 +79,12 @@ Don't forget to run the migration with:
|
|
88
79
|
|
89
80
|
rake db:migrate
|
90
81
|
|
91
|
-
###
|
92
|
-
|
93
|
-
Doorkeeper currently supports MongoMapper, Mongoid 2 and 3. To start using it,
|
94
|
-
you have to set the `orm` configuration:
|
95
|
-
|
96
|
-
``` ruby
|
97
|
-
Doorkeeper.configure do
|
98
|
-
orm :mongoid2 # or :mongoid3, :mongoid4, :mongo_mapper
|
99
|
-
end
|
100
|
-
```
|
101
|
-
|
102
|
-
#### Mongoid indexes
|
103
|
-
|
104
|
-
Make sure you create indexes for doorkeeper models. You can do this either by
|
105
|
-
running `rake db:mongoid:create_indexes` or (if you're using Mongoid 2) by
|
106
|
-
adding `autocreate_indexes: true` to your `config/mongoid.yml`
|
107
|
-
|
108
|
-
#### MongoMapper indexes
|
82
|
+
### Other ORMs
|
109
83
|
|
110
|
-
|
84
|
+
See [doorkeeper-mongodb project] for mongoid and mongomapper support. Follow along
|
85
|
+
the implementation in that repository to extend doorkeeper with other ORMs.
|
111
86
|
|
112
|
-
|
113
|
-
rake db:index
|
87
|
+
[doorkeeper-mongodb project]: https://github.com/doorkeeper-gem/doorkeeper-mongodb
|
114
88
|
|
115
89
|
### Routes
|
116
90
|
|
data/config/locales/en.yml
CHANGED
@@ -14,36 +14,6 @@ en:
|
|
14
14
|
relative_uri: 'must be an absolute URI.'
|
15
15
|
secured_uri: 'must be an HTTPS/SSL URI.'
|
16
16
|
|
17
|
-
mongoid:
|
18
|
-
attributes:
|
19
|
-
doorkeeper/application:
|
20
|
-
name: 'Name'
|
21
|
-
redirect_uri: 'Redirect URI'
|
22
|
-
errors:
|
23
|
-
models:
|
24
|
-
doorkeeper/application:
|
25
|
-
attributes:
|
26
|
-
redirect_uri:
|
27
|
-
fragment_present: 'cannot contain a fragment.'
|
28
|
-
invalid_uri: 'must be a valid URI.'
|
29
|
-
relative_uri: 'must be an absolute URI.'
|
30
|
-
secured_uri: 'must be an HTTPS/SSL URI.'
|
31
|
-
|
32
|
-
mongo_mapper:
|
33
|
-
attributes:
|
34
|
-
doorkeeper/application:
|
35
|
-
name: 'Name'
|
36
|
-
redirect_uri: 'Redirect URI'
|
37
|
-
errors:
|
38
|
-
models:
|
39
|
-
doorkeeper/application:
|
40
|
-
attributes:
|
41
|
-
redirect_uri:
|
42
|
-
fragment_present: 'cannot contain a fragment.'
|
43
|
-
invalid_uri: 'must be a valid URI.'
|
44
|
-
relative_uri: 'must be an absolute URI.'
|
45
|
-
secured_uri: 'must be an HTTPS/SSL URI.'
|
46
|
-
|
47
17
|
doorkeeper:
|
48
18
|
applications:
|
49
19
|
confirmations:
|
@@ -148,4 +118,4 @@ en:
|
|
148
118
|
oauth2_provider: 'OAuth2 Provider'
|
149
119
|
applications: 'Applications'
|
150
120
|
application:
|
151
|
-
title: 'OAuth authorize required'
|
121
|
+
title: 'OAuth authorize required'
|
data/doorkeeper.gemspec
CHANGED
@@ -25,7 +25,4 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_development_dependency "factory_girl", "~> 4.5.0"
|
26
26
|
s.add_development_dependency "timecop", "~> 0.7.0"
|
27
27
|
s.add_development_dependency "database_cleaner", "~> 1.3.0"
|
28
|
-
s.add_development_dependency "rspec-activemodel-mocks", "~> 1.0.0"
|
29
|
-
s.add_development_dependency "bcrypt-ruby", "~> 3.0.1"
|
30
|
-
s.add_development_dependency "pry", "~> 0.10.0"
|
31
28
|
end
|
data/lib/doorkeeper.rb
CHANGED
@@ -47,10 +47,6 @@ require 'doorkeeper/rails/routes'
|
|
47
47
|
require 'doorkeeper/rails/helpers'
|
48
48
|
|
49
49
|
require 'doorkeeper/orm/active_record'
|
50
|
-
require 'doorkeeper/orm/mongo_mapper'
|
51
|
-
require 'doorkeeper/orm/mongoid2'
|
52
|
-
require 'doorkeeper/orm/mongoid3'
|
53
|
-
require 'doorkeeper/orm/mongoid4'
|
54
50
|
|
55
51
|
module Doorkeeper
|
56
52
|
def self.configured?
|
@@ -31,18 +31,6 @@ module Doorkeeper
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
alias_method :original_scopes, :scopes
|
35
|
-
def scopes
|
36
|
-
if has_scopes?
|
37
|
-
original_scopes
|
38
|
-
else
|
39
|
-
fail NameError, "Missing column: `applications.scopes`.", <<-MSG.squish
|
40
|
-
If you are using ActiveRecord run `rails generate doorkeeper:application_scopes
|
41
|
-
&& rake db:migrate` to add it.
|
42
|
-
MSG
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
34
|
private
|
47
35
|
|
48
36
|
def has_scopes?
|
@@ -25,12 +25,11 @@ module Doorkeeper
|
|
25
25
|
Doorkeeper::Application.table_name
|
26
26
|
)
|
27
27
|
unless Doorkeeper::Application.new.attributes.include?("scopes")
|
28
|
-
|
29
|
-
puts <<-MSG.squish
|
28
|
+
fail <<-MSG.squish
|
30
29
|
[doorkeeper] Missing column: `oauth_applications.scopes`.
|
31
|
-
|
30
|
+
Run `rails generate doorkeeper:application_scopes
|
31
|
+
&& rake db:migrate` to add it.
|
32
32
|
MSG
|
33
|
-
puts File.read(File.expand_path(migration_path, __FILE__))
|
34
33
|
end
|
35
34
|
end
|
36
35
|
end
|
@@ -68,24 +68,6 @@ module Doorkeeper
|
|
68
68
|
*Doorkeeper.configuration.access_token_methods
|
69
69
|
)
|
70
70
|
end
|
71
|
-
|
72
|
-
module ClassMethods
|
73
|
-
def doorkeeper_for(*_args)
|
74
|
-
fail(
|
75
|
-
Errors::DoorkeeperError,
|
76
|
-
"`doorkeeper_for` no longer available",
|
77
|
-
<<-eos
|
78
|
-
\nStarting in version 2.0.0 of doorkeeper gem, `doorkeeper_for` is no longer
|
79
|
-
available. Please change `doorkeeper_for` calls in your application with:
|
80
|
-
|
81
|
-
before_action :doorkeeper_authorize!
|
82
|
-
|
83
|
-
For more information check the README:
|
84
|
-
https://github.com/doorkeeper-gem/doorkeeper#protecting-resources-with-oauth-aka-your-api-endpoint\n
|
85
|
-
eos
|
86
|
-
)
|
87
|
-
end
|
88
|
-
end
|
89
71
|
end
|
90
72
|
end
|
91
73
|
end
|
data/lib/doorkeeper/version.rb
CHANGED
@@ -17,26 +17,6 @@ And run
|
|
17
17
|
|
18
18
|
rake db:migrate
|
19
19
|
|
20
|
-
If you want to use Mongoid, configure the orm in initializers/doorkeeper.rb:
|
21
|
-
|
22
|
-
# Mongoid
|
23
|
-
Doorkeeper.configure do
|
24
|
-
orm :mongoid
|
25
|
-
end
|
26
|
-
|
27
|
-
If you want to use MongoMapper, configure the orm in
|
28
|
-
initializers/doorkeeper.rb:
|
29
|
-
|
30
|
-
# MongoMapper
|
31
|
-
Doorkeeper.configure do
|
32
|
-
orm :mongo_mapper
|
33
|
-
end
|
34
|
-
|
35
|
-
And run
|
36
|
-
|
37
|
-
rails generate doorkeeper:mongo_mapper:indexes
|
38
|
-
rake db:index
|
39
|
-
|
40
20
|
Step 3.
|
41
21
|
That's it, that's all. Enjoy!
|
42
22
|
|
@@ -1,7 +1,5 @@
|
|
1
1
|
Doorkeeper.configure do
|
2
|
-
# Change the ORM that doorkeeper will use
|
3
|
-
# Currently supported options are :active_record, :mongoid2, :mongoid3,
|
4
|
-
# :mongoid4, :mongo_mapper
|
2
|
+
# Change the ORM that doorkeeper will use (needs plugins)
|
5
3
|
orm :active_record
|
6
4
|
|
7
5
|
# This block will be called to check whether the resource owner is authenticated or not.
|
@@ -154,17 +154,4 @@ describe 'doorkeeper authorize filter' do
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
end
|
157
|
-
|
158
|
-
context 'defined for all actions' do
|
159
|
-
controller {}
|
160
|
-
|
161
|
-
it 'it renders a custom JSON response' do
|
162
|
-
expect do
|
163
|
-
controller.class.doorkeeper_for
|
164
|
-
end.to raise_error(
|
165
|
-
Doorkeeper::Errors::DoorkeeperError,
|
166
|
-
/`doorkeeper_for` no longer available/
|
167
|
-
)
|
168
|
-
end
|
169
|
-
end
|
170
157
|
end
|
@@ -1,28 +1,4 @@
|
|
1
|
-
|
2
|
-
when "active_record"
|
3
|
-
class User < ActiveRecord::Base
|
4
|
-
end
|
5
|
-
when /mongoid/
|
6
|
-
class User
|
7
|
-
include Mongoid::Document
|
8
|
-
include Mongoid::Timestamps
|
9
|
-
|
10
|
-
field :name, type: String
|
11
|
-
field :password, type: String
|
12
|
-
end
|
13
|
-
when "mongo_mapper"
|
14
|
-
class User
|
15
|
-
include MongoMapper::Document
|
16
|
-
timestamps!
|
17
|
-
|
18
|
-
key :name, String
|
19
|
-
key :password, String
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
class User
|
24
|
-
include ActiveModel::MassAssignmentSecurity if defined?(::ProtectedAttributes)
|
25
|
-
|
1
|
+
class User < ActiveRecord::Base
|
26
2
|
if respond_to?(:attr_accessible)
|
27
3
|
attr_accessible :name, :password
|
28
4
|
end
|
@@ -1,7 +1,5 @@
|
|
1
1
|
Doorkeeper.configure do
|
2
2
|
# Change the ORM that doorkeeper will use.
|
3
|
-
# Currently supported options are :active_record, :mongoid2, :mongoid3,
|
4
|
-
# :mongoid4, :mongo_mapper
|
5
3
|
orm DOORKEEPER_ORM
|
6
4
|
|
7
5
|
# This block will be called to check whether the resource owner is authenticated or not.
|
@@ -171,20 +171,5 @@ module Doorkeeper
|
|
171
171
|
expect(authenticated).to eq(app)
|
172
172
|
end
|
173
173
|
end
|
174
|
-
|
175
|
-
if Doorkeeper.configuration.orm == :active_record
|
176
|
-
describe :scopes do
|
177
|
-
it 'fails on missing column with an upgrade notice' do
|
178
|
-
app = FactoryGirl.build :application
|
179
|
-
no_scopes_app = double(attributes: [])
|
180
|
-
allow(Application).to receive(:new).and_return(no_scopes_app)
|
181
|
-
|
182
|
-
expect { app.scopes }.to raise_error(
|
183
|
-
NameError,
|
184
|
-
/Missing column: `applications.scopes`/
|
185
|
-
)
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
189
174
|
end
|
190
175
|
end
|
@@ -8,13 +8,11 @@ DOORKEEPER_ORM = (orm && orm[1] || :active_record).to_sym
|
|
8
8
|
$LOAD_PATH.unshift File.dirname(__FILE__)
|
9
9
|
|
10
10
|
require 'capybara/rspec'
|
11
|
-
require 'rspec/active_model/mocks'
|
12
11
|
require 'dummy/config/environment'
|
13
12
|
require 'rspec/rails'
|
14
13
|
require 'generator_spec/test_case'
|
15
14
|
require 'timecop'
|
16
15
|
require 'database_cleaner'
|
17
|
-
require 'pry'
|
18
16
|
|
19
17
|
Rails.logger.info "====> Doorkeeper.orm = #{Doorkeeper.configuration.orm.inspect}"
|
20
18
|
if Doorkeeper.configuration.orm == :active_record
|
@@ -24,11 +22,7 @@ end
|
|
24
22
|
Rails.logger.info "====> Rails version: #{Rails.version}"
|
25
23
|
Rails.logger.info "====> Ruby version: #{RUBY_VERSION}"
|
26
24
|
|
27
|
-
|
28
|
-
require "support/orm/mongoid"
|
29
|
-
else
|
30
|
-
require "support/orm/#{DOORKEEPER_ORM}"
|
31
|
-
end
|
25
|
+
require "support/orm/#{DOORKEEPER_ORM}"
|
32
26
|
|
33
27
|
ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')
|
34
28
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felipe Elias Philipp
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -123,48 +123,6 @@ dependencies:
|
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 1.3.0
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: rspec-activemodel-mocks
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - "~>"
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: 1.0.0
|
133
|
-
type: :development
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - "~>"
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: 1.0.0
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: bcrypt-ruby
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - "~>"
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: 3.0.1
|
147
|
-
type: :development
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - "~>"
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: 3.0.1
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: pry
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - "~>"
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: 0.10.0
|
161
|
-
type: :development
|
162
|
-
prerelease: false
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - "~>"
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: 0.10.0
|
168
126
|
description: Doorkeeper is an OAuth 2 provider for Rails and Grape.
|
169
127
|
email:
|
170
128
|
- tutecosta@gmail.com
|
@@ -210,17 +168,10 @@ files:
|
|
210
168
|
- app/views/layouts/doorkeeper/application.html.erb
|
211
169
|
- config/locales/en.yml
|
212
170
|
- doorkeeper.gemspec
|
213
|
-
- gemfiles/Gemfile.common.rb
|
214
|
-
- gemfiles/Gemfile.mongo_mapper.rb
|
215
|
-
- gemfiles/Gemfile.mongoid2.rb
|
216
|
-
- gemfiles/Gemfile.mongoid3.rb
|
217
|
-
- gemfiles/Gemfile.mongoid4.rb
|
218
171
|
- lib/doorkeeper.rb
|
219
172
|
- lib/doorkeeper/config.rb
|
220
173
|
- lib/doorkeeper/engine.rb
|
221
174
|
- lib/doorkeeper/errors.rb
|
222
|
-
- lib/doorkeeper/generators/doorkeeper/mongo_mapper/indexes_generator.rb
|
223
|
-
- lib/doorkeeper/generators/doorkeeper/mongo_mapper/templates/indexes.rb
|
224
175
|
- lib/doorkeeper/grape/authorization_decorator.rb
|
225
176
|
- lib/doorkeeper/grape/helpers.rb
|
226
177
|
- lib/doorkeeper/helpers/controller.rb
|
@@ -264,25 +215,6 @@ files:
|
|
264
215
|
- lib/doorkeeper/orm/active_record/access_grant.rb
|
265
216
|
- lib/doorkeeper/orm/active_record/access_token.rb
|
266
217
|
- lib/doorkeeper/orm/active_record/application.rb
|
267
|
-
- lib/doorkeeper/orm/mongo_mapper.rb
|
268
|
-
- lib/doorkeeper/orm/mongo_mapper/access_grant.rb
|
269
|
-
- lib/doorkeeper/orm/mongo_mapper/access_token.rb
|
270
|
-
- lib/doorkeeper/orm/mongo_mapper/application.rb
|
271
|
-
- lib/doorkeeper/orm/mongoid2.rb
|
272
|
-
- lib/doorkeeper/orm/mongoid2/access_grant.rb
|
273
|
-
- lib/doorkeeper/orm/mongoid2/access_token.rb
|
274
|
-
- lib/doorkeeper/orm/mongoid2/application.rb
|
275
|
-
- lib/doorkeeper/orm/mongoid2/concerns/scopes.rb
|
276
|
-
- lib/doorkeeper/orm/mongoid3.rb
|
277
|
-
- lib/doorkeeper/orm/mongoid3/access_grant.rb
|
278
|
-
- lib/doorkeeper/orm/mongoid3/access_token.rb
|
279
|
-
- lib/doorkeeper/orm/mongoid3/application.rb
|
280
|
-
- lib/doorkeeper/orm/mongoid3/concerns/scopes.rb
|
281
|
-
- lib/doorkeeper/orm/mongoid4.rb
|
282
|
-
- lib/doorkeeper/orm/mongoid4/access_grant.rb
|
283
|
-
- lib/doorkeeper/orm/mongoid4/access_token.rb
|
284
|
-
- lib/doorkeeper/orm/mongoid4/application.rb
|
285
|
-
- lib/doorkeeper/orm/mongoid4/concerns/scopes.rb
|
286
218
|
- lib/doorkeeper/rails/helpers.rb
|
287
219
|
- lib/doorkeeper/rails/routes.rb
|
288
220
|
- lib/doorkeeper/rails/routes/mapper.rb
|
@@ -337,10 +269,6 @@ files:
|
|
337
269
|
- spec/dummy/config/initializers/session_store.rb
|
338
270
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
339
271
|
- spec/dummy/config/locales/doorkeeper.en.yml
|
340
|
-
- spec/dummy/config/mongo.yml
|
341
|
-
- spec/dummy/config/mongoid2.yml
|
342
|
-
- spec/dummy/config/mongoid3.yml
|
343
|
-
- spec/dummy/config/mongoid4.yml
|
344
272
|
- spec/dummy/config/routes.rb
|
345
273
|
- spec/dummy/db/migrate/20111122132257_create_users.rb
|
346
274
|
- spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
|
@@ -421,8 +349,6 @@ files:
|
|
421
349
|
- spec/support/helpers/request_spec_helper.rb
|
422
350
|
- spec/support/helpers/url_helper.rb
|
423
351
|
- spec/support/orm/active_record.rb
|
424
|
-
- spec/support/orm/mongo_mapper.rb
|
425
|
-
- spec/support/orm/mongoid.rb
|
426
352
|
- spec/support/shared/controllers_shared_context.rb
|
427
353
|
- spec/support/shared/models_shared_examples.rb
|
428
354
|
- spec/validators/redirect_uri_validator_spec.rb
|
@@ -442,9 +368,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
442
368
|
version: '0'
|
443
369
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
444
370
|
requirements:
|
445
|
-
- - "
|
371
|
+
- - ">"
|
446
372
|
- !ruby/object:Gem::Version
|
447
|
-
version:
|
373
|
+
version: 1.3.1
|
448
374
|
requirements: []
|
449
375
|
rubyforge_project:
|
450
376
|
rubygems_version: 2.4.5
|
@@ -482,10 +408,6 @@ test_files:
|
|
482
408
|
- spec/dummy/config/initializers/session_store.rb
|
483
409
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
484
410
|
- spec/dummy/config/locales/doorkeeper.en.yml
|
485
|
-
- spec/dummy/config/mongo.yml
|
486
|
-
- spec/dummy/config/mongoid2.yml
|
487
|
-
- spec/dummy/config/mongoid3.yml
|
488
|
-
- spec/dummy/config/mongoid4.yml
|
489
411
|
- spec/dummy/config/routes.rb
|
490
412
|
- spec/dummy/db/migrate/20111122132257_create_users.rb
|
491
413
|
- spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
|
@@ -566,8 +488,6 @@ test_files:
|
|
566
488
|
- spec/support/helpers/request_spec_helper.rb
|
567
489
|
- spec/support/helpers/url_helper.rb
|
568
490
|
- spec/support/orm/active_record.rb
|
569
|
-
- spec/support/orm/mongo_mapper.rb
|
570
|
-
- spec/support/orm/mongoid.rb
|
571
491
|
- spec/support/shared/controllers_shared_context.rb
|
572
492
|
- spec/support/shared/models_shared_examples.rb
|
573
493
|
- spec/validators/redirect_uri_validator_spec.rb
|