doorkeeper-sequel 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +4 -2
- data/.travis.yml +5 -1
- data/CHANGELOG.md +17 -0
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/README.md +3 -4
- data/Rakefile +41 -27
- data/doorkeeper-sequel.gemspec +2 -2
- data/gemfiles/rails-5.1rc1.gemfile +11 -0
- data/lib/doorkeeper-sequel/gem_version.rb +1 -1
- data/lib/doorkeeper/orm/sequel/access_grant.rb +1 -3
- data/lib/doorkeeper/orm/sequel/access_token.rb +1 -3
- data/lib/doorkeeper/orm/sequel/application.rb +1 -3
- data/lib/doorkeeper/orm/sequel/models/access_grant_mixin.rb +1 -1
- data/lib/doorkeeper/orm/sequel/models/access_token_mixin.rb +3 -5
- data/lib/doorkeeper/orm/sequel/models/application_mixin.rb +2 -2
- data/lib/doorkeeper/orm/sequel/models/concerns/sequel_compat.rb +19 -0
- data/lib/doorkeeper/orm/sequel/validators/redirect_uri_validator.rb +16 -8
- metadata +32 -31
- data/spec/stubs/generators/tmp/dummy/db/migrate/20161012132810_add_owner_to_application.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc72796ac97c3ae3fdb0e081c54a5433a0c5d35
|
4
|
+
data.tar.gz: 99f7f0cbcadc3f1ae049c3264baad374275491a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d481a6a4ec6806c5721e705e192a77c52e55a9267f55e85facebb70097b28ac1fdf03f31280ca37e70ddb7a6bd8636b43c67d3c1587270f00419390465a66357
|
7
|
+
data.tar.gz: e6c8e83310ea967395d62edbc196a8a8fc67da8f02c5e144ae73711d781f79d03771f9d182e82141cfc5246db45e781c3b9f15cdcac41788607499af54920e39
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -9,11 +9,13 @@ before_install:
|
|
9
9
|
gemfile:
|
10
10
|
- gemfiles/rails-4.2.gemfile
|
11
11
|
- gemfiles/rails-5.0.gemfile
|
12
|
+
- gemfiles/rails-5.1rc1.gemfile
|
12
13
|
|
13
14
|
rvm:
|
14
15
|
- 2.1
|
15
16
|
- 2.2.4
|
16
|
-
- 2.3.
|
17
|
+
- 2.3.3
|
18
|
+
- 2.4.1
|
17
19
|
- ruby-head
|
18
20
|
|
19
21
|
matrix:
|
@@ -22,3 +24,5 @@ matrix:
|
|
22
24
|
exclude:
|
23
25
|
- rvm: 2.1
|
24
26
|
gemfile: gemfiles/rails-5.0.gemfile
|
27
|
+
- rvm: 2.1
|
28
|
+
gemfile: gemfiles/rails-5.1rc1.gemfile
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,23 @@
|
|
2
2
|
|
3
3
|
Reverse Chronological Order:
|
4
4
|
|
5
|
+
## master
|
6
|
+
|
7
|
+
https://github.com/nbulaj/doorkeeper-sequel/compare/1.2.2...master
|
8
|
+
|
9
|
+
...
|
10
|
+
|
11
|
+
## `1.2.2` (2017-06-07)
|
12
|
+
|
13
|
+
https://github.com/nbulaj/doorkeeper-sequel/compare/1.2.1...1.2.2
|
14
|
+
|
15
|
+
* ORM code refactoring
|
16
|
+
* Fix Sequel deprecations (>= 4.47)
|
17
|
+
* Update Doorkeeper submodule (support up to 4.2.6)
|
18
|
+
* Fix `#table_exists?` method for models
|
19
|
+
* `Rakefile` refactoring
|
20
|
+
* Remove Gemfile.lock
|
21
|
+
|
5
22
|
## `1.2.1` (2016-10-12)
|
6
23
|
|
7
24
|
https://github.com/nbulaj/doorkeeper-sequel/compare/1.2.0...1.2.1
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Doorkeeper Sequel ORM extension
|
2
|
-
[![GitHub release](https://img.shields.io/github/release/nbulaj/doorkeeper-sequel.svg?maxAge=259200)]()
|
2
|
+
[![GitHub release](https://img.shields.io/github/release/nbulaj/doorkeeper-sequel.svg?maxAge=259200)](https://github.com/nbulaj/doorkeeper-sequel/releases)
|
3
3
|
[![Build Status](https://travis-ci.org/nbulaj/doorkeeper-sequel.svg?branch=master)](https://travis-ci.org/nbulaj/doorkeeper-sequel)
|
4
4
|
[![Dependency Status](https://gemnasium.com/nbulaj/doorkeeper-sequel.svg)](https://gemnasium.com/nbulaj/doorkeeper-sequel)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/nbulaj/doorkeeper-sequel/badges/gpa.svg)](https://codeclimate.com/github/nbulaj/doorkeeper-sequel)
|
@@ -39,8 +39,7 @@ rails generate doorkeeper:sequel:previous_refresh_token
|
|
39
39
|
|
40
40
|
## Tests
|
41
41
|
|
42
|
-
To run tests, clone this repository and run `rake`. It will copy and run
|
43
|
-
`Doorkeeper`’s original test suite after configuring the ORM and other stuffs.
|
42
|
+
To run tests, clone this repository and run `rake`. It will copy and run `Doorkeeper`’s original test suite after configuring the ORM and other stuffs.
|
44
43
|
|
45
44
|
```
|
46
45
|
$ bundle exec rake
|
@@ -68,7 +67,7 @@ Thanks.
|
|
68
67
|
|
69
68
|
Doorkeeper-sequel gem is released under the [MIT License](http://www.opensource.org/licenses/MIT).
|
70
69
|
|
71
|
-
Copyright (c) 2016 Nikita
|
70
|
+
Copyright (c) 2016 Nikita Bulai (bulajnikita@gmail.com).
|
72
71
|
|
73
72
|
---
|
74
73
|
|
data/Rakefile
CHANGED
@@ -1,44 +1,58 @@
|
|
1
1
|
require 'bundler/setup'
|
2
2
|
require 'rspec/core/rake_task'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
class ExtensionIntegrator
|
5
|
+
class << self
|
6
|
+
def init_submodule!
|
7
|
+
`git submodule init`
|
8
|
+
`git submodule update`
|
9
|
+
end
|
10
|
+
|
11
|
+
def clear_specs!
|
12
|
+
base_dir = File.join(Dir.pwd, 'spec')
|
13
|
+
|
14
|
+
Dir.foreach(base_dir) do |file|
|
15
|
+
next if %w(. .. stubs).include?(file)
|
16
|
+
|
17
|
+
file_name = File.join(base_dir, file)
|
18
|
+
|
19
|
+
if File.directory?(file_name)
|
20
|
+
FileUtils.rm_rf(file_name)
|
21
|
+
else
|
22
|
+
File.delete(file_name)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def copy_spec_stubs!
|
28
|
+
FileUtils.cp_r('spec/stubs/spec_helper_integration.rb', 'spec/spec_helper_integration.rb')
|
29
|
+
FileUtils.cp_r('spec/stubs/models/user.rb', 'spec/dummy/app/models/user.rb')
|
30
|
+
FileUtils.cp_r('spec/stubs/config/initializers/db.rb', 'spec/dummy/config/initializers/db.rb')
|
31
|
+
FileUtils.cp_r('spec/stubs/config/application.rb', 'spec/dummy/config/application.rb')
|
32
|
+
FileUtils.cp_r('spec/stubs/support/sequel.rb', 'spec/support/orm/sequel.rb')
|
33
|
+
FileUtils.rm('spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb')
|
34
|
+
# Generators
|
35
|
+
FileUtils.rm(Dir.glob('spec/generators/*.rb'))
|
36
|
+
FileUtils.cp_r(Dir.glob('spec/stubs/generators/*.rb'), 'spec/generators/')
|
14
37
|
end
|
15
38
|
end
|
16
39
|
end
|
17
40
|
|
18
41
|
desc 'Update Git submodules.'
|
19
42
|
task :update_submodules do
|
43
|
+
ExtensionIntegrator.init_submodule! if Dir['doorkeeper/*'].empty?
|
20
44
|
`git submodule foreach git pull origin master`
|
21
45
|
end
|
22
46
|
|
23
47
|
task :copy_and_run_doorkeeper_specs do
|
24
|
-
# Clear specs
|
25
|
-
clear_specs
|
26
|
-
#
|
27
|
-
if Dir['doorkeeper/*'].empty?
|
28
|
-
|
29
|
-
`git submodule update`
|
30
|
-
end
|
48
|
+
# Clear specs directory
|
49
|
+
ExtensionIntegrator.clear_specs!
|
50
|
+
# Init Doorkeeper submodule if it doesn't exists
|
51
|
+
ExtensionIntegrator.init_submodule! if Dir['doorkeeper/*'].empty?
|
52
|
+
# Copy native Doorkeeper specs
|
31
53
|
`cp -r -n doorkeeper/spec .`
|
32
|
-
# Replace ORM-
|
33
|
-
|
34
|
-
FileUtils.cp_r('spec/stubs/models/user.rb', 'spec/dummy/app/models/user.rb')
|
35
|
-
FileUtils.cp_r('spec/stubs/config/initializers/db.rb', 'spec/dummy/config/initializers/db.rb')
|
36
|
-
FileUtils.cp_r('spec/stubs/config/application.rb', 'spec/dummy/config/application.rb')
|
37
|
-
FileUtils.cp_r('spec/stubs/support/sequel.rb', 'spec/support/orm/sequel.rb')
|
38
|
-
FileUtils.rm('spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb')
|
39
|
-
# Generators
|
40
|
-
FileUtils.rm(Dir.glob('spec/generators/*.rb'))
|
41
|
-
FileUtils.cp_r(Dir.glob('spec/stubs/generators/*.rb'), 'spec/generators/')
|
54
|
+
# Replace ORM-dependent files (configs, models, etc)
|
55
|
+
ExtensionIntegrator.copy_spec_stubs!
|
42
56
|
# Run specs
|
43
57
|
`bundle exec rspec`
|
44
58
|
end
|
data/doorkeeper-sequel.gemspec
CHANGED
@@ -5,8 +5,8 @@ require 'doorkeeper-sequel/version'
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'doorkeeper-sequel'
|
7
7
|
gem.version = DoorkeeperSequel.gem_version
|
8
|
-
gem.authors = ['Nikita
|
9
|
-
gem.date = '
|
8
|
+
gem.authors = ['Nikita Bulai']
|
9
|
+
gem.date = '2017-06-07'
|
10
10
|
gem.email = ['bulajnikita@gmail.com']
|
11
11
|
gem.homepage = 'http://github.com/nbulaj/doorkeeper-sequel'
|
12
12
|
gem.summary = 'Doorkeeper Sequel ORM'
|
@@ -1,9 +1,7 @@
|
|
1
1
|
require_relative 'models/access_token_mixin'
|
2
2
|
|
3
3
|
module Doorkeeper
|
4
|
-
class AccessToken < Sequel::Model
|
5
|
-
set_dataset :oauth_access_tokens
|
6
|
-
|
4
|
+
class AccessToken < Sequel::Model(:oauth_access_tokens)
|
7
5
|
include Doorkeeper::Orm::Sequel::AccessTokenMixin
|
8
6
|
|
9
7
|
class << self
|
@@ -1,9 +1,7 @@
|
|
1
1
|
require_relative 'models/application_mixin'
|
2
2
|
|
3
3
|
module Doorkeeper
|
4
|
-
class Application < Sequel::Model
|
5
|
-
set_dataset :oauth_applications
|
6
|
-
|
4
|
+
class Application < Sequel::Model(:oauth_applications)
|
7
5
|
include Doorkeeper::Orm::Sequel::ApplicationMixin
|
8
6
|
|
9
7
|
one_to_many :authorized_tokens, class: 'Doorkeeper::AccessToken', conditions: { revoked_at: nil }
|
@@ -46,11 +46,11 @@ module Doorkeeper
|
|
46
46
|
|
47
47
|
module ClassMethods
|
48
48
|
def by_token(token)
|
49
|
-
|
49
|
+
first(token: token.to_s)
|
50
50
|
end
|
51
51
|
|
52
52
|
def by_refresh_token(refresh_token)
|
53
|
-
|
53
|
+
first(refresh_token: refresh_token.to_s)
|
54
54
|
end
|
55
55
|
|
56
56
|
def revoke_all_for(application_id, resource_owner)
|
@@ -84,9 +84,7 @@ module Doorkeeper
|
|
84
84
|
def find_or_create_for(application, resource_owner_id, scopes, expires_in, use_refresh_token)
|
85
85
|
if Doorkeeper.configuration.reuse_access_token
|
86
86
|
access_token = matching_token_for(application, resource_owner_id, scopes)
|
87
|
-
if access_token && !access_token.expired?
|
88
|
-
return access_token
|
89
|
-
end
|
87
|
+
return access_token if access_token && !access_token.expired?
|
90
88
|
end
|
91
89
|
|
92
90
|
create!(
|
@@ -43,11 +43,11 @@ module Doorkeeper
|
|
43
43
|
|
44
44
|
module ClassMethods
|
45
45
|
def by_uid_and_secret(uid, secret)
|
46
|
-
|
46
|
+
first(uid: uid.to_s, secret: secret.to_s)
|
47
47
|
end
|
48
48
|
|
49
49
|
def by_uid(uid)
|
50
|
-
|
50
|
+
first(uid: uid.to_s)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -9,6 +9,11 @@ module Doorkeeper
|
|
9
9
|
included do
|
10
10
|
plugin :active_model
|
11
11
|
|
12
|
+
# Sequel 4.47 deprecated #set_allowed_columns
|
13
|
+
if ::Sequel::MAJOR >= 4 && ::Sequel::MINOR >= 47
|
14
|
+
plugin :whitelist_security
|
15
|
+
end
|
16
|
+
|
12
17
|
self.raise_on_save_failure = false
|
13
18
|
|
14
19
|
def update_attribute(column, value)
|
@@ -33,6 +38,20 @@ module Doorkeeper
|
|
33
38
|
def create!(values = {}, &block)
|
34
39
|
new(values, &block).save(raise_on_failure: true)
|
35
40
|
end
|
41
|
+
|
42
|
+
def table_exists?
|
43
|
+
db.table_exists?(table_name)
|
44
|
+
end
|
45
|
+
|
46
|
+
# find(1) or find("1") - will work like find(id: 1)
|
47
|
+
# find(name: 'John') - will work like find(name: 'John')
|
48
|
+
def find(*args, &block)
|
49
|
+
if args.first.is_a?(Hash)
|
50
|
+
super(*args, &block)
|
51
|
+
else
|
52
|
+
super(id: args)
|
53
|
+
end
|
54
|
+
end
|
36
55
|
end
|
37
56
|
end
|
38
57
|
end
|
@@ -9,18 +9,16 @@ module Doorkeeper
|
|
9
9
|
value = self[attribute]
|
10
10
|
|
11
11
|
if value.blank?
|
12
|
-
|
12
|
+
add_error(attribute, :blank)
|
13
13
|
else
|
14
14
|
value.split.each do |val|
|
15
15
|
uri = ::URI.parse(val)
|
16
16
|
return true if native_redirect_uri?(uri)
|
17
|
-
|
18
|
-
errors.add(attribute, I18n.t(:relative_uri, scope: redirect_uri_errors)) if uri.scheme.nil? || uri.host.nil?
|
19
|
-
errors.add(attribute, I18n.t(:secured_uri, scope: redirect_uri_errors)) if invalid_ssl_uri?(uri)
|
17
|
+
validate_uri(uri, attribute)
|
20
18
|
end
|
21
19
|
end
|
22
20
|
rescue URI::InvalidURIError
|
23
|
-
|
21
|
+
add_error(attribute, :invalid_uri)
|
24
22
|
end
|
25
23
|
|
26
24
|
private
|
@@ -29,6 +27,16 @@ module Doorkeeper
|
|
29
27
|
native_redirect_uri.present? && uri.to_s == native_redirect_uri.to_s
|
30
28
|
end
|
31
29
|
|
30
|
+
def validate_uri(uri, attribute)
|
31
|
+
{
|
32
|
+
fragment_present: uri.fragment.present?,
|
33
|
+
relative_uri: uri.scheme.nil? || uri.host.nil?,
|
34
|
+
secured_uri: invalid_ssl_uri?(uri)
|
35
|
+
}.each do |error, condition|
|
36
|
+
add_error(attribute, error) if condition
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
32
40
|
def invalid_ssl_uri?(uri)
|
33
41
|
forces_ssl = Doorkeeper.configuration.force_ssl_in_redirect_uri
|
34
42
|
forces_ssl && uri.try(:scheme) == 'http'
|
@@ -38,9 +46,9 @@ module Doorkeeper
|
|
38
46
|
Doorkeeper.configuration.native_redirect_uri
|
39
47
|
end
|
40
48
|
|
41
|
-
|
42
|
-
|
43
|
-
|
49
|
+
def add_error(attribute, error)
|
50
|
+
scope = 'sequel.errors.models.doorkeeper/application.attributes.redirect_uri'
|
51
|
+
errors.add(attribute, I18n.t(error, scope: scope))
|
44
52
|
end
|
45
53
|
end
|
46
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper-sequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Nikita
|
7
|
+
- Nikita Bulai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: doorkeeper
|
@@ -192,7 +192,6 @@ files:
|
|
192
192
|
- ".travis.yml"
|
193
193
|
- CHANGELOG.md
|
194
194
|
- Gemfile
|
195
|
-
- Gemfile.lock
|
196
195
|
- LICENSE
|
197
196
|
- README.md
|
198
197
|
- Rakefile
|
@@ -200,6 +199,7 @@ files:
|
|
200
199
|
- doorkeeper-sequel.gemspec
|
201
200
|
- gemfiles/rails-4.2.gemfile
|
202
201
|
- gemfiles/rails-5.0.gemfile
|
202
|
+
- gemfiles/rails-5.1rc1.gemfile
|
203
203
|
- lib/doorkeeper-sequel.rb
|
204
204
|
- lib/doorkeeper-sequel/gem_version.rb
|
205
205
|
- lib/doorkeeper-sequel/version.rb
|
@@ -264,43 +264,43 @@ files:
|
|
264
264
|
- spec/dummy/public/500.html
|
265
265
|
- spec/dummy/public/favicon.ico
|
266
266
|
- spec/dummy/script/rails
|
267
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/-T/-TZF6Ae6YipbyKuHghb9wlTx4_b9itbSHRc_2PmqjiU.cache
|
268
267
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/0p/0pa3wNbGHqFC6gxrMvdOJiP6gPwFv9VJ_npjEfRWxAE.cache
|
269
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
268
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/1x/1xsCVuJJuiof5lwQ0Uq1i_QCYiz-0LDIbFSjOPS_Agk.cache
|
270
269
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/3P/3PoguHEOEeItUjmwC74MWLLP-_Ijow7798bF5U6K2dw.cache
|
271
270
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/6b/6b0anrSo7Fvoc05t4Ca0zZmfS_cpERy1DsG3ea6lBOg.cache
|
271
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/9a/9aEq4B3rpPNXa9LcnXie9E6Pfof533L4SVwwz7B8z_8.cache
|
272
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/AF/AFlyigHB-LwDtZ5qNI4DRmhTf3EGUy-gEkUEF_1uqXs.cache
|
272
273
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/BA/BAC3ZaGoeZ9Od-kKg-UQYelvRgsCa0H72-52nLdcTNw.cache
|
273
274
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/Bw6Nimjvy5Yv1AYbZb1t-v0eMNhv-bhwBzR-b5mY7FU.cache
|
274
275
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Fq/FqQWjMAz8yjZQlMC_dUsztaOxGruI2IXyGAAUF9SvQ0.cache
|
275
276
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_D9clwKidN28hnVB1O3zEfKDwg90Usdb5ToKiPq_aw.cache
|
276
277
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ji/JitNKkP1dYdu9ObSdIkkEAsiFxEmRO5oy1UIyhT_hYs.cache
|
277
278
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqTLVvnY2AgGkHftWPwqt_HkbwhYRsmgHxk37VqKJAY.cache
|
279
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/NP/NPhq2U1wlLLaI_kEyked8SgtnxqKssdrgVRSBe6reSo.cache
|
280
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Pf/PfSt8NR065GM-VQDoOuekrtDjCriVOBtZLdjesjRMFc.cache
|
278
281
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/QX/QXcp8DweOJ6BfMedGMfeHvVXv2hjDIleln1LSJk7vOE.cache
|
279
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Qy/Qy1ldbz6vKa_fv4E4ByxWslKFoV1qReQR5DKJ525z88.cache
|
280
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Rl/RlCJ_X5xFsE3VBDhkYrY7r_R6sMgiAc03cT8nr7Q2vY.cache
|
281
282
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ta/TaYxNn81MhqC3DnMC6_y_Q7xap5Ntn4ggFo94EUaiak.cache
|
282
283
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Wq/WqbLVKOcTMZtttygYt_ncr1mGIDrzevSTaPGNmzV1D8.cache
|
283
284
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/YF/YF60qiQ28QMoYDrLmrbHWZr7X7bl5MxVPR5QrrVCFak.cache
|
284
285
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Yf/YfJJZvm_NONHd4eCasDibCcRapZ_WYIO5MUxSUUbYFk.cache
|
285
286
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Z0/Z0e47cT2a-21U-w-3gkbgqC3o5jWnEzOB8vW06aJH1E.cache
|
286
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
287
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/_7/_70pGfBkvzbGsPAkWEyDxtOsVh6MCzKIQIjZBzWKpmo.cache
|
287
288
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/dL/dL7SLUWUIeVdyA1UuH-rvif0nzesOar3LdEtqzdb4bE.cache
|
288
289
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8WT8jqR1qNIdQaRDpXbyLN7E5AWkbYFBwdh9Ozk7gk.cache
|
290
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/fJ/fJGkPn7taJz_QlQTQ8ZfRHEVBLcO0pUKAGLzDyVxTUo.cache
|
289
291
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hk/hk2YB6skvc72qL4IzzQKU8Emyfe5vARjoD1bvQTw4zE.cache
|
290
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
292
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/iQ/iQO2jrGmUKvI2MPfq7DONoWK7Bh0nkRbIXwHVvtOrQE.cache
|
291
293
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ii/iiJRBZIsxKiwyzU_Z7UtQeUTXMRJRPTreTKRvAWO7_8.cache
|
292
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/mj/mjuMepngMLrtgilLlJ9oTTSqoGO1YUww1rXphQ1pOm4.cache
|
293
294
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qo6SpT75QykYB63Aqq5bgzpXyNU1Y4dGFvCCJgoWQpE.cache
|
294
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
295
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/tM/tM6A7CR8QluP_u4u59vN1GjSZGNqNH3TXkkNzb9EPXA.cache
|
295
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/rP/rPqVKPRBp_-RIGGIgI0l_fxj644SMjGHSByEJDlnwd8.cache
|
296
296
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOXN0mER62j4JiPpMTSVS7MMqs0067cZx14vD5B8qiQ.cache
|
297
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
297
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/wz/wzYINpi7aw5h5Krn76IKNLr_N_6YtgjimONMqAOGizs.cache
|
298
298
|
- spec/factories.rb
|
299
299
|
- spec/generators/application_owner_generator_spec.rb
|
300
300
|
- spec/generators/migration_generator_spec.rb
|
301
301
|
- spec/generators/previous_refresh_token_generator_spec.rb
|
302
302
|
- spec/generators/templates/routes.rb
|
303
|
-
- spec/generators/tmp/dummy/db/migrate/
|
303
|
+
- spec/generators/tmp/dummy/db/migrate/20170607073434_add_previous_refresh_token_to_access_tokens.rb
|
304
304
|
- spec/helpers/doorkeeper/dashboard_helper_spec.rb
|
305
305
|
- spec/lib/config_spec.rb
|
306
306
|
- spec/lib/doorkeeper_spec.rb
|
@@ -309,8 +309,9 @@ files:
|
|
309
309
|
- spec/lib/models/scopes_spec.rb
|
310
310
|
- spec/lib/oauth/authorization/uri_builder_spec.rb
|
311
311
|
- spec/lib/oauth/authorization_code_request_spec.rb
|
312
|
+
- spec/lib/oauth/base_request_spec.rb
|
313
|
+
- spec/lib/oauth/base_response_spec.rb
|
312
314
|
- spec/lib/oauth/client/credentials_spec.rb
|
313
|
-
- spec/lib/oauth/client/methods_spec.rb
|
314
315
|
- spec/lib/oauth/client_credentials/creator_spec.rb
|
315
316
|
- spec/lib/oauth/client_credentials/issuer_spec.rb
|
316
317
|
- spec/lib/oauth/client_credentials/validation_spec.rb
|
@@ -363,7 +364,7 @@ files:
|
|
363
364
|
- spec/stubs/generators/application_owner_generator_spec.rb
|
364
365
|
- spec/stubs/generators/migration_generator_spec.rb
|
365
366
|
- spec/stubs/generators/previous_refresh_token_generator_spec.rb
|
366
|
-
- spec/stubs/generators/tmp/dummy/db/migrate/
|
367
|
+
- spec/stubs/generators/tmp/dummy/db/migrate/20170607073435_create_doorkeeper_tables.rb
|
367
368
|
- spec/stubs/models/user.rb
|
368
369
|
- spec/stubs/spec_helper_integration.rb
|
369
370
|
- spec/stubs/support/sequel.rb
|
@@ -408,7 +409,7 @@ summary: Doorkeeper Sequel ORM
|
|
408
409
|
test_files:
|
409
410
|
- spec/generators/migration_generator_spec.rb
|
410
411
|
- spec/generators/previous_refresh_token_generator_spec.rb
|
411
|
-
- spec/generators/tmp/dummy/db/migrate/
|
412
|
+
- spec/generators/tmp/dummy/db/migrate/20170607073434_add_previous_refresh_token_to_access_tokens.rb
|
412
413
|
- spec/generators/templates/routes.rb
|
413
414
|
- spec/generators/application_owner_generator_spec.rb
|
414
415
|
- spec/support/http_method_shim.rb
|
@@ -425,7 +426,7 @@ test_files:
|
|
425
426
|
- spec/support/dependencies/factory_girl.rb
|
426
427
|
- spec/stubs/generators/migration_generator_spec.rb
|
427
428
|
- spec/stubs/generators/previous_refresh_token_generator_spec.rb
|
428
|
-
- spec/stubs/generators/tmp/dummy/db/migrate/
|
429
|
+
- spec/stubs/generators/tmp/dummy/db/migrate/20170607073435_create_doorkeeper_tables.rb
|
429
430
|
- spec/stubs/generators/application_owner_generator_spec.rb
|
430
431
|
- spec/stubs/support/sequel.rb
|
431
432
|
- spec/stubs/models/user.rb
|
@@ -442,35 +443,35 @@ test_files:
|
|
442
443
|
- spec/dummy/public/favicon.ico
|
443
444
|
- spec/dummy/public/404.html
|
444
445
|
- spec/dummy/public/500.html
|
445
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0
|
446
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Rl/RlCJ_X5xFsE3VBDhkYrY7r_R6sMgiAc03cT8nr7Q2vY.cache
|
446
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/NP/NPhq2U1wlLLaI_kEyked8SgtnxqKssdrgVRSBe6reSo.cache
|
447
447
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/BA/BAC3ZaGoeZ9Od-kKg-UQYelvRgsCa0H72-52nLdcTNw.cache
|
448
448
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hk/hk2YB6skvc72qL4IzzQKU8Emyfe5vARjoD1bvQTw4zE.cache
|
449
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
449
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/_7/_70pGfBkvzbGsPAkWEyDxtOsVh6MCzKIQIjZBzWKpmo.cache
|
450
450
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ta/TaYxNn81MhqC3DnMC6_y_Q7xap5Ntn4ggFo94EUaiak.cache
|
451
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/AF/AFlyigHB-LwDtZ5qNI4DRmhTf3EGUy-gEkUEF_1uqXs.cache
|
451
452
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Yf/YfJJZvm_NONHd4eCasDibCcRapZ_WYIO5MUxSUUbYFk.cache
|
452
453
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/3P/3PoguHEOEeItUjmwC74MWLLP-_Ijow7798bF5U6K2dw.cache
|
454
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/rP/rPqVKPRBp_-RIGGIgI0l_fxj644SMjGHSByEJDlnwd8.cache
|
453
455
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqTLVvnY2AgGkHftWPwqt_HkbwhYRsmgHxk37VqKJAY.cache
|
454
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
455
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/iO/iOpDp_7ZvBNO5WIpTmqNewUl9bB2satqXWulyNvAaX8.cache
|
456
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/1x/1xsCVuJJuiof5lwQ0Uq1i_QCYiz-0LDIbFSjOPS_Agk.cache
|
456
457
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Wq/WqbLVKOcTMZtttygYt_ncr1mGIDrzevSTaPGNmzV1D8.cache
|
458
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/9a/9aEq4B3rpPNXa9LcnXie9E6Pfof533L4SVwwz7B8z_8.cache
|
457
459
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/YF/YF60qiQ28QMoYDrLmrbHWZr7X7bl5MxVPR5QrrVCFak.cache
|
458
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Qy/Qy1ldbz6vKa_fv4E4ByxWslKFoV1qReQR5DKJ525z88.cache
|
459
460
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOXN0mER62j4JiPpMTSVS7MMqs0067cZx14vD5B8qiQ.cache
|
460
461
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8WT8jqR1qNIdQaRDpXbyLN7E5AWkbYFBwdh9Ozk7gk.cache
|
461
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/tM/tM6A7CR8QluP_u4u59vN1GjSZGNqNH3TXkkNzb9EPXA.cache
|
462
462
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/6b/6b0anrSo7Fvoc05t4Ca0zZmfS_cpERy1DsG3ea6lBOg.cache
|
463
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
463
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/iQ/iQO2jrGmUKvI2MPfq7DONoWK7Bh0nkRbIXwHVvtOrQE.cache
|
464
464
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Z0/Z0e47cT2a-21U-w-3gkbgqC3o5jWnEzOB8vW06aJH1E.cache
|
465
465
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ii/iiJRBZIsxKiwyzU_Z7UtQeUTXMRJRPTreTKRvAWO7_8.cache
|
466
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/2e/2eYh115US2lIRhM2KTEaJFa6aV_cX8iv6JAdjuq0Uio.cache
|
467
466
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/0p/0pa3wNbGHqFC6gxrMvdOJiP6gPwFv9VJ_npjEfRWxAE.cache
|
468
467
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/QX/QXcp8DweOJ6BfMedGMfeHvVXv2hjDIleln1LSJk7vOE.cache
|
469
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/_u/_uy-z8SVnhffUNelRxbPDL2aAUPb_GbqREXVsfy8uGc.cache
|
470
468
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/Bw6Nimjvy5Yv1AYbZb1t-v0eMNhv-bhwBzR-b5mY7FU.cache
|
469
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/wz/wzYINpi7aw5h5Krn76IKNLr_N_6YtgjimONMqAOGizs.cache
|
471
470
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Fq/FqQWjMAz8yjZQlMC_dUsztaOxGruI2IXyGAAUF9SvQ0.cache
|
472
471
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_D9clwKidN28hnVB1O3zEfKDwg90Usdb5ToKiPq_aw.cache
|
473
472
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/dL/dL7SLUWUIeVdyA1UuH-rvif0nzesOar3LdEtqzdb4bE.cache
|
473
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/fJ/fJGkPn7taJz_QlQTQ8ZfRHEVBLcO0pUKAGLzDyVxTUo.cache
|
474
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Pf/PfSt8NR065GM-VQDoOuekrtDjCriVOBtZLdjesjRMFc.cache
|
474
475
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ji/JitNKkP1dYdu9ObSdIkkEAsiFxEmRO5oy1UIyhT_hYs.cache
|
475
476
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qo6SpT75QykYB63Aqq5bgzpXyNU1Y4dGFvCCJgoWQpE.cache
|
476
477
|
- spec/dummy/app/views/home/index.html.erb
|
@@ -541,7 +542,6 @@ test_files:
|
|
541
542
|
- spec/lib/oauth/client_credentials_request_spec.rb
|
542
543
|
- spec/lib/oauth/forbidden_token_response_spec.rb
|
543
544
|
- spec/lib/oauth/error_response_spec.rb
|
544
|
-
- spec/lib/oauth/client/methods_spec.rb
|
545
545
|
- spec/lib/oauth/client/credentials_spec.rb
|
546
546
|
- spec/lib/oauth/client_spec.rb
|
547
547
|
- spec/lib/oauth/client_credentials/issuer_spec.rb
|
@@ -549,6 +549,7 @@ test_files:
|
|
549
549
|
- spec/lib/oauth/client_credentials/validation_spec.rb
|
550
550
|
- spec/lib/oauth/token_response_spec.rb
|
551
551
|
- spec/lib/oauth/invalid_token_response_spec.rb
|
552
|
+
- spec/lib/oauth/base_response_spec.rb
|
552
553
|
- spec/lib/oauth/error_spec.rb
|
553
554
|
- spec/lib/oauth/helpers/unique_token_spec.rb
|
554
555
|
- spec/lib/oauth/helpers/uri_checker_spec.rb
|
@@ -558,6 +559,7 @@ test_files:
|
|
558
559
|
- spec/lib/oauth/pre_authorization_spec.rb
|
559
560
|
- spec/lib/oauth/password_access_token_request_spec.rb
|
560
561
|
- spec/lib/oauth/code_request_spec.rb
|
562
|
+
- spec/lib/oauth/base_request_spec.rb
|
561
563
|
- spec/lib/oauth/refresh_token_request_spec.rb
|
562
564
|
- spec/lib/oauth/token_request_spec.rb
|
563
565
|
- spec/controllers/applications_controller_spec.rb
|
@@ -567,4 +569,3 @@ test_files:
|
|
567
569
|
- spec/controllers/token_info_controller_spec.rb
|
568
570
|
- spec/controllers/application_metal_controller.rb
|
569
571
|
- spec/spec_helper.rb
|
570
|
-
has_rdoc:
|