doorkeeper-sequel 1.2.3 → 1.3.0
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 +3 -1
- data/CHANGELOG.md +16 -1
- data/README.md +11 -5
- data/Rakefile +3 -4
- data/doorkeeper-sequel.gemspec +9 -6
- data/gemfiles/rails-4.2.gemfile +1 -1
- data/gemfiles/rails-5.0.gemfile +1 -1
- data/gemfiles/rails-5.1.gemfile +1 -1
- data/lib/doorkeeper-sequel.rb +11 -1
- data/lib/doorkeeper-sequel/gem_version.rb +2 -2
- data/lib/doorkeeper-sequel/generators/application_owner_generator.rb +14 -0
- data/lib/doorkeeper-sequel/generators/concerns/migration_actions.rb +43 -0
- data/lib/doorkeeper-sequel/generators/migration_generator.rb +14 -0
- data/lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb +14 -0
- data/lib/{generators/doorkeeper/sequel → doorkeeper-sequel/generators}/templates/add_owner_to_application.rb +0 -0
- data/lib/{generators/doorkeeper/sequel → doorkeeper-sequel/generators}/templates/add_previous_refresh_token_to_access_tokens.rb +0 -0
- data/lib/{generators/doorkeeper/sequel → doorkeeper-sequel/generators}/templates/migration.rb +0 -0
- data/lib/doorkeeper-sequel/railtie.rb +7 -0
- data/lib/doorkeeper-sequel/tasks/doorkeeper-sequel.rake +18 -0
- data/lib/doorkeeper/orm/sequel/models/access_token_mixin.rb +1 -1
- data/lib/doorkeeper/orm/sequel/models/concerns/sequel_compat.rb +2 -2
- metadata +198 -213
- data/lib/generators/doorkeeper/sequel/application_owner_generator.rb +0 -23
- data/lib/generators/doorkeeper/sequel/migration_generator.rb +0 -23
- data/lib/generators/doorkeeper/sequel/previous_refresh_token_generator.rb +0 -23
- data/spec/stubs/generators/application_owner_generator_spec.rb +0 -20
- data/spec/stubs/generators/migration_generator_spec.rb +0 -20
- data/spec/stubs/generators/previous_refresh_token_generator_spec.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d7e485cff4e94c166f3b449b6cbe61800251ba4
|
4
|
+
data.tar.gz: cfd5d6fbbc155715e2f1c8e71f14ce5cf183f406
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 354a4548e2a5719532c295d3bf0328525da9cf74487977df4990d670eb7ef5a5f5be429ce3d6e5ac0b5201439b9a06f17a8106deefe20548701e087aed050a88
|
7
|
+
data.tar.gz: ea4f879ee459d07c67dd91dda77474267bbfd4563a1a7dccb2afc8ac20db1d078ed325ecc13a51bcbaa4e51d15096976830d5afc820ed3f72297150a75376873
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -9,7 +9,9 @@ Rails:
|
|
9
9
|
Enabled: true
|
10
10
|
Documentation:
|
11
11
|
Enabled: false
|
12
|
+
Layout/EndOfLine:
|
13
|
+
Enabled: false
|
12
14
|
Metrics/BlockLength:
|
13
15
|
Exclude:
|
14
16
|
- lib/doorkeeper/orm/sequel/validators/*
|
15
|
-
- lib/
|
17
|
+
- lib/doorkeeper-sequel/generators/templates*
|
data/CHANGELOG.md
CHANGED
@@ -4,10 +4,25 @@ Reverse Chronological Order:
|
|
4
4
|
|
5
5
|
## master
|
6
6
|
|
7
|
-
https://github.com/nbulaj/doorkeeper-sequel/compare/1.
|
7
|
+
https://github.com/nbulaj/doorkeeper-sequel/compare/1.3.0...master
|
8
8
|
|
9
9
|
...
|
10
10
|
|
11
|
+
## `1.3.0` (2017-12-13)
|
12
|
+
|
13
|
+
https://github.com/nbulaj/doorkeeper-sequel/compare/1.2.3...1.3.0
|
14
|
+
|
15
|
+
* Fix dependencies to allow using of Sequel 5
|
16
|
+
* Fix models plugins for Sequel >= 4.47
|
17
|
+
* Fix generators to allow migration generation when tables not created
|
18
|
+
|
19
|
+
## `1.2.3` (2017-08-10)
|
20
|
+
|
21
|
+
https://github.com/nbulaj/doorkeeper-sequel/compare/1.2.2...1.2.3
|
22
|
+
|
23
|
+
* Test against stable Rails 5.1
|
24
|
+
* Update Doorkeeper submodule
|
25
|
+
|
11
26
|
## `1.2.2` (2017-06-07)
|
12
27
|
|
13
28
|
https://github.com/nbulaj/doorkeeper-sequel/compare/1.2.1...1.2.2
|
data/README.md
CHANGED
@@ -16,6 +16,12 @@
|
|
16
16
|
## Installation
|
17
17
|
|
18
18
|
To start using the Doorkeeper Sequel ORM, add to your Gemfile:
|
19
|
+
|
20
|
+
``` ruby
|
21
|
+
gem 'doorkeeper-sequel', '~> 1.3'
|
22
|
+
```
|
23
|
+
|
24
|
+
Or you can use git `master` branch for the latest gem version:
|
19
25
|
|
20
26
|
``` ruby
|
21
27
|
gem 'doorkeeper-sequel', git: 'https://github.com/nbulaj/doorkeeper-sequel.git'
|
@@ -32,9 +38,9 @@ end
|
|
32
38
|
Generate migrations:
|
33
39
|
|
34
40
|
```
|
35
|
-
|
36
|
-
|
37
|
-
|
41
|
+
rake doorkeeper_sequel:generate:migration
|
42
|
+
rake doorkeeper_sequel:generate:application_owner
|
43
|
+
rake doorkeeper_sequel:generate:previous_refresh_token
|
38
44
|
```
|
39
45
|
|
40
46
|
## Tests
|
@@ -67,9 +73,9 @@ Thanks.
|
|
67
73
|
|
68
74
|
Doorkeeper-sequel gem is released under the [MIT License](http://www.opensource.org/licenses/MIT).
|
69
75
|
|
70
|
-
Copyright (c) 2016 Nikita Bulai (bulajnikita@gmail.com).
|
76
|
+
Copyright (c) 2016-2018 Nikita Bulai (bulajnikita@gmail.com).
|
71
77
|
|
72
78
|
---
|
73
79
|
|
74
|
-
Please refer to https://github.com/doorkeeper-gem/doorkeeper for instructions on
|
80
|
+
Please refer to [https://github.com/doorkeeper-gem/doorkeeper](https://github.com/doorkeeper-gem/doorkeeper) for instructions on
|
75
81
|
doorkeeper’s project.
|
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ class ExtensionIntegrator
|
|
12
12
|
base_dir = File.join(Dir.pwd, 'spec')
|
13
13
|
|
14
14
|
Dir.foreach(base_dir) do |file|
|
15
|
-
next if %w
|
15
|
+
next if %w[. .. stubs].include?(file)
|
16
16
|
|
17
17
|
file_name = File.join(base_dir, file)
|
18
18
|
|
@@ -31,9 +31,8 @@ class ExtensionIntegrator
|
|
31
31
|
FileUtils.cp_r('spec/stubs/config/application.rb', 'spec/dummy/config/application.rb')
|
32
32
|
FileUtils.cp_r('spec/stubs/support/sequel.rb', 'spec/support/orm/sequel.rb')
|
33
33
|
FileUtils.rm('spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb')
|
34
|
-
#
|
34
|
+
# Remove generators specs because we are using our own
|
35
35
|
FileUtils.rm(Dir.glob('spec/generators/*.rb'))
|
36
|
-
FileUtils.cp_r(Dir.glob('spec/stubs/generators/*.rb'), 'spec/generators/')
|
37
36
|
end
|
38
37
|
end
|
39
38
|
end
|
@@ -50,7 +49,7 @@ task :copy_and_run_doorkeeper_specs do
|
|
50
49
|
# Init Doorkeeper submodule if it doesn't exists
|
51
50
|
ExtensionIntegrator.init_submodule! if Dir['doorkeeper/*'].empty?
|
52
51
|
# Copy native Doorkeeper specs
|
53
|
-
`cp -r -n doorkeeper/spec .`
|
52
|
+
`cp -r #{Gem.win_platform? ? '' : '-n'} doorkeeper/spec .`
|
54
53
|
# Replace ORM-dependent files (configs, models, etc)
|
55
54
|
ExtensionIntegrator.copy_spec_stubs!
|
56
55
|
# Run specs
|
data/doorkeeper-sequel.gemspec
CHANGED
@@ -6,27 +6,30 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = 'doorkeeper-sequel'
|
7
7
|
gem.version = DoorkeeperSequel.gem_version
|
8
8
|
gem.authors = ['Nikita Bulai']
|
9
|
-
gem.date = '2017-
|
9
|
+
gem.date = '2017-12-13'
|
10
10
|
gem.email = ['bulajnikita@gmail.com']
|
11
11
|
gem.homepage = 'http://github.com/nbulaj/doorkeeper-sequel'
|
12
12
|
gem.summary = 'Doorkeeper Sequel ORM'
|
13
13
|
gem.description = 'Provides Doorkeeper support to Sequel database toolkit.'
|
14
14
|
gem.license = 'MIT'
|
15
15
|
|
16
|
-
gem.
|
16
|
+
gem.bindir = 'bin'
|
17
|
+
gem.require_paths = %w[lib config]
|
17
18
|
gem.files = `git ls-files`.split($RS)
|
19
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
18
20
|
gem.test_files = Dir['spec/**/*']
|
19
21
|
|
20
22
|
gem.required_ruby_version = '>= 2.0.0'
|
21
23
|
|
22
24
|
gem.add_runtime_dependency 'doorkeeper', '~> 4.0', '>= 4.0.0'
|
23
|
-
gem.add_runtime_dependency 'sequel', '
|
25
|
+
gem.add_runtime_dependency 'sequel', '>= 4.0.0', '< 6'
|
24
26
|
gem.add_runtime_dependency 'sequel_polymorphic', '~> 0.2', '< 1.0'
|
27
|
+
gem.add_runtime_dependency 'thor', '>= 0.18', '< 6'
|
25
28
|
|
26
|
-
gem.add_development_dependency 'rspec-rails', '~> 3.5', '>= 3.5.0'
|
27
29
|
gem.add_development_dependency 'capybara', '~> 2.14', '>= 2.14.0'
|
28
|
-
gem.add_development_dependency '
|
30
|
+
gem.add_development_dependency 'database_cleaner', '~> 1.5', '>= 1.5.0'
|
29
31
|
gem.add_development_dependency 'factory_girl', '~> 4.8', '>= 4.8.0'
|
32
|
+
gem.add_development_dependency 'generator_spec', '~> 0.9.4'
|
33
|
+
gem.add_development_dependency 'rspec-rails', '~> 3.5', '>= 3.5.0'
|
30
34
|
gem.add_development_dependency 'timecop', '~> 0.9.0'
|
31
|
-
gem.add_development_dependency 'database_cleaner', '~> 1.5', '>= 1.5.0'
|
32
35
|
end
|
data/gemfiles/rails-4.2.gemfile
CHANGED
data/gemfiles/rails-5.0.gemfile
CHANGED
data/gemfiles/rails-5.1.gemfile
CHANGED
data/lib/doorkeeper-sequel.rb
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
require 'doorkeeper-sequel/version'
|
2
2
|
|
3
|
-
|
3
|
+
if defined?(::Rails)
|
4
|
+
require 'thor/group'
|
5
|
+
|
6
|
+
require 'doorkeeper-sequel/generators/concerns/migration_actions'
|
7
|
+
require 'doorkeeper-sequel/generators/application_owner_generator'
|
8
|
+
require 'doorkeeper-sequel/generators/migration_generator'
|
9
|
+
require 'doorkeeper-sequel/generators/previous_refresh_token_generator'
|
4
10
|
|
11
|
+
require 'doorkeeper-sequel/railtie'
|
12
|
+
end
|
13
|
+
|
14
|
+
require 'doorkeeper'
|
5
15
|
require 'doorkeeper/orm/sequel'
|
6
16
|
|
7
17
|
module DoorkeeperSequel
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module DoorkeeperSequel
|
2
|
+
class ApplicationOwnerGenerator < ::Thor::Group
|
3
|
+
include ::Thor::Actions
|
4
|
+
include MigrationActions
|
5
|
+
|
6
|
+
source_root File.expand_path('../templates', __FILE__)
|
7
|
+
|
8
|
+
desc 'Provide support for client application ownership.'
|
9
|
+
|
10
|
+
def install
|
11
|
+
create_migration 'add_owner_to_application.rb'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module DoorkeeperSequel
|
2
|
+
module MigrationActions
|
3
|
+
extend ::ActiveSupport::Concern
|
4
|
+
|
5
|
+
protected
|
6
|
+
|
7
|
+
def create_migration(template_name)
|
8
|
+
copy_file template_name, migration_filename_for(template_name)
|
9
|
+
end
|
10
|
+
|
11
|
+
def migration_template
|
12
|
+
File.expand_path('../templates/migration.rb', __FILE__)
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def migration_filename_for(template_name)
|
18
|
+
"db/migrate/#{new_migration_number}_#{template_name}"
|
19
|
+
end
|
20
|
+
|
21
|
+
def new_migration_number
|
22
|
+
current_number = current_migration_number('db/migrate')
|
23
|
+
|
24
|
+
# possible numeric migration
|
25
|
+
if current_number && current_number.start_with?('0')
|
26
|
+
# generate the same name as used by the developer
|
27
|
+
"%.#{current_number.length}d" % (current_number.to_i + 1)
|
28
|
+
else
|
29
|
+
Time.now.utc.strftime('%Y%m%d%H%M%S')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def current_migration_number(dirname)
|
34
|
+
migration_lookup_at(dirname).collect do |file|
|
35
|
+
File.basename(file).split('_').first
|
36
|
+
end.max
|
37
|
+
end
|
38
|
+
|
39
|
+
def migration_lookup_at(dirname)
|
40
|
+
Dir.glob("#{dirname}/[0-9]*_*.rb")
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module DoorkeeperSequel
|
2
|
+
class MigrationGenerator < ::Thor::Group
|
3
|
+
include ::Thor::Actions
|
4
|
+
include MigrationActions
|
5
|
+
|
6
|
+
source_root File.expand_path('../templates', __FILE__)
|
7
|
+
|
8
|
+
desc 'Installs Doorkeeper Sequel migration file.'
|
9
|
+
|
10
|
+
def install
|
11
|
+
create_migration 'migration.rb'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module DoorkeeperSequel
|
2
|
+
class PreviousRefreshTokenGenerator < ::Thor::Group
|
3
|
+
include ::Thor::Actions
|
4
|
+
include MigrationActions
|
5
|
+
|
6
|
+
source_root File.expand_path('../templates', __FILE__)
|
7
|
+
|
8
|
+
desc 'Support revoke refresh token on access token use'
|
9
|
+
|
10
|
+
def install
|
11
|
+
create_migration 'add_previous_refresh_token_to_access_tokens.rb'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
File without changes
|
File without changes
|
data/lib/{generators/doorkeeper/sequel → doorkeeper-sequel/generators}/templates/migration.rb
RENAMED
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
namespace :doorkeeper_sequel do
|
2
|
+
namespace :generate do
|
3
|
+
desc 'Generate main migration file'
|
4
|
+
task :migration do
|
5
|
+
DoorkeeperSequel::MigrationGenerator.start
|
6
|
+
end
|
7
|
+
|
8
|
+
desc 'Generate migration file for Application Owner functionality'
|
9
|
+
task :application_owner do
|
10
|
+
DoorkeeperSequel::ApplicationOwnerGenerator.start
|
11
|
+
end
|
12
|
+
|
13
|
+
desc 'Generate migration file for Previous Refresh Token functionality'
|
14
|
+
task :previous_refresh_token do
|
15
|
+
DoorkeeperSequel::PreviousRefreshTokenGenerator.start
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -73,7 +73,7 @@ module Doorkeeper
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def scopes_match?(token_scopes, param_scopes, app_scopes)
|
76
|
-
(
|
76
|
+
(token_scopes.blank? && param_scopes.blank?) ||
|
77
77
|
Doorkeeper::OAuth::Helpers::ScopeChecker.match?(
|
78
78
|
token_scopes.to_s,
|
79
79
|
param_scopes,
|
@@ -9,8 +9,8 @@ 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
|
12
|
+
# Sequel 4.47 and higher deprecated #set_allowed_columns
|
13
|
+
if (::Sequel::MAJOR >= 4 && ::Sequel::MINOR >= 47) || ::Sequel::MAJOR >= 5
|
14
14
|
plugin :whitelist_security
|
15
15
|
end
|
16
16
|
|
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.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Bulai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: doorkeeper
|
@@ -34,22 +34,22 @@ dependencies:
|
|
34
34
|
name: sequel
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '4.0'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 4.0.0
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '6'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '4.0'
|
50
47
|
- - ">="
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: 4.0.0
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '6'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: sequel_polymorphic
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,25 +71,25 @@ dependencies:
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '1.0'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
|
-
name:
|
74
|
+
name: thor
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '3.5'
|
80
77
|
- - ">="
|
81
78
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
|
79
|
+
version: '0.18'
|
80
|
+
- - "<"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '6'
|
83
|
+
type: :runtime
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '3.5'
|
90
87
|
- - ">="
|
91
88
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
89
|
+
version: '0.18'
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '6'
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: capybara
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,19 +111,25 @@ dependencies:
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 2.14.0
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
114
|
+
name: database_cleaner
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
119
|
+
version: '1.5'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 1.5.0
|
120
123
|
type: :development
|
121
124
|
prerelease: false
|
122
125
|
version_requirements: !ruby/object:Gem::Requirement
|
123
126
|
requirements:
|
124
127
|
- - "~>"
|
125
128
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
129
|
+
version: '1.5'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 1.5.0
|
127
133
|
- !ruby/object:Gem::Dependency
|
128
134
|
name: factory_girl
|
129
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,39 +151,53 @@ dependencies:
|
|
145
151
|
- !ruby/object:Gem::Version
|
146
152
|
version: 4.8.0
|
147
153
|
- !ruby/object:Gem::Dependency
|
148
|
-
name:
|
154
|
+
name: generator_spec
|
149
155
|
requirement: !ruby/object:Gem::Requirement
|
150
156
|
requirements:
|
151
157
|
- - "~>"
|
152
158
|
- !ruby/object:Gem::Version
|
153
|
-
version: 0.9.
|
159
|
+
version: 0.9.4
|
154
160
|
type: :development
|
155
161
|
prerelease: false
|
156
162
|
version_requirements: !ruby/object:Gem::Requirement
|
157
163
|
requirements:
|
158
164
|
- - "~>"
|
159
165
|
- !ruby/object:Gem::Version
|
160
|
-
version: 0.9.
|
166
|
+
version: 0.9.4
|
161
167
|
- !ruby/object:Gem::Dependency
|
162
|
-
name:
|
168
|
+
name: rspec-rails
|
163
169
|
requirement: !ruby/object:Gem::Requirement
|
164
170
|
requirements:
|
165
171
|
- - "~>"
|
166
172
|
- !ruby/object:Gem::Version
|
167
|
-
version: '
|
173
|
+
version: '3.5'
|
168
174
|
- - ">="
|
169
175
|
- !ruby/object:Gem::Version
|
170
|
-
version:
|
176
|
+
version: 3.5.0
|
171
177
|
type: :development
|
172
178
|
prerelease: false
|
173
179
|
version_requirements: !ruby/object:Gem::Requirement
|
174
180
|
requirements:
|
175
181
|
- - "~>"
|
176
182
|
- !ruby/object:Gem::Version
|
177
|
-
version: '
|
183
|
+
version: '3.5'
|
178
184
|
- - ">="
|
179
185
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
186
|
+
version: 3.5.0
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: timecop
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 0.9.0
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 0.9.0
|
181
201
|
description: Provides Doorkeeper support to Sequel database toolkit.
|
182
202
|
email:
|
183
203
|
- bulajnikita@gmail.com
|
@@ -202,6 +222,15 @@ files:
|
|
202
222
|
- gemfiles/rails-5.1.gemfile
|
203
223
|
- lib/doorkeeper-sequel.rb
|
204
224
|
- lib/doorkeeper-sequel/gem_version.rb
|
225
|
+
- lib/doorkeeper-sequel/generators/application_owner_generator.rb
|
226
|
+
- lib/doorkeeper-sequel/generators/concerns/migration_actions.rb
|
227
|
+
- lib/doorkeeper-sequel/generators/migration_generator.rb
|
228
|
+
- lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb
|
229
|
+
- lib/doorkeeper-sequel/generators/templates/add_owner_to_application.rb
|
230
|
+
- lib/doorkeeper-sequel/generators/templates/add_previous_refresh_token_to_access_tokens.rb
|
231
|
+
- lib/doorkeeper-sequel/generators/templates/migration.rb
|
232
|
+
- lib/doorkeeper-sequel/railtie.rb
|
233
|
+
- lib/doorkeeper-sequel/tasks/doorkeeper-sequel.rake
|
205
234
|
- lib/doorkeeper-sequel/version.rb
|
206
235
|
- lib/doorkeeper/orm/sequel.rb
|
207
236
|
- lib/doorkeeper/orm/sequel/access_grant.rb
|
@@ -213,12 +242,6 @@ files:
|
|
213
242
|
- lib/doorkeeper/orm/sequel/models/concerns/ownership.rb
|
214
243
|
- lib/doorkeeper/orm/sequel/models/concerns/sequel_compat.rb
|
215
244
|
- lib/doorkeeper/orm/sequel/validators/redirect_uri_validator.rb
|
216
|
-
- lib/generators/doorkeeper/sequel/application_owner_generator.rb
|
217
|
-
- lib/generators/doorkeeper/sequel/migration_generator.rb
|
218
|
-
- lib/generators/doorkeeper/sequel/previous_refresh_token_generator.rb
|
219
|
-
- lib/generators/doorkeeper/sequel/templates/add_owner_to_application.rb
|
220
|
-
- lib/generators/doorkeeper/sequel/templates/add_previous_refresh_token_to_access_tokens.rb
|
221
|
-
- lib/generators/doorkeeper/sequel/templates/migration.rb
|
222
245
|
- spec/controllers/application_metal_controller.rb
|
223
246
|
- spec/controllers/applications_controller_spec.rb
|
224
247
|
- spec/controllers/authorizations_controller_spec.rb
|
@@ -264,43 +287,28 @@ files:
|
|
264
287
|
- spec/dummy/public/500.html
|
265
288
|
- spec/dummy/public/favicon.ico
|
266
289
|
- spec/dummy/script/rails
|
267
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
268
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
269
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
270
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
271
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
272
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
273
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
274
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
275
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
276
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
277
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
278
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
279
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
280
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
281
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
282
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
283
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
284
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
285
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
286
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
287
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
288
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8WT8jqR1qNIdQaRDpXbyLN7E5AWkbYFBwdh9Ozk7gk.cache
|
289
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hk/hk2YB6skvc72qL4IzzQKU8Emyfe5vARjoD1bvQTw4zE.cache
|
290
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ii/iiJRBZIsxKiwyzU_Z7UtQeUTXMRJRPTreTKRvAWO7_8.cache
|
291
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ks/kszATX7-UW6WNkDEIfmQPzgCmBQdS6n18JgHeuTikgs.cache
|
292
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/mK/mK3hBf7JIituhK8Eye4SSiZiHfwsjrWJnRSe_Vmqsws.cache
|
293
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qo6SpT75QykYB63Aqq5bgzpXyNU1Y4dGFvCCJgoWQpE.cache
|
294
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/uk/uk0Wuikya-uKSt8N38Pz-XGq4Iaq0VJ5jNG4H8axOlI.cache
|
295
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/vE/vEXvloR-Mc9vEJ2YldGHD7XjwHTkdR4gOHuwoDAw9Fs.cache
|
296
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOXN0mER62j4JiPpMTSVS7MMqs0067cZx14vD5B8qiQ.cache
|
297
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/v_/v_rNPRfv5-jGYZjqUiCvbmUXWAQ8LRvBd6h2VFb7Ah8.cache
|
290
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/73/73WmPSsxcFUH3sQ78FwUeq1ceF8b3r9gZY9AGRd_l5w.cache
|
291
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/CX/CXWZ-616dXIPKasFMtwySrVGETWRB066qhES6H3_RvQ.cache
|
292
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Fx/FxdDKvtlbTivzsMSzJHbnAZQVaaiInap1_vkBFMMdAQ.cache
|
293
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Hq/HqRUiosy9Bd8mwaMXM0Yvgdh762dse2Hr8yE6Xc2V6U.cache
|
294
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/K7/K7kmAc2aw5AF4qeLQ-s7WJ2z-BP6nuPGg2s7bs0be9s.cache
|
295
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ky/KyEMRZa4ezjI7Xg0khrOTwX3EgFEqj4iYKRdLNvIMpA.cache
|
296
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/LG/LGME-DudDFVBaXOG81_z7oqO48giEKUUvhCKB1Tkznc.cache
|
297
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Nf/NfXZiym4R5st16i4fpdlnLxSPphdX6o6J51gUUNPyEc.cache
|
298
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Nq/NqV1LRMZLHL0jTu8eQHyYOA-LfLJJcF7OaYDrkb2dN8.cache
|
299
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/T8/T8V1GFIoFBWc-yaXUjUh1HePipuPvkFftoaC61kUm5w.cache
|
300
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/VV/VV8RHS_PHoBmYrgeoK6UoM-CBR_6J2Xt7oi1QYFCtyU.cache
|
301
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gJ/gJZ_46qMsq2EmSbViTINyMsqfjo8FVLBqFREXd15jiA.cache
|
302
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hl/hl0obfJOSjNunMCJ3tIQ8X5Yc_Hp32R9DuJdvhwJ-Mc.cache
|
303
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/iP/iPhguIHc7nety3xIQiBTPfRK9A6R2hF8XnOPcfMFlY4.cache
|
304
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/jW/jWRQgkFDRf151lP4i49LVMtaG2tUT3xPhdn1SbU63h4.cache
|
305
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/lU/lUzlNRV4yl2iKXaNaAZAr049YRQchRRa6-4cXhPydms.cache
|
306
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ng/ngbLQGYIiWbS4rAn8pq5GfOlRhQrUw7IZVWhtsddbyQ.cache
|
307
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/nu/nusxoDreMz1RFkCMx6Xbs3ccRoZm19OEmTaf072lIQ4.cache
|
308
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pA/pAReeZPKPhiRJHK2upZNWOcpt4kPMHPjhSh5L6Ty-KY.cache
|
309
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qF/qFbpBMCtAT5V79HYbTAM5fdnJcOSH9AnNB97O_p7ac4.cache
|
310
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ql/ql_X20Gcj1B-zf9jvbxuis0PfLxrhIHCgq6DX8e69SQ.cache
|
298
311
|
- spec/factories.rb
|
299
|
-
- spec/generators/application_owner_generator_spec.rb
|
300
|
-
- spec/generators/migration_generator_spec.rb
|
301
|
-
- spec/generators/previous_refresh_token_generator_spec.rb
|
302
|
-
- spec/generators/templates/routes.rb
|
303
|
-
- spec/generators/tmp/dummy/db/migrate/20170810125730_add_owner_to_application.rb
|
304
312
|
- spec/helpers/doorkeeper/dashboard_helper_spec.rb
|
305
313
|
- spec/lib/config_spec.rb
|
306
314
|
- spec/lib/doorkeeper_spec.rb
|
@@ -361,10 +369,6 @@ files:
|
|
361
369
|
- spec/spec_helper_integration.rb
|
362
370
|
- spec/stubs/config/application.rb
|
363
371
|
- spec/stubs/config/initializers/db.rb
|
364
|
-
- spec/stubs/generators/application_owner_generator_spec.rb
|
365
|
-
- spec/stubs/generators/migration_generator_spec.rb
|
366
|
-
- spec/stubs/generators/previous_refresh_token_generator_spec.rb
|
367
|
-
- spec/stubs/generators/tmp/dummy/db/migrate/20170810125729_add_previous_refresh_token_to_access_tokens.rb
|
368
372
|
- spec/stubs/models/user.rb
|
369
373
|
- spec/stubs/spec_helper_integration.rb
|
370
374
|
- spec/stubs/support/sequel.rb
|
@@ -402,170 +406,151 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
402
406
|
version: '0'
|
403
407
|
requirements: []
|
404
408
|
rubyforge_project:
|
405
|
-
rubygems_version: 2.
|
409
|
+
rubygems_version: 2.5.1
|
406
410
|
signing_key:
|
407
411
|
specification_version: 4
|
408
412
|
summary: Doorkeeper Sequel ORM
|
409
413
|
test_files:
|
410
|
-
- spec/
|
411
|
-
- spec/
|
412
|
-
- spec/
|
413
|
-
- spec/
|
414
|
-
- spec/
|
415
|
-
- spec/
|
416
|
-
- spec/
|
417
|
-
- spec/
|
418
|
-
- spec/support/orm/sequel.rb
|
419
|
-
- spec/support/orm/active_record.rb
|
420
|
-
- spec/support/helpers/url_helper.rb
|
421
|
-
- spec/support/helpers/model_helper.rb
|
422
|
-
- spec/support/helpers/config_helper.rb
|
423
|
-
- spec/support/helpers/request_spec_helper.rb
|
424
|
-
- spec/support/helpers/access_token_request_helper.rb
|
425
|
-
- spec/support/helpers/authorization_request_helper.rb
|
426
|
-
- spec/support/dependencies/factory_girl.rb
|
427
|
-
- spec/stubs/generators/migration_generator_spec.rb
|
428
|
-
- spec/stubs/generators/previous_refresh_token_generator_spec.rb
|
429
|
-
- spec/stubs/generators/tmp/dummy/db/migrate/20170810125729_add_previous_refresh_token_to_access_tokens.rb
|
430
|
-
- spec/stubs/generators/application_owner_generator_spec.rb
|
431
|
-
- spec/stubs/support/sequel.rb
|
432
|
-
- spec/stubs/models/user.rb
|
433
|
-
- spec/stubs/spec_helper_integration.rb
|
434
|
-
- spec/stubs/config/application.rb
|
435
|
-
- spec/stubs/config/initializers/db.rb
|
436
|
-
- spec/factories.rb
|
437
|
-
- spec/models/doorkeeper/access_token_spec.rb
|
438
|
-
- spec/models/doorkeeper/application_spec.rb
|
439
|
-
- spec/models/doorkeeper/access_grant_spec.rb
|
440
|
-
- spec/spec_helper_integration.rb
|
441
|
-
- spec/validators/redirect_uri_validator_spec.rb
|
442
|
-
- spec/dummy/public/422.html
|
443
|
-
- spec/dummy/public/favicon.ico
|
444
|
-
- spec/dummy/public/404.html
|
445
|
-
- spec/dummy/public/500.html
|
446
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/v_/v_rNPRfv5-jGYZjqUiCvbmUXWAQ8LRvBd6h2VFb7Ah8.cache
|
447
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/BA/BAC3ZaGoeZ9Od-kKg-UQYelvRgsCa0H72-52nLdcTNw.cache
|
448
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hk/hk2YB6skvc72qL4IzzQKU8Emyfe5vARjoD1bvQTw4zE.cache
|
449
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/6a/6azKVkJU7hpXH596idyOtV8gydK01XDzOFTpeEJbdL4.cache
|
450
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ks/kszATX7-UW6WNkDEIfmQPzgCmBQdS6n18JgHeuTikgs.cache
|
451
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ta/TaYxNn81MhqC3DnMC6_y_Q7xap5Ntn4ggFo94EUaiak.cache
|
452
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Yf/YfJJZvm_NONHd4eCasDibCcRapZ_WYIO5MUxSUUbYFk.cache
|
453
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/3P/3PoguHEOEeItUjmwC74MWLLP-_Ijow7798bF5U6K2dw.cache
|
454
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqTLVvnY2AgGkHftWPwqt_HkbwhYRsmgHxk37VqKJAY.cache
|
455
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Wq/WqbLVKOcTMZtttygYt_ncr1mGIDrzevSTaPGNmzV1D8.cache
|
456
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/mK/mK3hBf7JIituhK8Eye4SSiZiHfwsjrWJnRSe_Vmqsws.cache
|
457
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/RJ/RJwnkCVA_7saQgrw7N4LHLNGfW3AfbZASfCBtpmuAXE.cache
|
458
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/YF/YF60qiQ28QMoYDrLmrbHWZr7X7bl5MxVPR5QrrVCFak.cache
|
459
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOXN0mER62j4JiPpMTSVS7MMqs0067cZx14vD5B8qiQ.cache
|
460
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8WT8jqR1qNIdQaRDpXbyLN7E5AWkbYFBwdh9Ozk7gk.cache
|
461
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/6b/6b0anrSo7Fvoc05t4Ca0zZmfS_cpERy1DsG3ea6lBOg.cache
|
462
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/BF/BFKLz7OpWyKHF9HbCB2KMj9YiSaAaqq-Pr_gUN9ynXQ.cache
|
463
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Z0/Z0e47cT2a-21U-w-3gkbgqC3o5jWnEzOB8vW06aJH1E.cache
|
464
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ii/iiJRBZIsxKiwyzU_Z7UtQeUTXMRJRPTreTKRvAWO7_8.cache
|
465
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/0p/0pa3wNbGHqFC6gxrMvdOJiP6gPwFv9VJ_npjEfRWxAE.cache
|
466
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Dj/DjHdUUmp3ok2NdsJIJgLAP3WPBsUrrlml2jlFMQ2V4M.cache
|
467
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/uk/uk0Wuikya-uKSt8N38Pz-XGq4Iaq0VJ5jNG4H8axOlI.cache
|
468
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/QX/QXcp8DweOJ6BfMedGMfeHvVXv2hjDIleln1LSJk7vOE.cache
|
469
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/2b/2b4WEnYIr893PPaq2BvmtSqbvpOaimHVpbJsBLujb9A.cache
|
470
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/Bw6Nimjvy5Yv1AYbZb1t-v0eMNhv-bhwBzR-b5mY7FU.cache
|
471
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Fq/FqQWjMAz8yjZQlMC_dUsztaOxGruI2IXyGAAUF9SvQ0.cache
|
472
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_D9clwKidN28hnVB1O3zEfKDwg90Usdb5ToKiPq_aw.cache
|
473
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/dL/dL7SLUWUIeVdyA1UuH-rvif0nzesOar3LdEtqzdb4bE.cache
|
474
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ji/JitNKkP1dYdu9ObSdIkkEAsiFxEmRO5oy1UIyhT_hYs.cache
|
475
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/vE/vEXvloR-Mc9vEJ2YldGHD7XjwHTkdR4gOHuwoDAw9Fs.cache
|
476
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qo6SpT75QykYB63Aqq5bgzpXyNU1Y4dGFvCCJgoWQpE.cache
|
477
|
-
- spec/dummy/app/views/home/index.html.erb
|
478
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
479
|
-
- spec/dummy/app/models/user.rb
|
480
|
-
- spec/dummy/app/helpers/application_helper.rb
|
481
|
-
- spec/dummy/app/controllers/metal_controller.rb
|
414
|
+
- spec/controllers/applications_controller_spec.rb
|
415
|
+
- spec/controllers/application_metal_controller.rb
|
416
|
+
- spec/controllers/authorizations_controller_spec.rb
|
417
|
+
- spec/controllers/protected_resources_controller_spec.rb
|
418
|
+
- spec/controllers/tokens_controller_spec.rb
|
419
|
+
- spec/controllers/token_info_controller_spec.rb
|
420
|
+
- spec/dummy/app/controllers/application_controller.rb
|
421
|
+
- spec/dummy/app/controllers/custom_authorizations_controller.rb
|
482
422
|
- spec/dummy/app/controllers/full_protected_resources_controller.rb
|
483
423
|
- spec/dummy/app/controllers/home_controller.rb
|
484
|
-
- spec/dummy/app/controllers/
|
424
|
+
- spec/dummy/app/controllers/metal_controller.rb
|
485
425
|
- spec/dummy/app/controllers/semi_protected_resources_controller.rb
|
486
|
-
- spec/dummy/app/
|
487
|
-
- spec/dummy/
|
488
|
-
- spec/dummy/
|
489
|
-
- spec/dummy/
|
490
|
-
- spec/dummy/db/schema.rb
|
491
|
-
- spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
|
492
|
-
- spec/dummy/db/migrate/20111122132257_create_users.rb
|
493
|
-
- spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
|
494
|
-
- spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
|
495
|
-
- spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
|
496
|
-
- spec/dummy/config/environment.rb
|
426
|
+
- spec/dummy/app/helpers/application_helper.rb
|
427
|
+
- spec/dummy/app/models/user.rb
|
428
|
+
- spec/dummy/app/views/home/index.html.erb
|
429
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
497
430
|
- spec/dummy/config/application.rb
|
498
|
-
- spec/dummy/config/
|
431
|
+
- spec/dummy/config/boot.rb
|
432
|
+
- spec/dummy/config/database.yml
|
433
|
+
- spec/dummy/config/environment.rb
|
499
434
|
- spec/dummy/config/environments/development.rb
|
500
435
|
- spec/dummy/config/environments/production.rb
|
501
|
-
- spec/dummy/config/
|
502
|
-
- spec/dummy/config/routes.rb
|
503
|
-
- spec/dummy/config/locales/doorkeeper.en.yml
|
504
|
-
- spec/dummy/config/boot.rb
|
436
|
+
- spec/dummy/config/environments/test.rb
|
505
437
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
438
|
+
- spec/dummy/config/initializers/db.rb
|
506
439
|
- spec/dummy/config/initializers/doorkeeper.rb
|
440
|
+
- spec/dummy/config/initializers/secret_token.rb
|
507
441
|
- spec/dummy/config/initializers/session_store.rb
|
508
442
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
509
|
-
- spec/dummy/config/
|
510
|
-
- spec/dummy/config/
|
443
|
+
- spec/dummy/config/locales/doorkeeper.en.yml
|
444
|
+
- spec/dummy/config/routes.rb
|
445
|
+
- spec/dummy/config.ru
|
446
|
+
- spec/dummy/db/migrate/20111122132257_create_users.rb
|
447
|
+
- spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
|
448
|
+
- spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
|
449
|
+
- spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
|
450
|
+
- spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
|
451
|
+
- spec/dummy/db/schema.rb
|
511
452
|
- spec/dummy/log/test.log
|
453
|
+
- spec/dummy/public/404.html
|
454
|
+
- spec/dummy/public/422.html
|
455
|
+
- spec/dummy/public/500.html
|
456
|
+
- spec/dummy/public/favicon.ico
|
457
|
+
- spec/dummy/Rakefile
|
458
|
+
- spec/dummy/script/rails
|
459
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/73/73WmPSsxcFUH3sQ78FwUeq1ceF8b3r9gZY9AGRd_l5w.cache
|
460
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/CX/CXWZ-616dXIPKasFMtwySrVGETWRB066qhES6H3_RvQ.cache
|
461
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Fx/FxdDKvtlbTivzsMSzJHbnAZQVaaiInap1_vkBFMMdAQ.cache
|
462
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gJ/gJZ_46qMsq2EmSbViTINyMsqfjo8FVLBqFREXd15jiA.cache
|
463
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hl/hl0obfJOSjNunMCJ3tIQ8X5Yc_Hp32R9DuJdvhwJ-Mc.cache
|
464
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Hq/HqRUiosy9Bd8mwaMXM0Yvgdh762dse2Hr8yE6Xc2V6U.cache
|
465
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/iP/iPhguIHc7nety3xIQiBTPfRK9A6R2hF8XnOPcfMFlY4.cache
|
466
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/jW/jWRQgkFDRf151lP4i49LVMtaG2tUT3xPhdn1SbU63h4.cache
|
467
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/K7/K7kmAc2aw5AF4qeLQ-s7WJ2z-BP6nuPGg2s7bs0be9s.cache
|
468
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ky/KyEMRZa4ezjI7Xg0khrOTwX3EgFEqj4iYKRdLNvIMpA.cache
|
469
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/LG/LGME-DudDFVBaXOG81_z7oqO48giEKUUvhCKB1Tkznc.cache
|
470
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/lU/lUzlNRV4yl2iKXaNaAZAr049YRQchRRa6-4cXhPydms.cache
|
471
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Nf/NfXZiym4R5st16i4fpdlnLxSPphdX6o6J51gUUNPyEc.cache
|
472
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ng/ngbLQGYIiWbS4rAn8pq5GfOlRhQrUw7IZVWhtsddbyQ.cache
|
473
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Nq/NqV1LRMZLHL0jTu8eQHyYOA-LfLJJcF7OaYDrkb2dN8.cache
|
474
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/nu/nusxoDreMz1RFkCMx6Xbs3ccRoZm19OEmTaf072lIQ4.cache
|
475
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pA/pAReeZPKPhiRJHK2upZNWOcpt4kPMHPjhSh5L6Ty-KY.cache
|
476
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qF/qFbpBMCtAT5V79HYbTAM5fdnJcOSH9AnNB97O_p7ac4.cache
|
477
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ql/ql_X20Gcj1B-zf9jvbxuis0PfLxrhIHCgq6DX8e69SQ.cache
|
478
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/T8/T8V1GFIoFBWc-yaXUjUh1HePipuPvkFftoaC61kUm5w.cache
|
479
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/VV/VV8RHS_PHoBmYrgeoK6UoM-CBR_6J2Xt7oi1QYFCtyU.cache
|
480
|
+
- spec/factories.rb
|
512
481
|
- spec/helpers/doorkeeper/dashboard_helper_spec.rb
|
513
|
-
- spec/
|
514
|
-
- spec/
|
515
|
-
- spec/routing/custom_controller_routes_spec.rb
|
516
|
-
- spec/requests/flows/authorization_code_errors_spec.rb
|
517
|
-
- spec/requests/flows/skip_authorization_spec.rb
|
518
|
-
- spec/requests/flows/client_credentials_spec.rb
|
519
|
-
- spec/requests/flows/authorization_code_spec.rb
|
520
|
-
- spec/requests/flows/password_spec.rb
|
521
|
-
- spec/requests/flows/revoke_token_spec.rb
|
522
|
-
- spec/requests/flows/implicit_grant_spec.rb
|
523
|
-
- spec/requests/flows/implicit_grant_errors_spec.rb
|
524
|
-
- spec/requests/flows/refresh_token_spec.rb
|
525
|
-
- spec/requests/protected_resources/metal_spec.rb
|
526
|
-
- spec/requests/protected_resources/private_api_spec.rb
|
527
|
-
- spec/requests/applications/applications_request_spec.rb
|
528
|
-
- spec/requests/applications/authorized_applications_spec.rb
|
529
|
-
- spec/requests/endpoints/token_spec.rb
|
530
|
-
- spec/requests/endpoints/authorization_spec.rb
|
531
|
-
- spec/lib/request/strategy_spec.rb
|
482
|
+
- spec/lib/config_spec.rb
|
483
|
+
- spec/lib/doorkeeper_spec.rb
|
532
484
|
- spec/lib/models/expirable_spec.rb
|
533
|
-
- spec/lib/models/scopes_spec.rb
|
534
485
|
- spec/lib/models/revocable_spec.rb
|
535
|
-
- spec/lib/
|
536
|
-
- spec/lib/doorkeeper_spec.rb
|
537
|
-
- spec/lib/config_spec.rb
|
538
|
-
- spec/lib/oauth/code_response_spec.rb
|
539
|
-
- spec/lib/oauth/scopes_spec.rb
|
486
|
+
- spec/lib/models/scopes_spec.rb
|
540
487
|
- spec/lib/oauth/authorization/uri_builder_spec.rb
|
541
|
-
- spec/lib/oauth/
|
542
|
-
- spec/lib/oauth/
|
543
|
-
- spec/lib/oauth/
|
544
|
-
- spec/lib/oauth/error_response_spec.rb
|
488
|
+
- spec/lib/oauth/authorization_code_request_spec.rb
|
489
|
+
- spec/lib/oauth/base_request_spec.rb
|
490
|
+
- spec/lib/oauth/base_response_spec.rb
|
545
491
|
- spec/lib/oauth/client/credentials_spec.rb
|
546
|
-
- spec/lib/oauth/client_spec.rb
|
547
|
-
- spec/lib/oauth/client_credentials/issuer_spec.rb
|
548
492
|
- spec/lib/oauth/client_credentials/creator_spec.rb
|
493
|
+
- spec/lib/oauth/client_credentials/issuer_spec.rb
|
549
494
|
- spec/lib/oauth/client_credentials/validation_spec.rb
|
550
|
-
- spec/lib/oauth/
|
551
|
-
- spec/lib/oauth/
|
552
|
-
- spec/lib/oauth/
|
495
|
+
- spec/lib/oauth/client_credentials_integration_spec.rb
|
496
|
+
- spec/lib/oauth/client_credentials_request_spec.rb
|
497
|
+
- spec/lib/oauth/client_spec.rb
|
498
|
+
- spec/lib/oauth/code_request_spec.rb
|
499
|
+
- spec/lib/oauth/code_response_spec.rb
|
500
|
+
- spec/lib/oauth/error_response_spec.rb
|
553
501
|
- spec/lib/oauth/error_spec.rb
|
502
|
+
- spec/lib/oauth/forbidden_token_response_spec.rb
|
503
|
+
- spec/lib/oauth/helpers/scope_checker_spec.rb
|
554
504
|
- spec/lib/oauth/helpers/unique_token_spec.rb
|
555
505
|
- spec/lib/oauth/helpers/uri_checker_spec.rb
|
556
|
-
- spec/lib/oauth/
|
557
|
-
- spec/lib/oauth/client_credentials_integration_spec.rb
|
558
|
-
- spec/lib/oauth/authorization_code_request_spec.rb
|
559
|
-
- spec/lib/oauth/pre_authorization_spec.rb
|
506
|
+
- spec/lib/oauth/invalid_token_response_spec.rb
|
560
507
|
- spec/lib/oauth/password_access_token_request_spec.rb
|
561
|
-
- spec/lib/oauth/
|
562
|
-
- spec/lib/oauth/base_request_spec.rb
|
508
|
+
- spec/lib/oauth/pre_authorization_spec.rb
|
563
509
|
- spec/lib/oauth/refresh_token_request_spec.rb
|
510
|
+
- spec/lib/oauth/scopes_spec.rb
|
564
511
|
- spec/lib/oauth/token_request_spec.rb
|
565
|
-
- spec/
|
566
|
-
- spec/
|
567
|
-
- spec/
|
568
|
-
- spec/
|
569
|
-
- spec/
|
570
|
-
- spec/
|
512
|
+
- spec/lib/oauth/token_response_spec.rb
|
513
|
+
- spec/lib/oauth/token_spec.rb
|
514
|
+
- spec/lib/request/strategy_spec.rb
|
515
|
+
- spec/lib/server_spec.rb
|
516
|
+
- spec/models/doorkeeper/access_grant_spec.rb
|
517
|
+
- spec/models/doorkeeper/access_token_spec.rb
|
518
|
+
- spec/models/doorkeeper/application_spec.rb
|
519
|
+
- spec/requests/applications/applications_request_spec.rb
|
520
|
+
- spec/requests/applications/authorized_applications_spec.rb
|
521
|
+
- spec/requests/endpoints/authorization_spec.rb
|
522
|
+
- spec/requests/endpoints/token_spec.rb
|
523
|
+
- spec/requests/flows/authorization_code_errors_spec.rb
|
524
|
+
- spec/requests/flows/authorization_code_spec.rb
|
525
|
+
- spec/requests/flows/client_credentials_spec.rb
|
526
|
+
- spec/requests/flows/implicit_grant_errors_spec.rb
|
527
|
+
- spec/requests/flows/implicit_grant_spec.rb
|
528
|
+
- spec/requests/flows/password_spec.rb
|
529
|
+
- spec/requests/flows/refresh_token_spec.rb
|
530
|
+
- spec/requests/flows/revoke_token_spec.rb
|
531
|
+
- spec/requests/flows/skip_authorization_spec.rb
|
532
|
+
- spec/requests/protected_resources/metal_spec.rb
|
533
|
+
- spec/requests/protected_resources/private_api_spec.rb
|
534
|
+
- spec/routing/custom_controller_routes_spec.rb
|
535
|
+
- spec/routing/default_routes_spec.rb
|
536
|
+
- spec/routing/scoped_routes_spec.rb
|
571
537
|
- spec/spec_helper.rb
|
538
|
+
- spec/spec_helper_integration.rb
|
539
|
+
- spec/stubs/config/application.rb
|
540
|
+
- spec/stubs/config/initializers/db.rb
|
541
|
+
- spec/stubs/models/user.rb
|
542
|
+
- spec/stubs/spec_helper_integration.rb
|
543
|
+
- spec/stubs/support/sequel.rb
|
544
|
+
- spec/support/dependencies/factory_girl.rb
|
545
|
+
- spec/support/helpers/access_token_request_helper.rb
|
546
|
+
- spec/support/helpers/authorization_request_helper.rb
|
547
|
+
- spec/support/helpers/config_helper.rb
|
548
|
+
- spec/support/helpers/model_helper.rb
|
549
|
+
- spec/support/helpers/request_spec_helper.rb
|
550
|
+
- spec/support/helpers/url_helper.rb
|
551
|
+
- spec/support/http_method_shim.rb
|
552
|
+
- spec/support/orm/active_record.rb
|
553
|
+
- spec/support/orm/sequel.rb
|
554
|
+
- spec/support/shared/controllers_shared_context.rb
|
555
|
+
- spec/support/shared/models_shared_examples.rb
|
556
|
+
- spec/validators/redirect_uri_validator_spec.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Doorkeeper
|
2
|
-
module Sequel
|
3
|
-
class ApplicationOwnerGenerator < ::Rails::Generators::Base
|
4
|
-
source_root File.expand_path('../templates', __FILE__)
|
5
|
-
|
6
|
-
desc 'Provide support for client application ownership.'
|
7
|
-
|
8
|
-
def install
|
9
|
-
copy_file 'add_owner_to_application.rb', migration_file_name
|
10
|
-
end
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def migration_file_name
|
15
|
-
"db/migrate/#{migration_timestamp}_add_owner_to_application.rb"
|
16
|
-
end
|
17
|
-
|
18
|
-
def migration_timestamp
|
19
|
-
Time.current.strftime('%Y%m%d%H%M%S')
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Doorkeeper
|
2
|
-
module Sequel
|
3
|
-
class MigrationGenerator < ::Rails::Generators::Base
|
4
|
-
source_root File.expand_path('../templates', __FILE__)
|
5
|
-
|
6
|
-
desc 'Installs Doorkeeper Sequel migration file.'
|
7
|
-
|
8
|
-
def install
|
9
|
-
copy_file 'migration.rb', migration_file_name
|
10
|
-
end
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def migration_file_name
|
15
|
-
"db/migrate/#{migration_timestamp}_create_doorkeeper_tables.rb"
|
16
|
-
end
|
17
|
-
|
18
|
-
def migration_timestamp
|
19
|
-
Time.current.strftime('%Y%m%d%H%M%S')
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Doorkeeper
|
2
|
-
module Sequel
|
3
|
-
class PreviousRefreshTokenGenerator < ::Rails::Generators::Base
|
4
|
-
source_root File.expand_path('../templates', __FILE__)
|
5
|
-
|
6
|
-
desc 'Support revoke refresh token on access token use'
|
7
|
-
|
8
|
-
def install
|
9
|
-
copy_file 'add_previous_refresh_token_to_access_tokens.rb', migration_file_name
|
10
|
-
end
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def migration_file_name
|
15
|
-
"db/migrate/#{migration_timestamp}_add_previous_refresh_token_to_access_tokens.rb"
|
16
|
-
end
|
17
|
-
|
18
|
-
def migration_timestamp
|
19
|
-
Time.current.strftime('%Y%m%d%H%M%S')
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'spec_helper_integration'
|
2
|
-
require 'generators/doorkeeper/sequel/application_owner_generator'
|
3
|
-
|
4
|
-
describe 'Doorkeeper::Sequel::ApplicationOwnerGenerator' do
|
5
|
-
include GeneratorSpec::TestCase
|
6
|
-
|
7
|
-
tests Doorkeeper::Sequel::ApplicationOwnerGenerator
|
8
|
-
destination ::File.expand_path('../tmp/dummy', __FILE__)
|
9
|
-
|
10
|
-
describe 'after running the generator' do
|
11
|
-
before :each do
|
12
|
-
prepare_destination
|
13
|
-
run_generator
|
14
|
-
end
|
15
|
-
|
16
|
-
it 'creates a migration' do
|
17
|
-
assert_migration 'db/migrate/add_owner_to_application.rb'
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'spec_helper_integration'
|
2
|
-
require 'generators/doorkeeper/sequel/migration_generator'
|
3
|
-
|
4
|
-
describe 'Doorkeeper::Sequel::MigrationGenerator' do
|
5
|
-
include GeneratorSpec::TestCase
|
6
|
-
|
7
|
-
tests Doorkeeper::Sequel::MigrationGenerator
|
8
|
-
destination ::File.expand_path('../tmp/dummy', __FILE__)
|
9
|
-
|
10
|
-
describe 'after running the generator' do
|
11
|
-
before :each do
|
12
|
-
prepare_destination
|
13
|
-
run_generator
|
14
|
-
end
|
15
|
-
|
16
|
-
it 'creates a migration' do
|
17
|
-
assert_migration 'db/migrate/create_doorkeeper_tables.rb'
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'spec_helper_integration'
|
2
|
-
require 'generators/doorkeeper/sequel/previous_refresh_token_generator'
|
3
|
-
|
4
|
-
describe 'Doorkeeper::Sequel::PreviousRefreshTokenGenerator' do
|
5
|
-
include GeneratorSpec::TestCase
|
6
|
-
|
7
|
-
tests Doorkeeper::Sequel::PreviousRefreshTokenGenerator
|
8
|
-
destination ::File.expand_path('../tmp/dummy', __FILE__)
|
9
|
-
|
10
|
-
describe 'after running the generator' do
|
11
|
-
before :each do
|
12
|
-
prepare_destination
|
13
|
-
run_generator
|
14
|
-
end
|
15
|
-
|
16
|
-
it 'creates a migration' do
|
17
|
-
assert_migration 'db/migrate/add_previous_refresh_token_to_access_tokens.rb'
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|