doorkeeper-sequel 1.5.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +5 -5
  2. data/.editorconfig +6 -0
  3. data/.gitignore +1 -0
  4. data/.gitmodules +0 -1
  5. data/.rubocop.yml +29 -2
  6. data/.travis.yml +3 -12
  7. data/CHANGELOG.md +13 -3
  8. data/Gemfile +13 -9
  9. data/README.md +18 -3
  10. data/Rakefile +22 -18
  11. data/config/locales/en.yml +11 -0
  12. data/doorkeeper-sequel.gemspec +27 -23
  13. data/gemfiles/rails-5.0.gemfile +9 -6
  14. data/gemfiles/rails-5.1.gemfile +9 -6
  15. data/gemfiles/rails-5.2.gemfile +9 -6
  16. data/gemfiles/rails-6.0.gemfile +14 -0
  17. data/lib/doorkeeper-sequel.rb +21 -17
  18. data/lib/doorkeeper-sequel/gem_version.rb +5 -3
  19. data/lib/doorkeeper-sequel/generators/application_owner_generator.rb +5 -3
  20. data/lib/doorkeeper-sequel/generators/concerns/migration_actions.rb +8 -6
  21. data/lib/doorkeeper-sequel/generators/confidential_applications_generator.rb +5 -3
  22. data/lib/doorkeeper-sequel/generators/migration_generator.rb +5 -3
  23. data/lib/doorkeeper-sequel/generators/pkce_generator.rb +16 -0
  24. data/lib/doorkeeper-sequel/generators/polymorphic_resource_owner_generator.rb +16 -0
  25. data/lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb +5 -3
  26. data/lib/doorkeeper-sequel/generators/templates/add_confidential_to_application_migration.rb +2 -0
  27. data/lib/doorkeeper-sequel/generators/templates/add_owner_to_application.rb +3 -1
  28. data/lib/doorkeeper-sequel/generators/templates/add_previous_refresh_token_to_access_tokens.rb +3 -1
  29. data/lib/doorkeeper-sequel/generators/templates/create_doorkeeper_tables.rb +7 -3
  30. data/lib/doorkeeper-sequel/generators/templates/enable_pkce_migration.rb +10 -0
  31. data/lib/doorkeeper-sequel/generators/templates/enable_polymorphic_resource_owner_migration.rb +15 -0
  32. data/lib/doorkeeper-sequel/mixins/access_grant_mixin.rb +45 -7
  33. data/lib/doorkeeper-sequel/mixins/access_token_mixin.rb +154 -42
  34. data/lib/doorkeeper-sequel/mixins/application_mixin.rb +116 -22
  35. data/lib/doorkeeper-sequel/mixins/concerns/ownership.rb +2 -0
  36. data/lib/doorkeeper-sequel/mixins/concerns/sequel_compat.rb +33 -3
  37. data/lib/doorkeeper-sequel/railtie.rb +3 -1
  38. data/lib/doorkeeper-sequel/tasks/doorkeeper-sequel.rake +20 -3
  39. data/lib/doorkeeper-sequel/validators/redirect_uri_validator.rb +35 -6
  40. data/lib/doorkeeper-sequel/version.rb +3 -1
  41. data/lib/doorkeeper/orm/sequel.rb +11 -4
  42. data/lib/doorkeeper/orm/sequel/access_grant.rb +18 -0
  43. data/lib/doorkeeper/orm/sequel/access_token.rb +6 -0
  44. data/lib/doorkeeper/orm/sequel/application.rb +34 -3
  45. data/lib/doorkeeper/orm/sequel/stale_records_cleaner.rb +26 -0
  46. data/lib/doorkeeper/redirect_uri_validator.rb +9 -0
  47. data/spec/stubs/config/initializers/db.rb +6 -1
  48. data/spec/stubs/spec_helper_integration.rb +9 -11
  49. metadata +225 -235
  50. data/gemfiles/rails-4.2.gemfile +0 -13
@@ -1,13 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: '../'
4
-
5
- gem 'rails', '~> 4.2', '<= 5.0'
6
- # Older Grape requires Ruby >= 2.2.2
7
- gem 'grape', '~> 0.16', '< 0.19.2'
8
- gem 'sqlite3', '~> 1.3.5'
9
- gem 'sequel', '>= 4.0'
10
-
11
- group :test do
12
- gem 'rspec-rails', '~> 3.6'
13
- end