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.
Files changed (41) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +29 -2
  3. data/.travis.yml +3 -12
  4. data/Gemfile +13 -9
  5. data/Rakefile +22 -20
  6. data/config/locales/en.yml +8 -0
  7. data/doorkeeper-sequel.gemspec +27 -24
  8. data/gemfiles/rails-5.0.gemfile +9 -6
  9. data/gemfiles/rails-5.1.gemfile +9 -6
  10. data/gemfiles/rails-5.2.gemfile +9 -6
  11. data/gemfiles/rails-6.0.gemfile +18 -0
  12. data/lib/doorkeeper-sequel.rb +20 -17
  13. data/lib/doorkeeper-sequel/gem_version.rb +4 -2
  14. data/lib/doorkeeper-sequel/generators/application_owner_generator.rb +5 -3
  15. data/lib/doorkeeper-sequel/generators/concerns/migration_actions.rb +8 -6
  16. data/lib/doorkeeper-sequel/generators/confidential_applications_generator.rb +5 -3
  17. data/lib/doorkeeper-sequel/generators/migration_generator.rb +5 -3
  18. data/lib/doorkeeper-sequel/generators/pkce_generator.rb +5 -3
  19. data/lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb +5 -3
  20. data/lib/doorkeeper-sequel/generators/templates/add_confidential_to_application_migration.rb +2 -0
  21. data/lib/doorkeeper-sequel/generators/templates/add_owner_to_application.rb +3 -1
  22. data/lib/doorkeeper-sequel/generators/templates/add_previous_refresh_token_to_access_tokens.rb +3 -1
  23. data/lib/doorkeeper-sequel/generators/templates/create_doorkeeper_tables.rb +4 -2
  24. data/lib/doorkeeper-sequel/generators/templates/enable_pkce_migration.rb +3 -1
  25. data/lib/doorkeeper-sequel/mixins/access_grant_mixin.rb +30 -16
  26. data/lib/doorkeeper-sequel/mixins/access_token_mixin.rb +73 -24
  27. data/lib/doorkeeper-sequel/mixins/application_mixin.rb +52 -25
  28. data/lib/doorkeeper-sequel/mixins/concerns/ownership.rb +2 -0
  29. data/lib/doorkeeper-sequel/mixins/concerns/sequel_compat.rb +6 -4
  30. data/lib/doorkeeper-sequel/railtie.rb +3 -1
  31. data/lib/doorkeeper-sequel/tasks/doorkeeper-sequel.rake +7 -5
  32. data/lib/doorkeeper-sequel/validators/redirect_uri_validator.rb +29 -6
  33. data/lib/doorkeeper-sequel/version.rb +3 -1
  34. data/lib/doorkeeper/orm/sequel.rb +9 -5
  35. data/lib/doorkeeper/orm/sequel/access_grant.rb +18 -0
  36. data/lib/doorkeeper/orm/sequel/access_token.rb +2 -0
  37. data/lib/doorkeeper/orm/sequel/application.rb +26 -3
  38. data/lib/doorkeeper/redirect_uri_validator.rb +9 -0
  39. data/spec/stubs/spec_helper_integration.rb +8 -8
  40. metadata +177 -245
  41. data/gemfiles/rails-4.2.gemfile +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d016a084c8970dfd895fb289df936babf93c5fa9
4
- data.tar.gz: 79e8e295db71fee33e9112463f41b7bd63cf4711
2
+ SHA256:
3
+ metadata.gz: 3c7a81816c6e8bf24a4e578dccaedf96d8efb30d00e7c6993c31f009dca56c69
4
+ data.tar.gz: e55d1338ed9360dfa8431cee7acfa6d29f0a3cada3fa6840182a4d1918aaafea
5
5
  SHA512:
6
- metadata.gz: e654a464b6f0d2e7ef2d4ab81bbb2b2709a32fa847971dd4deca85052dc4055bcda4a270065a006f438fa9713abc8490d02d4da3086f79d9afca31e4e703a8c7
7
- data.tar.gz: cfc5de44d6bc888d76f5041f7e9f4c4cc11dac6aefbeb4e4f3eb087eea73b7f926c5a561286931451912816b5fa0fa8cb8350b029959e5c3919d4b5419a536f7
6
+ metadata.gz: 9e574bc75c50bd88633d84f14b6f0db2b3449e88b45bae879ef91032b98d8e9ea355cfb6ae3ec9ef85477d4c4a4a77a893965a7f96425f7990e4a1faeb0ae483
7
+ data.tar.gz: bf2e5d88624242f6394b16ec9b9555d09991f34bd7ee80a1573f516116b136df84f7de606d02eacdfb675c16979c050d82f52c2c38dde924085e99e798cee36e
@@ -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
@@ -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.1
17
- - 2.2.4
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
- source 'https://rubygems.org'
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 'jdbc-sqlite3'
8
+ gem "jdbc-sqlite3"
7
9
  end
8
10
 
9
11
  platforms :ruby, :mswin, :mswin64, :mingw, :x64_mingw do
10
- gem 'sqlite3'
12
+ gem "sqlite3"
11
13
  end
12
14
 
13
- gem 'sequel', '>= 4.0'
14
- gem 'sequel_polymorphic'
15
+ gem "sequel", ">= 4.0"
16
+ gem "sequel_polymorphic"
15
17
 
16
- gem 'doorkeeper', '>= 4.0.0'
17
- gem 'rails', '~> 5.0'
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 'rspec-rails', '~> 3.4'
23
+ gem "rspec-rails", "~> 3.8"
21
24
  end
22
25
 
23
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
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
- require 'bundler/setup'
2
- require 'rspec/core/rake_task'
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, 'spec')
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('spec/stubs/spec_helper_integration.rb', 'spec/spec_helper_integration.rb')
29
- FileUtils.cp_r('spec/stubs/spec_helper_integration.rb', 'spec/spec_helper.rb')
30
- FileUtils.cp_r('spec/stubs/models/user.rb', 'spec/dummy/app/models/user.rb')
31
- FileUtils.cp_r('spec/stubs/config/initializers/db.rb', 'spec/dummy/config/initializers/db.rb')
32
- FileUtils.cp_r('spec/stubs/config/application.rb', 'spec/dummy/config/application.rb')
33
- FileUtils.cp_r('spec/stubs/support/sequel.rb', 'spec/support/orm/sequel.rb')
34
- FileUtils.rm('spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb', force: true)
35
- FileUtils.rm('spec/dummy/config/initializers/new_framework_defaults.rb', force: true)
36
- FileUtils.rm('spec/models/doorkeeper/base_record_spec.rb', force: true)
37
- FileUtils.rm('spec/lib/orm/active_record/stale_records_cleaner_spec.rb', force: true)
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('spec/generators/*.rb'))
41
+ FileUtils.rm(Dir.glob("spec/generators/*.rb"))
40
42
  end
41
43
  end
42
44
  end
43
45
 
44
- desc 'Update Git submodules.'
46
+ desc "Update Git submodules."
45
47
  task :update_submodules do
46
- ExtensionIntegrator.init_submodule! if Dir['doorkeeper/*'].empty?
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['doorkeeper/*'].empty?
56
+ ExtensionIntegrator.init_submodule! if Dir["doorkeeper/*"].empty?
55
57
  # Copy native Doorkeeper specs
56
- `cp -r #{Gem.win_platform? ? '' : '-n'} doorkeeper/spec .`
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 'Default: run specs.'
65
+ desc "Default: run specs."
64
66
  task default: :spec
65
67
 
66
- desc 'Clone doorkeeper specs, prepare it for Sequel and run'
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|
@@ -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."
@@ -1,35 +1,38 @@
1
- $LOAD_PATH.push File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
2
 
3
- require 'doorkeeper-sequel/version'
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 = 'doorkeeper-sequel'
7
- gem.version = DoorkeeperSequel.gem_version
8
- gem.authors = ['Nikita Bulai']
9
- gem.email = ['bulajnikita@gmail.com']
10
- gem.homepage = 'http://github.com/nbulaj/doorkeeper-sequel'
11
- gem.summary = 'Doorkeeper Sequel ORM'
12
- gem.description = 'Provides Doorkeeper support to Sequel database toolkit.'
13
- gem.license = 'MIT'
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 = 'bin'
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['spec/**/*']
21
+ gem.test_files = Dir["spec/**/*"]
20
22
 
21
- gem.required_ruby_version = '>= 2.0.0'
23
+ gem.required_ruby_version = ">= 2.0.0"
22
24
 
23
- gem.add_runtime_dependency 'doorkeeper', '>= 5.0.0'
24
- gem.add_runtime_dependency 'sequel', '>= 4.0.0', '< 6'
25
- gem.add_runtime_dependency 'sequel_polymorphic', '~> 0.2', '< 1.0'
26
- gem.add_runtime_dependency 'thor', '>= 0.18', '< 6'
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 'coveralls'
29
- gem.add_development_dependency 'grape'
30
- gem.add_development_dependency 'capybara', '~> 2.14', '>= 2.14.0'
31
- gem.add_development_dependency 'database_cleaner', '~> 1.5', '>= 1.5.0'
32
- gem.add_development_dependency 'factory_bot', '~> 4.8'
33
- gem.add_development_dependency 'generator_spec', '~> 0.9.4'
34
- gem.add_development_dependency 'rspec-rails', '~> 3.5'
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
@@ -1,11 +1,14 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
2
 
3
- gemspec path: '..'
3
+ source "https://rubygems.org"
4
4
 
5
- gem 'rails', '~> 5.0', '<= 5.1'
6
- gem 'sqlite3', '~> 1.3.5'
7
- gem 'sequel', '>= 4.0'
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 'rspec-rails', '~> 3.6'
13
+ gem "rspec-rails", "~> 3.8"
11
14
  end
@@ -1,11 +1,14 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
2
 
3
- gemspec path: '..'
3
+ source "https://rubygems.org"
4
4
 
5
- gem 'rails', '~> 5.1', '<= 5.2'
6
- gem 'sqlite3', '~> 1.3.5'
7
- gem 'sequel', '>= 4.0'
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 'rspec-rails', '~> 3.6'
13
+ gem "rspec-rails", "~> 3.8"
11
14
  end
@@ -1,11 +1,14 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
2
 
3
- gemspec path: '..'
3
+ source "https://rubygems.org"
4
4
 
5
- gem 'rails', '5.2.0.rc1'
6
- gem 'sqlite3', '~> 1.3.5'
7
- gem 'sequel', '>= 4.0'
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 'rspec-rails', '~> 3.6'
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
@@ -1,28 +1,31 @@
1
- require 'doorkeeper-sequel/version'
1
+ # frozen_string_literal: true
2
2
 
3
- if defined?(::Rails)
4
- require 'doorkeeper-sequel/railtie'
5
- end
3
+ require "doorkeeper-sequel/version"
4
+
5
+ require "doorkeeper-sequel/railtie" if defined?(::Rails)
6
6
 
7
- require 'doorkeeper'
8
- require 'thor/group'
7
+ require "doorkeeper"
8
+ require "doorkeeper/redirect_uri_validator"
9
+ require "doorkeeper/oauth/nonstandard"
10
+ require "thor/group"
9
11
 
10
- require 'doorkeeper-sequel/generators/concerns/migration_actions'
11
- require 'doorkeeper-sequel/generators/application_owner_generator'
12
- require 'doorkeeper-sequel/generators/migration_generator'
13
- require 'doorkeeper-sequel/generators/previous_refresh_token_generator'
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 'doorkeeper-sequel/mixins/concerns/sequel_compat'
16
- require 'doorkeeper-sequel/mixins/access_token_mixin'
17
- require 'doorkeeper-sequel/mixins/access_grant_mixin'
18
- require 'doorkeeper-sequel/mixins/application_mixin'
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 'doorkeeper/orm/sequel'
23
+ require "doorkeeper/orm/sequel"
21
24
 
22
25
  module DoorkeeperSequel
23
26
  def load_locales
24
- locales_dir = File.expand_path('../../config/locales', __FILE__)
25
- locales = Dir[File.join(locales_dir, '*.yml')]
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 = 0
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('../templates', __FILE__)
8
+ source_root File.expand_path("templates", __dir__)
7
9
 
8
- desc 'Provide support for client application ownership.'
10
+ desc "Provide support for client application ownership."
9
11
 
10
12
  def install
11
- create_migration 'add_owner_to_application.rb'
13
+ create_migration "add_owner_to_application.rb"
12
14
  end
13
15
  end
14
16
  end