doorkeeper-sequel 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +29 -2
- data/.travis.yml +3 -12
- data/Gemfile +13 -9
- data/Rakefile +22 -20
- data/config/locales/en.yml +8 -0
- data/doorkeeper-sequel.gemspec +27 -24
- data/gemfiles/rails-5.0.gemfile +9 -6
- data/gemfiles/rails-5.1.gemfile +9 -6
- data/gemfiles/rails-5.2.gemfile +9 -6
- data/gemfiles/rails-6.0.gemfile +18 -0
- data/lib/doorkeeper-sequel.rb +20 -17
- data/lib/doorkeeper-sequel/gem_version.rb +4 -2
- data/lib/doorkeeper-sequel/generators/application_owner_generator.rb +5 -3
- data/lib/doorkeeper-sequel/generators/concerns/migration_actions.rb +8 -6
- data/lib/doorkeeper-sequel/generators/confidential_applications_generator.rb +5 -3
- data/lib/doorkeeper-sequel/generators/migration_generator.rb +5 -3
- data/lib/doorkeeper-sequel/generators/pkce_generator.rb +5 -3
- data/lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb +5 -3
- data/lib/doorkeeper-sequel/generators/templates/add_confidential_to_application_migration.rb +2 -0
- data/lib/doorkeeper-sequel/generators/templates/add_owner_to_application.rb +3 -1
- data/lib/doorkeeper-sequel/generators/templates/add_previous_refresh_token_to_access_tokens.rb +3 -1
- data/lib/doorkeeper-sequel/generators/templates/create_doorkeeper_tables.rb +4 -2
- data/lib/doorkeeper-sequel/generators/templates/enable_pkce_migration.rb +3 -1
- data/lib/doorkeeper-sequel/mixins/access_grant_mixin.rb +30 -16
- data/lib/doorkeeper-sequel/mixins/access_token_mixin.rb +73 -24
- data/lib/doorkeeper-sequel/mixins/application_mixin.rb +52 -25
- data/lib/doorkeeper-sequel/mixins/concerns/ownership.rb +2 -0
- data/lib/doorkeeper-sequel/mixins/concerns/sequel_compat.rb +6 -4
- data/lib/doorkeeper-sequel/railtie.rb +3 -1
- data/lib/doorkeeper-sequel/tasks/doorkeeper-sequel.rake +7 -5
- data/lib/doorkeeper-sequel/validators/redirect_uri_validator.rb +29 -6
- data/lib/doorkeeper-sequel/version.rb +3 -1
- data/lib/doorkeeper/orm/sequel.rb +9 -5
- data/lib/doorkeeper/orm/sequel/access_grant.rb +18 -0
- data/lib/doorkeeper/orm/sequel/access_token.rb +2 -0
- data/lib/doorkeeper/orm/sequel/application.rb +26 -3
- data/lib/doorkeeper/redirect_uri_validator.rb +9 -0
- data/spec/stubs/spec_helper_integration.rb +8 -8
- metadata +177 -245
- data/gemfiles/rails-4.2.gemfile +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3c7a81816c6e8bf24a4e578dccaedf96d8efb30d00e7c6993c31f009dca56c69
|
4
|
+
data.tar.gz: e55d1338ed9360dfa8431cee7acfa6d29f0a3cada3fa6840182a4d1918aaafea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e574bc75c50bd88633d84f14b6f0db2b3449e88b45bae879ef91032b98d8e9ea355cfb6ae3ec9ef85477d4c4a4a77a893965a7f96425f7990e4a1faeb0ae483
|
7
|
+
data.tar.gz: bf2e5d88624242f6394b16ec9b9555d09991f34bd7ee80a1573f516116b136df84f7de606d02eacdfb675c16979c050d82f52c2c38dde924085e99e798cee36e
|
data/.rubocop.yml
CHANGED
@@ -5,8 +5,6 @@ AllCops:
|
|
5
5
|
- 'doorkeeper/**/*'
|
6
6
|
- 'spec/**/*'
|
7
7
|
DisplayCopNames: true
|
8
|
-
Rails:
|
9
|
-
Enabled: true
|
10
8
|
Documentation:
|
11
9
|
Enabled: false
|
12
10
|
Layout/EndOfLine:
|
@@ -15,3 +13,32 @@ Metrics/BlockLength:
|
|
15
13
|
Exclude:
|
16
14
|
- lib/doorkeeper/orm/sequel/validators/*
|
17
15
|
- lib/doorkeeper-sequel/generators/templates*
|
16
|
+
|
17
|
+
Style/StringLiterals:
|
18
|
+
EnforcedStyle: double_quotes
|
19
|
+
Style/StringLiteralsInInterpolation:
|
20
|
+
EnforcedStyle: double_quotes
|
21
|
+
|
22
|
+
Style/FrozenStringLiteralComment:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Style/TrailingCommaInHashLiteral:
|
26
|
+
EnforcedStyleForMultiline: consistent_comma
|
27
|
+
Style/TrailingCommaInArrayLiteral:
|
28
|
+
EnforcedStyleForMultiline: consistent_comma
|
29
|
+
|
30
|
+
Style/SymbolArray:
|
31
|
+
MinSize: 3
|
32
|
+
Style/WordArray:
|
33
|
+
MinSize: 3
|
34
|
+
Style/NumericPredicate:
|
35
|
+
Enabled: false
|
36
|
+
Style/DoubleNegation:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
Layout/MultilineMethodCallIndentation:
|
40
|
+
EnforcedStyle: indented
|
41
|
+
Layout/TrailingBlankLines:
|
42
|
+
Enabled: true
|
43
|
+
Layout/DotPosition:
|
44
|
+
EnforcedStyle: leading
|
data/.travis.yml
CHANGED
@@ -7,25 +7,16 @@ before_install:
|
|
7
7
|
- gem install bundler -v '~> 1.10'
|
8
8
|
|
9
9
|
gemfile:
|
10
|
-
- gemfiles/rails-4.2.gemfile
|
11
10
|
- gemfiles/rails-5.0.gemfile
|
12
11
|
- gemfiles/rails-5.1.gemfile
|
13
12
|
- gemfiles/rails-5.2.gemfile
|
13
|
+
- gemfiles/rails-6.0.gemfile
|
14
14
|
|
15
15
|
rvm:
|
16
|
-
- 2.
|
17
|
-
- 2.
|
18
|
-
- 2.3.3
|
19
|
-
- 2.4.1
|
16
|
+
- 2.5
|
17
|
+
- 2.6
|
20
18
|
- ruby-head
|
21
19
|
|
22
20
|
matrix:
|
23
21
|
allow_failures:
|
24
22
|
- rvm: ruby-head
|
25
|
-
exclude:
|
26
|
-
- rvm: 2.1
|
27
|
-
gemfile: gemfiles/rails-5.0.gemfile
|
28
|
-
- rvm: 2.1
|
29
|
-
gemfile: gemfiles/rails-5.1.gemfile
|
30
|
-
- rvm: 2.1
|
31
|
-
gemfile: gemfiles/rails-5.2.gemfile
|
data/Gemfile
CHANGED
@@ -1,23 +1,27 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
2
4
|
|
3
5
|
gemspec
|
4
6
|
|
5
7
|
platforms :jruby do
|
6
|
-
gem
|
8
|
+
gem "jdbc-sqlite3"
|
7
9
|
end
|
8
10
|
|
9
11
|
platforms :ruby, :mswin, :mswin64, :mingw, :x64_mingw do
|
10
|
-
gem
|
12
|
+
gem "sqlite3"
|
11
13
|
end
|
12
14
|
|
13
|
-
gem
|
14
|
-
gem
|
15
|
+
gem "sequel", ">= 4.0"
|
16
|
+
gem "sequel_polymorphic"
|
15
17
|
|
16
|
-
gem
|
17
|
-
gem
|
18
|
+
gem "bcrypt", "~> 3.1"
|
19
|
+
gem "doorkeeper", ">= 4.0.0", "< 5.3"
|
20
|
+
gem "rails", "~> 5.0"
|
18
21
|
|
19
22
|
group :test do
|
20
|
-
gem
|
23
|
+
gem "rspec-rails", "~> 3.8"
|
21
24
|
end
|
22
25
|
|
23
|
-
gem
|
26
|
+
gem "rubocop", "~> 0.74.0", require: false
|
27
|
+
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
|
data/Rakefile
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rspec/core/rake_task"
|
3
5
|
|
4
6
|
class ExtensionIntegrator
|
5
7
|
class << self
|
@@ -9,7 +11,7 @@ class ExtensionIntegrator
|
|
9
11
|
end
|
10
12
|
|
11
13
|
def clear_specs!
|
12
|
-
base_dir = File.join(Dir.pwd,
|
14
|
+
base_dir = File.join(Dir.pwd, "spec")
|
13
15
|
|
14
16
|
Dir.foreach(base_dir) do |file|
|
15
17
|
next if %w[. .. stubs].include?(file)
|
@@ -25,25 +27,25 @@ class ExtensionIntegrator
|
|
25
27
|
end
|
26
28
|
|
27
29
|
def copy_spec_stubs!
|
28
|
-
FileUtils.cp_r(
|
29
|
-
FileUtils.cp_r(
|
30
|
-
FileUtils.cp_r(
|
31
|
-
FileUtils.cp_r(
|
32
|
-
FileUtils.cp_r(
|
33
|
-
FileUtils.cp_r(
|
34
|
-
FileUtils.rm(
|
35
|
-
FileUtils.rm(
|
36
|
-
FileUtils.rm(
|
37
|
-
FileUtils.rm(
|
30
|
+
FileUtils.cp_r("spec/stubs/spec_helper_integration.rb", "spec/spec_helper_integration.rb")
|
31
|
+
FileUtils.cp_r("spec/stubs/spec_helper_integration.rb", "spec/spec_helper.rb")
|
32
|
+
FileUtils.cp_r("spec/stubs/models/user.rb", "spec/dummy/app/models/user.rb")
|
33
|
+
FileUtils.cp_r("spec/stubs/config/initializers/db.rb", "spec/dummy/config/initializers/db.rb")
|
34
|
+
FileUtils.cp_r("spec/stubs/config/application.rb", "spec/dummy/config/application.rb")
|
35
|
+
FileUtils.cp_r("spec/stubs/support/sequel.rb", "spec/support/orm/sequel.rb")
|
36
|
+
FileUtils.rm("spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb", force: true)
|
37
|
+
FileUtils.rm("spec/dummy/config/initializers/new_framework_defaults.rb", force: true)
|
38
|
+
FileUtils.rm("spec/models/doorkeeper/base_record_spec.rb", force: true)
|
39
|
+
FileUtils.rm("spec/lib/orm/active_record/stale_records_cleaner_spec.rb", force: true)
|
38
40
|
# Remove generators specs because we are using our own
|
39
|
-
FileUtils.rm(Dir.glob(
|
41
|
+
FileUtils.rm(Dir.glob("spec/generators/*.rb"))
|
40
42
|
end
|
41
43
|
end
|
42
44
|
end
|
43
45
|
|
44
|
-
desc
|
46
|
+
desc "Update Git submodules."
|
45
47
|
task :update_submodules do
|
46
|
-
ExtensionIntegrator.init_submodule! if Dir[
|
48
|
+
ExtensionIntegrator.init_submodule! if Dir["doorkeeper/*"].empty?
|
47
49
|
`git submodule foreach git pull origin master`
|
48
50
|
end
|
49
51
|
|
@@ -51,19 +53,19 @@ task :copy_and_run_doorkeeper_specs do
|
|
51
53
|
# Clear specs directory
|
52
54
|
ExtensionIntegrator.clear_specs!
|
53
55
|
# Init Doorkeeper submodule if it doesn't exists
|
54
|
-
ExtensionIntegrator.init_submodule! if Dir[
|
56
|
+
ExtensionIntegrator.init_submodule! if Dir["doorkeeper/*"].empty?
|
55
57
|
# Copy native Doorkeeper specs
|
56
|
-
`cp -r #{Gem.win_platform? ?
|
58
|
+
`cp -r #{Gem.win_platform? ? "" : "-n"} doorkeeper/spec .`
|
57
59
|
# Replace ORM-dependent files (configs, models, etc)
|
58
60
|
ExtensionIntegrator.copy_spec_stubs!
|
59
61
|
# Run specs
|
60
62
|
`bundle exec rspec`
|
61
63
|
end
|
62
64
|
|
63
|
-
desc
|
65
|
+
desc "Default: run specs."
|
64
66
|
task default: :spec
|
65
67
|
|
66
|
-
desc
|
68
|
+
desc "Clone doorkeeper specs, prepare it for Sequel and run"
|
67
69
|
task spec: :copy_and_run_doorkeeper_specs
|
68
70
|
|
69
71
|
RSpec::Core::RakeTask.new(:spec) do |config|
|
data/config/locales/en.yml
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
en:
|
2
|
+
activerecord:
|
3
|
+
errors:
|
4
|
+
models:
|
5
|
+
doorkeeper/application:
|
6
|
+
attributes:
|
7
|
+
redirect_uri:
|
8
|
+
unspecified_scheme: 'must specify a scheme.'
|
2
9
|
sequel:
|
3
10
|
attributes:
|
4
11
|
doorkeeper/application:
|
@@ -15,5 +22,6 @@ en:
|
|
15
22
|
relative_uri: 'must be an absolute URI.'
|
16
23
|
secured_uri: 'must be an HTTPS/SSL URI.'
|
17
24
|
forbidden_uri: 'is forbidden by the server.'
|
25
|
+
unspecified_scheme: 'must specify a scheme.'
|
18
26
|
scopes:
|
19
27
|
not_match_configured: "doesn't match configured on the server."
|
data/doorkeeper-sequel.gemspec
CHANGED
@@ -1,35 +1,38 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
require "doorkeeper-sequel/version"
|
4
6
|
|
5
7
|
Gem::Specification.new do |gem|
|
6
|
-
gem.name
|
7
|
-
gem.version
|
8
|
-
gem.authors
|
9
|
-
gem.email
|
10
|
-
gem.homepage
|
11
|
-
gem.summary
|
12
|
-
gem.description =
|
13
|
-
gem.license
|
8
|
+
gem.name = "doorkeeper-sequel"
|
9
|
+
gem.version = DoorkeeperSequel.gem_version
|
10
|
+
gem.authors = ["Nikita Bulai"]
|
11
|
+
gem.email = ["bulajnikita@gmail.com"]
|
12
|
+
gem.homepage = "http://github.com/nbulaj/doorkeeper-sequel"
|
13
|
+
gem.summary = "Doorkeeper Sequel ORM"
|
14
|
+
gem.description = "Provides Doorkeeper support to Sequel database toolkit."
|
15
|
+
gem.license = "MIT"
|
14
16
|
|
15
|
-
gem.bindir =
|
17
|
+
gem.bindir = "bin"
|
16
18
|
gem.require_paths = %w[lib config]
|
17
19
|
gem.files = `git ls-files`.split($RS)
|
18
20
|
gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
19
|
-
gem.test_files = Dir[
|
21
|
+
gem.test_files = Dir["spec/**/*"]
|
20
22
|
|
21
|
-
gem.required_ruby_version =
|
23
|
+
gem.required_ruby_version = ">= 2.0.0"
|
22
24
|
|
23
|
-
gem.add_runtime_dependency
|
24
|
-
gem.add_runtime_dependency
|
25
|
-
gem.add_runtime_dependency
|
26
|
-
gem.add_runtime_dependency
|
25
|
+
gem.add_runtime_dependency "bcrypt", "~> 3.1"
|
26
|
+
gem.add_runtime_dependency "doorkeeper", ">= 5.0.0", "< 5.3"
|
27
|
+
gem.add_runtime_dependency "sequel", ">= 4.0.0", "< 6"
|
28
|
+
gem.add_runtime_dependency "sequel_polymorphic", "~> 0.2", "< 1.0"
|
29
|
+
gem.add_runtime_dependency "thor", ">= 0.18", "< 6"
|
27
30
|
|
28
|
-
gem.add_development_dependency
|
29
|
-
gem.add_development_dependency
|
30
|
-
gem.add_development_dependency
|
31
|
-
gem.add_development_dependency
|
32
|
-
gem.add_development_dependency
|
33
|
-
gem.add_development_dependency
|
34
|
-
gem.add_development_dependency
|
31
|
+
gem.add_development_dependency "capybara", "~> 2.14", ">= 2.14.0"
|
32
|
+
gem.add_development_dependency "coveralls"
|
33
|
+
gem.add_development_dependency "database_cleaner", "~> 1.5", ">= 1.5.0"
|
34
|
+
gem.add_development_dependency "factory_bot", "~> 4.8"
|
35
|
+
gem.add_development_dependency "generator_spec", "~> 0.9.4"
|
36
|
+
gem.add_development_dependency "grape"
|
37
|
+
gem.add_development_dependency "rspec-rails", "~> 3.5"
|
35
38
|
end
|
data/gemfiles/rails-5.0.gemfile
CHANGED
@@ -1,11 +1,14 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
gem
|
5
|
+
gemspec path: ".."
|
6
|
+
|
7
|
+
gem "bcrypt", "~> 3.1"
|
8
|
+
gem "rails", "~> 5.0", "<= 5.1"
|
9
|
+
gem "sequel", ">= 4.0"
|
10
|
+
gem "sqlite3", "~> 1.3.5"
|
8
11
|
|
9
12
|
group :test do
|
10
|
-
gem
|
13
|
+
gem "rspec-rails", "~> 3.8"
|
11
14
|
end
|
data/gemfiles/rails-5.1.gemfile
CHANGED
@@ -1,11 +1,14 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
gem
|
5
|
+
gemspec path: ".."
|
6
|
+
|
7
|
+
gem "bcrypt", "~> 3.1"
|
8
|
+
gem "rails", "~> 5.1", "<= 5.2"
|
9
|
+
gem "sequel", ">= 4.0"
|
10
|
+
gem "sqlite3", "~> 1.3.5"
|
8
11
|
|
9
12
|
group :test do
|
10
|
-
gem
|
13
|
+
gem "rspec-rails", "~> 3.8"
|
11
14
|
end
|
data/gemfiles/rails-5.2.gemfile
CHANGED
@@ -1,11 +1,14 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
gem
|
5
|
+
gemspec path: ".."
|
6
|
+
|
7
|
+
gem "bcrypt", "~> 3.1"
|
8
|
+
gem "rails", "~> 5.2.0", "<= 6.0"
|
9
|
+
gem "sequel", ">= 4.0"
|
10
|
+
gem "sqlite3", "~> 1.3.5"
|
8
11
|
|
9
12
|
group :test do
|
10
|
-
gem
|
13
|
+
gem "rspec-rails", "~> 3.8"
|
11
14
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gemspec path: ".."
|
6
|
+
|
7
|
+
gem "bcrypt", "~> 3.1"
|
8
|
+
gem "rails", "~> 6.0.0", "<= 6.1"
|
9
|
+
gem "sequel", ">= 4.0"
|
10
|
+
gem "sqlite3", "~> 1.3.5"
|
11
|
+
|
12
|
+
group :test do
|
13
|
+
gem "rspec-core", git: "https://github.com/rspec/rspec-core.git"
|
14
|
+
gem "rspec-expectations", git: "https://github.com/rspec/rspec-expectations.git"
|
15
|
+
gem "rspec-mocks", git: "https://github.com/rspec/rspec-mocks.git"
|
16
|
+
gem "rspec-rails", branch: "4-0-dev", git: "https://github.com/rspec/rspec-rails.git"
|
17
|
+
gem "rspec-support", git: "https://github.com/rspec/rspec-support.git"
|
18
|
+
end
|
data/lib/doorkeeper-sequel.rb
CHANGED
@@ -1,28 +1,31 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
require "doorkeeper-sequel/version"
|
4
|
+
|
5
|
+
require "doorkeeper-sequel/railtie" if defined?(::Rails)
|
6
6
|
|
7
|
-
require
|
8
|
-
require
|
7
|
+
require "doorkeeper"
|
8
|
+
require "doorkeeper/redirect_uri_validator"
|
9
|
+
require "doorkeeper/oauth/nonstandard"
|
10
|
+
require "thor/group"
|
9
11
|
|
10
|
-
require
|
11
|
-
require
|
12
|
-
require
|
13
|
-
require
|
12
|
+
require "doorkeeper-sequel/generators/concerns/migration_actions"
|
13
|
+
require "doorkeeper-sequel/generators/application_owner_generator"
|
14
|
+
require "doorkeeper-sequel/generators/migration_generator"
|
15
|
+
require "doorkeeper-sequel/generators/previous_refresh_token_generator"
|
16
|
+
require "doorkeeper-sequel/generators/confidential_applications_generator"
|
14
17
|
|
15
|
-
require
|
16
|
-
require
|
17
|
-
require
|
18
|
-
require
|
18
|
+
require "doorkeeper-sequel/mixins/concerns/sequel_compat"
|
19
|
+
require "doorkeeper-sequel/mixins/access_token_mixin"
|
20
|
+
require "doorkeeper-sequel/mixins/access_grant_mixin"
|
21
|
+
require "doorkeeper-sequel/mixins/application_mixin"
|
19
22
|
|
20
|
-
require
|
23
|
+
require "doorkeeper/orm/sequel"
|
21
24
|
|
22
25
|
module DoorkeeperSequel
|
23
26
|
def load_locales
|
24
|
-
locales_dir = File.expand_path(
|
25
|
-
locales = Dir[File.join(locales_dir,
|
27
|
+
locales_dir = File.expand_path("../config/locales", __dir__)
|
28
|
+
locales = Dir[File.join(locales_dir, "*.yml")]
|
26
29
|
|
27
30
|
I18n.load_path |= locales
|
28
31
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module DoorkeeperSequel
|
2
4
|
def self.gem_version
|
3
5
|
Gem::Version.new VERSION::STRING
|
@@ -5,9 +7,9 @@ module DoorkeeperSequel
|
|
5
7
|
|
6
8
|
module VERSION
|
7
9
|
MAJOR = 2
|
8
|
-
MINOR =
|
10
|
+
MINOR = 1
|
9
11
|
TINY = 0
|
10
12
|
|
11
|
-
STRING = [MAJOR, MINOR, TINY].compact.join(
|
13
|
+
STRING = [MAJOR, MINOR, TINY].compact.join(".")
|
12
14
|
end
|
13
15
|
end
|
@@ -1,14 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module DoorkeeperSequel
|
2
4
|
class ApplicationOwnerGenerator < ::Thor::Group
|
3
5
|
include ::Thor::Actions
|
4
6
|
include MigrationActions
|
5
7
|
|
6
|
-
source_root File.expand_path(
|
8
|
+
source_root File.expand_path("templates", __dir__)
|
7
9
|
|
8
|
-
desc
|
10
|
+
desc "Provide support for client application ownership."
|
9
11
|
|
10
12
|
def install
|
11
|
-
create_migration
|
13
|
+
create_migration "add_owner_to_application.rb"
|
12
14
|
end
|
13
15
|
end
|
14
16
|
end
|