openproject-token 2.1.2 → 2.1.3
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.rb +1 -1
- data/lib/open_project/token/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d622e466da4e5bf9dab90d1ee1fcfac8757ce2a24fdc19a9c4b4be954081eaa1
|
|
4
|
+
data.tar.gz: 7ddbec23cf11fb83e1177abf33a942418e009f45567c0015c56fb20b9cea1225
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87d2219c37f2574e9c7651241e2c49af4f4928b7b84278bc1f92f97c8651142e414a68bdc3e2ce79e57b78df58b82d0c1b6fe6c2719b8889ae1374a5eadd29d3
|
|
7
|
+
data.tar.gz: 4505d7dca7305c46cd76a7afa3435615f78413d89f60ed28f566c65acb0376fec0bc2adc95c43af09d4f3a73f42656fc6bd6ebbdbd3d08ae728ca31d3932c0d2
|
data/lib/open_project/token.rb
CHANGED
|
@@ -196,7 +196,7 @@ module OpenProject
|
|
|
196
196
|
#
|
|
197
197
|
# @param attr [Hash] Parsed token attributes.
|
|
198
198
|
def read_version(attr)
|
|
199
|
-
value = attr["version"]
|
|
199
|
+
value = attr.include?("version") ? attr["version"] : current_gem_version.to_s
|
|
200
200
|
version = nil
|
|
201
201
|
|
|
202
202
|
if value.present? && value.to_s != "-1"
|