doorkeeper 5.6.3 → 5.6.4

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
  SHA256:
3
- metadata.gz: 62a0f5c7fa924d40522d1d290ab0eb3b2f78cdc72c6bba460c0b932803c7e123
4
- data.tar.gz: f809019d1bcdb007a71670b74160c7286e2c18bac43c6c98728d99c36370a6f9
3
+ metadata.gz: e1f7bb9a1bb5e08c4b7c3ccb920bef61fbbd1dc0b11f76bba3a3d76a6fc8eeed
4
+ data.tar.gz: 456ffe74dac831f3b797565041e46ecf241fb4cfc597d0bc39aa7a3893abeecb
5
5
  SHA512:
6
- metadata.gz: adf846ec97330aab844f467fd65230f3a6cafeed4457c860f72f3576ce277aa9035994e9cc153b471fb92830f76bfe36fd8661124040c782b4ed5534ad78a09c
7
- data.tar.gz: 8a282af87fd1d0cf084a174a95d4fbff50cf8ab03622084cded3c4fbca8725674a2d2bf3045435aee881a67aacb2c372fb79020436f9d76439db46ab74a14a08
6
+ metadata.gz: 6e23087c44495ce91c7e23f1bf8cd771dc82bdb92ffa1cac8f8bef2e42919bf8eea1ac86b1ed76580537c4b5a6b2ba571452470677259fb61e4be0e151091ad7
7
+ data.tar.gz: fcafc844c46bab18f03d5dd7e8bd345111fb57530275adbf8d9954f8e8c1436b29ded79e15f6321e9f86c845836b713c65aca23398114cfdb5c77e9b87a01647
data/CHANGELOG.md CHANGED
@@ -9,6 +9,10 @@ User-visible changes worth mentioning.
9
9
 
10
10
  - [#ID] Add your PR description here.
11
11
 
12
+ # 5.6.4
13
+
14
+ - [#1633] Apply ORM configuration in #to_prepare block to avoid autoloading errors.
15
+
12
16
  # 5.6.3
13
17
 
14
18
  - [#1622] Drop support for Rubies 2.5 and 2.6
@@ -21,7 +21,7 @@ module Doorkeeper
21
21
  end
22
22
 
23
23
  config.to_prepare do
24
- Doorkeeper.setup
24
+ Doorkeeper.run_orm_hooks
25
25
  end
26
26
 
27
27
  if defined?(Sprockets) && Sprockets::VERSION.chr.to_i >= 4
@@ -5,7 +5,7 @@ module Doorkeeper
5
5
  # Semantic versioning
6
6
  MAJOR = 5
7
7
  MINOR = 6
8
- TINY = 3
8
+ TINY = 4
9
9
  PRE = nil
10
10
 
11
11
  # Full version number
data/lib/doorkeeper.rb CHANGED
@@ -137,8 +137,6 @@ module Doorkeeper
137
137
 
138
138
  def setup
139
139
  setup_orm_adapter
140
- run_orm_hooks
141
- config.clear_cache!
142
140
 
143
141
  # Deprecated, will be removed soon
144
142
  unless configuration.orm == :active_record
@@ -160,6 +158,8 @@ module Doorkeeper
160
158
  end
161
159
 
162
160
  def run_orm_hooks
161
+ config.clear_cache!
162
+
163
163
  if @orm_adapter.respond_to?(:run_hooks)
164
164
  @orm_adapter.run_hooks
165
165
  else
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.6.3
4
+ version: 5.6.4
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: 2023-01-30 00:00:00.000000000 Z
14
+ date: 2023-01-31 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties