doorkeeper 5.1.0 → 5.2.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +812 -0
- data/CONTRIBUTING.md +4 -9
- data/Dangerfile +1 -1
- data/Gemfile +2 -1
- data/NEWS.md +1 -814
- data/README.md +2 -2
- data/RELEASING.md +6 -5
- data/app/controllers/doorkeeper/applications_controller.rb +2 -0
- data/app/controllers/doorkeeper/tokens_controller.rb +18 -8
- data/app/validators/redirect_uri_validator.rb +19 -9
- data/app/views/doorkeeper/applications/_form.html.erb +0 -6
- data/app/views/doorkeeper/applications/show.html.erb +1 -1
- data/config/locales/en.yml +3 -1
- data/doorkeeper.gemspec +1 -1
- data/gemfiles/rails_5_0.gemfile +1 -0
- data/gemfiles/rails_5_1.gemfile +1 -0
- data/gemfiles/rails_5_2.gemfile +1 -0
- data/gemfiles/rails_6_0.gemfile +2 -1
- data/gemfiles/rails_master.gemfile +1 -0
- data/lib/doorkeeper/config/option.rb +13 -7
- data/lib/doorkeeper/config.rb +30 -3
- data/lib/doorkeeper/grape/helpers.rb +5 -1
- data/lib/doorkeeper/helpers/controller.rb +16 -3
- data/lib/doorkeeper/oauth/authorization/code.rb +10 -8
- data/lib/doorkeeper/oauth/authorization/token.rb +1 -1
- data/lib/doorkeeper/oauth/code_response.rb +2 -2
- data/lib/doorkeeper/oauth/error_response.rb +1 -1
- data/lib/doorkeeper/oauth/helpers/uri_checker.rb +18 -4
- data/lib/doorkeeper/oauth/nonstandard.rb +39 -0
- data/lib/doorkeeper/oauth/refresh_token_request.rb +8 -8
- data/lib/doorkeeper/oauth/token_introspection.rb +13 -12
- data/lib/doorkeeper/orm/active_record/access_grant.rb +1 -1
- data/lib/doorkeeper/orm/active_record/access_token.rb +2 -2
- data/lib/doorkeeper/orm/active_record/application.rb +7 -1
- data/lib/doorkeeper/orm/active_record.rb +17 -1
- data/lib/doorkeeper/stale_records_cleaner.rb +6 -2
- data/lib/doorkeeper/version.rb +2 -2
- data/lib/doorkeeper.rb +3 -0
- data/lib/generators/doorkeeper/previous_refresh_token_generator.rb +6 -6
- data/lib/generators/doorkeeper/templates/initializer.rb +41 -9
- data/lib/generators/doorkeeper/templates/migration.rb.erb +3 -0
- data/spec/controllers/applications_controller_spec.rb +93 -0
- data/spec/controllers/tokens_controller_spec.rb +71 -3
- data/spec/dummy/config/application.rb +3 -1
- data/spec/dummy/config/initializers/doorkeeper.rb +27 -9
- data/spec/lib/config_spec.rb +11 -0
- data/spec/lib/oauth/helpers/uri_checker_spec.rb +17 -2
- data/spec/lib/oauth/pre_authorization_spec.rb +0 -15
- data/spec/requests/flows/authorization_code_spec.rb +16 -4
- data/spec/requests/flows/revoke_token_spec.rb +19 -11
- data/spec/support/doorkeeper_rspec.rb +1 -1
- data/spec/validators/redirect_uri_validator_spec.rb +39 -14
- metadata +6 -13
- data/.coveralls.yml +0 -1
- data/.github/ISSUE_TEMPLATE.md +0 -25
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -17
- data/.gitignore +0 -20
- data/.gitlab-ci.yml +0 -16
- data/.hound.yml +0 -3
- data/.rspec +0 -1
- data/.rubocop.yml +0 -50
- data/.travis.yml +0 -35
data/CONTRIBUTING.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Contributing
|
|
2
2
|
|
|
3
3
|
We love pull requests from everyone. By participating in this project, you agree
|
|
4
|
-
to abide by the
|
|
5
|
-
|
|
6
|
-
[code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
|
|
4
|
+
to abide by the [code of conduct](CODE_OF_CONDUCT.md).
|
|
7
5
|
|
|
8
6
|
Fork, then clone the repo:
|
|
9
7
|
|
|
@@ -19,14 +17,12 @@ Make sure the tests pass:
|
|
|
19
17
|
|
|
20
18
|
Make your change.
|
|
21
19
|
Write tests.
|
|
22
|
-
Follow our [style guide]
|
|
20
|
+
Follow our [style guide](.rubocop.yml).
|
|
23
21
|
Make the tests pass:
|
|
24
22
|
|
|
25
|
-
[style]: https://github.com/thoughtbot/guides/tree/master/style
|
|
26
|
-
|
|
27
23
|
rake
|
|
28
24
|
|
|
29
|
-
Add notes on your change to the `
|
|
25
|
+
Add notes on your change to the `CHANGELOG.md` file.
|
|
30
26
|
|
|
31
27
|
Write a [good commit message][commit].
|
|
32
28
|
Push to your fork.
|
|
@@ -35,8 +31,7 @@ Push to your fork.
|
|
|
35
31
|
[commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
|
36
32
|
[pr]: https://github.com/doorkeeper-gem/doorkeeper/compare/
|
|
37
33
|
|
|
38
|
-
If [Hound] catches style violations,
|
|
39
|
-
fix them.
|
|
34
|
+
If [Hound] catches style violations, fix them.
|
|
40
35
|
|
|
41
36
|
[hound]: https://houndci.com
|
|
42
37
|
|
data/Dangerfile
CHANGED
data/Gemfile
CHANGED
|
@@ -5,7 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
|
5
5
|
|
|
6
6
|
gemspec
|
|
7
7
|
|
|
8
|
-
gem "rails", "~> 6.0.0.
|
|
8
|
+
gem "rails", "~> 6.0.0.rc1"
|
|
9
9
|
|
|
10
10
|
# TODO: Remove when rspec-rails 4.0 released
|
|
11
11
|
gem "rspec-core", github: "rspec/rspec-core"
|
|
@@ -15,6 +15,7 @@ gem "rspec-rails", github: "rspec/rspec-rails", branch: "4-0-dev"
|
|
|
15
15
|
gem "rspec-support", github: "rspec/rspec-support"
|
|
16
16
|
|
|
17
17
|
gem "rubocop", "~> 0.66"
|
|
18
|
+
gem "rubocop-performance"
|
|
18
19
|
|
|
19
20
|
gem "bcrypt", "~> 3.1", require: false
|
|
20
21
|
|