semver_dialects 1.1.0 → 1.2.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: ae98e22ca73ff7c40ebaa3e8e373f1f69152c52e3e1e1817d31d3f365de6a839
4
- data.tar.gz: 23255e330ae6c16566ab739c8438befbead6eeb707357c0b47ff777a3b3d21b7
3
+ metadata.gz: 545d60dd98889db6974b741b120bfbf036b5c2f03c003c3c76bd0869ce429a5b
4
+ data.tar.gz: 65289d2e8856c19bcd13330a57db255163934c17ed8486b84388b275541150f5
5
5
  SHA512:
6
- metadata.gz: 6c20b937342363fc9c223df86badf405b7e3c222b7e87f224c10affdc7dbd5abba56aa9ebb980ce038957b6d46300a36d0caef8a05ead555cf66bf65e2c3266c
7
- data.tar.gz: d795c3406a9f575529b16657fb4b953eb1dc9e5ed9a774708d6ced47d46ff8b91886a1508d65f634446a2014123132d6a49abb6c10a29ebf05f4b4ca78185690
6
+ metadata.gz: 47cad5277161c8cad94ab902c8476467311f1b2e48b36f4d335d43e18ec882c5681fc9c168837f1e12502f0a890e35323bcd1583c5c29fa358ce52c25d281657
7
+ data.tar.gz: 8db66efd085fb9b764effb1966dedcf6f1ac4602800cbcef8bee81d67805895ba54d65ef3cb25347409190ff5f548510018377c2b7b1174841768052e6fefc1b
@@ -124,7 +124,7 @@ module VersionTranslator
124
124
  end
125
125
 
126
126
  args = content.split(',')
127
- first_non_empty_arg = args.find(&:present?)
127
+ first_non_empty_arg = args.find(&:range_present?)
128
128
 
129
129
  if content.start_with?(',')
130
130
  # {,y}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SemverDialects
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.1'
5
5
  end
data/lib/utils.rb CHANGED
@@ -9,7 +9,7 @@ class String
9
9
  s
10
10
  end
11
11
 
12
- def present?
12
+ def range_present?
13
13
  !empty?
14
14
  end
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semver_dialects
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Thome
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2023-02-22 00:00:00.000000000 Z
13
+ date: 2023-04-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pastel
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.2
21
+ version: 0.8.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.7.2
28
+ version: 0.8.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: thor
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -46,14 +46,14 @@ dependencies:
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 0.9.0
49
+ version: 0.10.1
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 0.9.0
56
+ version: 0.10.1
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: bundler
59
59
  requirement: !ruby/object:Gem::Requirement