openproject-token 2.1 → 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: ead9b5f2d9c6a6397a00c9b78b808ffa9c181787f35103cbfca3167932f01f8f
4
- data.tar.gz: 5fd6f7a10fbaaa88c74e843dd90c8aa85cd190e44e73f3338f84d571d5bd2794
3
+ metadata.gz: 1468e154b8c769ea67d98d887da8b9e00c6e830e04b3375a0622c0137afdaeeb
4
+ data.tar.gz: 8d6197c22e207b8882b7eaab394b5a24fc16e403d9b46c43ee360f395b7b595c
5
5
  SHA512:
6
- metadata.gz: 24cda16d34060e6c6a0b76a36243c1c83caff021adc0fe768ed5f4093639de923597a9f46adf48cac7ef295cd0e7b2a5bb88a2cc03ea74eb06c1419c98f73921
7
- data.tar.gz: b5373b041a70d3402881fa4b4fbcf1cecfb36d996c67d61373daf004e88e04a528bfbfa9e909dce749fbd19578d9ad052267999f59122ced451588543a5c0643
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"
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'
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenProject GmbH