doorkeeper 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of doorkeeper might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca4c29978b53dcffbe1a130f0c14609fb83d838b
4
- data.tar.gz: d3e2964493e5a09e680a2f2a8049ab4fad2db52a
3
+ metadata.gz: 3a0fa2d314b8aa479233379028c00d8107830f46
4
+ data.tar.gz: c0bb3f5658cbbc4f7b640e08ae418afab36d7225
5
5
  SHA512:
6
- metadata.gz: 73f369296eae02dffc8e0611bf6dcfbbdecc7c2ef4b3cd395b3a154ffb579c9ccf442e726cae2c63fc963a84e52c4900242225f90b3d4f7367977747b4047205
7
- data.tar.gz: 2af877910b73b8baf2f9f27306fd1a40b5e6cb1a93849a09403607ac9b3420be7b8bd46d7be1c128eec5ad9bdaf003ee6484c16df928bc7df3f80881813cdf35
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}](#{pr_url}): #{pr_title}."
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].
@@ -9,7 +9,7 @@ module Doorkeeper
9
9
  # Semantic versioning
10
10
  MAJOR = 5
11
11
  MINOR = 0
12
- TINY = 1
12
+ TINY = 2
13
13
  PRE = nil
14
14
 
15
15
  # Full version number
@@ -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 = :raise
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.1
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-10 00:00:00.000000000 Z
14
+ date: 2018-10-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties