openproject-token 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_project/token.rb +2 -2
- 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: 1468e154b8c769ea67d98d887da8b9e00c6e830e04b3375a0622c0137afdaeeb
|
4
|
+
data.tar.gz: 8d6197c22e207b8882b7eaab394b5a24fc16e403d9b46c43ee360f395b7b595c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1550e4748618f99e45f3653d8c34360e4f7bb0803a5850f5d89c9b705cd87a9faf217e36ced06f5c5648134c417bc72404cfb6f4a2a910939b0a015a92bf6264
|
7
|
+
data.tar.gz: 15662a9656073de5d1c0a8b8af5e72383aca6436233349c202b29c0262ea208a4afe2a77e6e8b109d052a84c40c636b19fd6a7ee03b49a886442130b57c47d36
|
data/lib/open_project/token.rb
CHANGED
@@ -199,8 +199,8 @@ module OpenProject
|
|
199
199
|
value = attr["version"]
|
200
200
|
version = nil
|
201
201
|
|
202
|
-
if value.to_s != "-1"
|
203
|
-
version =
|
202
|
+
if value.present? && value.to_s != "-1"
|
203
|
+
version = Gem::Version.new(v)
|
204
204
|
|
205
205
|
if version > current_gem_version
|
206
206
|
raise ArgumentError, "Version is too new"
|