openproject-token 7.3.0 → 7.4.0
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/lib/open_project/token/extractor.rb +1 -1
- data/lib/open_project/token/plans.rb +1 -0
- data/lib/open_project/token/version.rb +1 -1
- data/lib/open_project/token.rb +19 -18
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2064a1b8f0dab622d882336e7f5df62c822aa13072d0cd16314929e030b46e48
|
4
|
+
data.tar.gz: 977732dcf6bb1ac7a6d3924e2c26dc3253ffd38fa411006db11c4818e69502f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 042a8d41d1c2419a9c3b1618553d7601ebba420147db1ac51dafa166c2f13fe61440b292c7623b411824eb5ccfa4c32eec0a9b73d17c441d23a480939120663f
|
7
|
+
data.tar.gz: 65ac3e3d13862ad14ce6ecefe4b1e2551c90a8c4931cbe0961d88c2074ba4154beea7b199bec27337b80d1e26796ea9b74c608e9c9879e49f431ad6e578e20f4
|
data/lib/open_project/token.rb
CHANGED
@@ -205,30 +205,31 @@ module OpenProject
|
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
208
|
-
def attributes
|
209
|
-
hash = {
|
208
|
+
def attributes # rubocop:disable Metrics/AbcSize
|
209
|
+
hash = {
|
210
|
+
"version" => version,
|
211
|
+
"subscriber" => subscriber,
|
212
|
+
"mail" => mail,
|
213
|
+
"company" => company,
|
214
|
+
"domain" => domain,
|
215
|
+
"validate_domain" => validate_domain,
|
216
|
+
"plan" => plan,
|
217
|
+
"issued_at" => issued_at,
|
218
|
+
"starts_at" => starts_at,
|
219
|
+
"trial" => trial,
|
220
|
+
"features" => features
|
221
|
+
}
|
210
222
|
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
hash["domain"] = domain
|
216
|
-
hash["validate_domain"] = validate_domain
|
217
|
-
hash["plan"] = plan
|
218
|
-
|
219
|
-
hash["issued_at"] = issued_at
|
220
|
-
hash["starts_at"] = starts_at
|
221
|
-
hash["expires_at"] = expires_at if will_expire?
|
222
|
-
hash["reprieve_days"] = reprieve_days if will_expire?
|
223
|
-
|
224
|
-
hash["trial"] = trial
|
223
|
+
if will_expire?
|
224
|
+
hash["expires_at"] = expires_at
|
225
|
+
hash["reprieve_days"] = reprieve_days
|
226
|
+
end
|
225
227
|
|
226
228
|
hash["notify_admins_at"] = notify_admins_at if will_notify_admins?
|
227
229
|
hash["notify_users_at"] = notify_users_at if will_notify_users?
|
228
230
|
hash["block_changes_at"] = block_changes_at if will_block_changes?
|
229
231
|
|
230
232
|
hash["restrictions"] = restrictions if restricted?
|
231
|
-
hash["features"] = features
|
232
233
|
|
233
234
|
hash
|
234
235
|
end
|
@@ -251,7 +252,7 @@ module OpenProject
|
|
251
252
|
|
252
253
|
private
|
253
254
|
|
254
|
-
def load_attributes(attributes)
|
255
|
+
def load_attributes(attributes) # rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity
|
255
256
|
attributes = attributes.transform_keys(&:to_s)
|
256
257
|
|
257
258
|
@version = read_version attributes
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openproject-token
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenProject GmbH
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-09-18 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activemodel
|