doorkeeper 5.2.5 → 5.2.6

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: acf9b03777c432f388b0df1fb4a8b499c07e9442c30f3a91c33188e1de83a7b3
4
- data.tar.gz: 0c4cd8972c0b22df9c9c55e8641757d5bae55be522d125879b4c5e6c07b1a869
3
+ metadata.gz: 9f054b4619e2489e52e1e61a959878fa612ae5c42f7217d48f8b59173fb0c8da
4
+ data.tar.gz: 160f404b0c1e5eeffe97340c748e2f1f65d4bd6092367320ad573ad042f05ad1
5
5
  SHA512:
6
- metadata.gz: f49977df45f15f00eaab6628c9cfb7b8309f9052ec26d11350cb0e6db380fc6b6c1fc11417f5e8bc5d9a9996cfaf3c8390628d3e8dcd18f2a4f0c65749c5291b
7
- data.tar.gz: df1900e4654c6050763f216aa78e32444f38ee96f0366c7672affbef57d117b68ee04a6c67b2e01539818fc176b7601dee039ee89eb10490bba27ffabec1944d
6
+ metadata.gz: e8929470e2fd326bed639d35723f458799e9e868e8bdd27b35e4d667d9271edd38e0e3d1d14b0b7e0c7f36a474acfb9d5ee72cf84aa6a77a7f768fb0a898709c
7
+ data.tar.gz: 6fed1b0c2e7f6ffc141c22bd27974423bd80d3c81c90bbeff83964570b9e9158616cc56fefca1996c8da2018c098246691fc8a5b7f8ef6e6fcc2bd9b03488c38
@@ -5,6 +5,10 @@ upgrade guides.
5
5
 
6
6
  User-visible changes worth mentioning.
7
7
 
8
+ ## 5.2.6
9
+
10
+ - [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
11
+
8
12
  ## 5.2.5
9
13
 
10
14
  - [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
@@ -93,6 +93,17 @@ module Doorkeeper
93
93
  end
94
94
  end
95
95
 
96
+ # We need to hook into this method to allow serializing plan-text secrets
97
+ # when secrets hashing enabled.
98
+ #
99
+ # @param key [String] attribute name
100
+ #
101
+ def read_attribute_for_serialization(key)
102
+ return super unless key.to_s == "secret"
103
+
104
+ plaintext_secret || secret
105
+ end
106
+
96
107
  private
97
108
 
98
109
  def generate_uid
@@ -138,17 +149,6 @@ module Doorkeeper
138
149
  only.uniq
139
150
  end
140
151
 
141
- # We need to hook into this method to allow serializing plan-text secrets
142
- # when secrets hashing enabled.
143
- #
144
- # @param key [String] attribute name
145
- #
146
- def read_attribute_for_serialization(key)
147
- return super unless key.to_s == "secret"
148
-
149
- plaintext_secret || secret
150
- end
151
-
152
152
  # Collection of attributes that could be serialized for public.
153
153
  # Override this method if you need additional attributes to be serialized.
154
154
  #
@@ -9,7 +9,7 @@ module Doorkeeper
9
9
  # Semantic versioning
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
- TINY = 5
12
+ TINY = 6
13
13
  PRE = nil
14
14
 
15
15
  # Full version number
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.2.5
4
+ version: 5.2.6
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: 2020-05-02 00:00:00.000000000 Z
14
+ date: 2020-05-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties