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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d218d4572439ee41238271a09ad784c6a94be598e8028664d2d9ad3ac0a26115
4
- data.tar.gz: 02adcfc7070c95e4d972a59b6df4dc812631855fcc008e6ba2fcbf9fcb6f3a9f
3
+ metadata.gz: 1468e154b8c769ea67d98d887da8b9e00c6e830e04b3375a0622c0137afdaeeb
4
+ data.tar.gz: 8d6197c22e207b8882b7eaab394b5a24fc16e403d9b46c43ee360f395b7b595c
5
5
  SHA512:
6
- metadata.gz: 4698826acfa3110b50d0d8989148ed44025722a968f2f13d257573fe05550685480b7dacc5786ec6ee450b6704eba6b60ea70cce97e2e631bc19c0a4968c3908
7
- data.tar.gz: 29a1fdb2b2c20ec9f0af23769e31c2ac990f490932bda21314faa26387a9d617309da6a0d2591b02bb7f411a4784f7829d10007d77e30baff0e2183575558e7c
6
+ metadata.gz: 1550e4748618f99e45f3653d8c34360e4f7bb0803a5850f5d89c9b705cd87a9faf217e36ced06f5c5648134c417bc72404cfb6f4a2a910939b0a015a92bf6264
7
+ data.tar.gz: 15662a9656073de5d1c0a8b8af5e72383aca6436233349c202b29c0262ea208a4afe2a77e6e8b109d052a84c40c636b19fd6a7ee03b49a886442130b57c47d36
@@ -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 = value.then { |v| v && Gem::Version.new(v) } || current_gem_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"
@@ -1,5 +1,5 @@
1
1
  module OpenProject
2
2
  class Token
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-token
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenProject GmbH