semver_dialects 1.2.0 → 1.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a938aaa5511fcad164d08c5bc8b5ae657f439d8919b72da84f306a5550fc3fb6
4
- data.tar.gz: 43b8e0ed3dd90acd8e41c6e25795dacc309a7121ebcbef433c543349c4812b5d
3
+ metadata.gz: 545d60dd98889db6974b741b120bfbf036b5c2f03c003c3c76bd0869ce429a5b
4
+ data.tar.gz: 65289d2e8856c19bcd13330a57db255163934c17ed8486b84388b275541150f5
5
5
  SHA512:
6
- metadata.gz: fca2d478f9e855e3c987566cc4e45d86260ea129c63af4cdc59e689a15261fb5d3b5e6983be7b21f55b330de46e2a9e3553042dc0235678e7b3e3b3005385041
7
- data.tar.gz: 19960826b3a1fc2d336dcb3394c2c2668bc0e863dec05d630b7859366f1a0d44590af4a14eed8872fd083ca4d5a78fe60f98a72e12ffdae102cf5c2df32d73b2
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.2.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.2.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-04-11 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