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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e0816b909165646bbe42b7254dab89bb0169999474ad6fb84b005d5163ae561
4
- data.tar.gz: 79c926e4432ad8d6a8f21a1d5b8fc1e7933b8a7b72d1a60a6c0cb047e093c2ae
3
+ metadata.gz: 2064a1b8f0dab622d882336e7f5df62c822aa13072d0cd16314929e030b46e48
4
+ data.tar.gz: 977732dcf6bb1ac7a6d3924e2c26dc3253ffd38fa411006db11c4818e69502f0
5
5
  SHA512:
6
- metadata.gz: 1dbc63100150b1d9124ba96aa7878baacf06a8394d84be7641e55103b4f79eafca193931636077bfdb76577996eacda4ff723bb9505f7b085d385863fe390b07
7
- data.tar.gz: 84d1d38f62f5e26a3a192eb963dc9bf2ad066559f0933da86756b08f51ae2bfe0f088bd9056dec07858d56935bcece8a6540e8fe2ef6b0f1717faf21e679b8f0
6
+ metadata.gz: 042a8d41d1c2419a9c3b1618553d7601ebba420147db1ac51dafa166c2f13fe61440b292c7623b411824eb5ccfa4c32eec0a9b73d17c441d23a480939120663f
7
+ data.tar.gz: 65ac3e3d13862ad14ce6ecefe4b1e2551c90a8c4931cbe0961d88c2074ba4154beea7b199bec27337b80d1e26796ea9b74c608e9c9879e49f431ad6e578e20f4
@@ -13,7 +13,7 @@ module OpenProject
13
13
  @key = key
14
14
  end
15
15
 
16
- def read(data)
16
+ def read(data) # rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity
17
17
  unless key.public?
18
18
  raise KeyError, "Provided key is not a public key."
19
19
  end
@@ -50,6 +50,7 @@ module OpenProject
50
50
  ].freeze
51
51
 
52
52
  PREMIUM_PLAN_FEATURES = %i[
53
+ calculated_values
53
54
  customize_life_cycle
54
55
  ldap_groups
55
56
  project_list_sharing
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OpenProject
4
4
  class Token
5
- VERSION = "7.3.0"
5
+ VERSION = "7.4.0"
6
6
  end
7
7
  end
@@ -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
- hash["version"] = version
212
- hash["subscriber"] = subscriber
213
- hash["mail"] = mail
214
- hash["company"] = company
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.3.0
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-07-02 00:00:00.000000000 Z
10
+ date: 2025-09-18 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activemodel