doorkeeper 5.0.1 → 5.0.2
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/Dangerfile +9 -2
- data/NEWS.md +5 -0
- data/lib/doorkeeper/version.rb +1 -1
- data/lib/generators/doorkeeper/templates/initializer.rb +1 -1
- data/lib/generators/doorkeeper/templates/migration.rb.erb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a0fa2d314b8aa479233379028c00d8107830f46
|
|
4
|
+
data.tar.gz: c0bb3f5658cbbc4f7b640e08ae418afab36d7225
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45411b41e6ca7e5b3016b6831efa7cb6df93dcca172ac1902a8561ca004f6701ebaf4364d5e12d439bd0867533aa4b98133224482cd91ce015b835b26753dc64
|
|
7
|
+
data.tar.gz: 89aaf99254db0422ce86ed21f6e604ce8ecac6eb6c58070170b88be0fa02c338b71e7683d95f557319d75936e53f464e47118fbc85c35ac8a97cfd1588202622
|
data/Dangerfile
CHANGED
|
@@ -7,12 +7,11 @@ end
|
|
|
7
7
|
|
|
8
8
|
def changelog_entry_example
|
|
9
9
|
pr_number = github.pr_json['number']
|
|
10
|
-
pr_url = github.pr_json['html_url']
|
|
11
10
|
pr_title = github.pr_title
|
|
12
11
|
.sub(/[?.!,;]?$/, '')
|
|
13
12
|
.capitalize
|
|
14
13
|
|
|
15
|
-
"- [##{pr_number}]
|
|
14
|
+
"- [##{pr_number}]: #{pr_title}."
|
|
16
15
|
end
|
|
17
16
|
|
|
18
17
|
# --------------------------------------------------------------------------------------------------------------------
|
|
@@ -55,3 +54,11 @@ Here's an example of a #{CHANGELOG_FILE} entry:
|
|
|
55
54
|
|
|
56
55
|
fail("Please include a changelog entry. \nYou can find it at [#{CHANGELOG_FILE}](#{GITHUB_REPO}/blob/master/#{CHANGELOG_FILE}).")
|
|
57
56
|
end
|
|
57
|
+
|
|
58
|
+
if git.commits.any? { |commit| commit.message =~ /^Merge branch '#{github.branch_for_base}'/ }
|
|
59
|
+
warn('Please rebase to get rid of the merge commits in this PR')
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if git.commits.length > 1
|
|
63
|
+
warn('Please squash all your commits to a single one')
|
|
64
|
+
end
|
data/NEWS.md
CHANGED
|
@@ -9,6 +9,11 @@ User-visible changes worth mentioning.
|
|
|
9
9
|
|
|
10
10
|
- [#] Add your description here.
|
|
11
11
|
|
|
12
|
+
## 5.0.2
|
|
13
|
+
|
|
14
|
+
- [#1158] Fix initializer template: change `handle_auth_errors` option
|
|
15
|
+
- [#1157] Remove redundant index from migration template.
|
|
16
|
+
|
|
12
17
|
## 5.0.1
|
|
13
18
|
|
|
14
19
|
- [#1140] Allow rendering custom errors from exceptions (issue #844). Originally opened as [#944].
|
data/lib/doorkeeper/version.rb
CHANGED
|
@@ -163,7 +163,7 @@ Doorkeeper.configure do
|
|
|
163
163
|
# Doorkeeper::Errors::TokenForbidden, Doorkeeper::Errors::TokenExpired,
|
|
164
164
|
# Doorkeeper::Errors::TokenRevoked, Doorkeeper::Errors::TokenUnknown
|
|
165
165
|
#
|
|
166
|
-
# handle_auth_errors
|
|
166
|
+
# handle_auth_errors :raise
|
|
167
167
|
|
|
168
168
|
# Specify what grant flows are enabled in array of Strings. The valid
|
|
169
169
|
# strings and the flows they enable are:
|
|
@@ -31,7 +31,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration<%= migration_version %>
|
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
create_table :oauth_access_tokens do |t|
|
|
34
|
-
t.references :resource_owner
|
|
34
|
+
t.references :resource_owner, index: true
|
|
35
35
|
t.references :application
|
|
36
36
|
|
|
37
37
|
# If you use a custom token generator you may need to change this column
|
|
@@ -58,7 +58,6 @@ class CreateDoorkeeperTables < ActiveRecord::Migration<%= migration_version %>
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
add_index :oauth_access_tokens, :token, unique: true
|
|
61
|
-
add_index :oauth_access_tokens, :resource_owner_id
|
|
62
61
|
add_index :oauth_access_tokens, :refresh_token, unique: true
|
|
63
62
|
add_foreign_key(
|
|
64
63
|
:oauth_access_tokens,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: doorkeeper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.0.
|
|
4
|
+
version: 5.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Felipe Elias Philipp
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2018-10-
|
|
14
|
+
date: 2018-10-25 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: railties
|