semver_dialects 1.2.1 → 1.3.0

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: 545d60dd98889db6974b741b120bfbf036b5c2f03c003c3c76bd0869ce429a5b
4
- data.tar.gz: 65289d2e8856c19bcd13330a57db255163934c17ed8486b84388b275541150f5
3
+ metadata.gz: ddcbb054210cd867508c853d05b58c492e24f5019eb53498d2bbce338d4b5312
4
+ data.tar.gz: 6461b277cd0ddb886b96f23c9a57ab2a20cf4ebaa3fb11f49af54cf59a943ddf
5
5
  SHA512:
6
- metadata.gz: 47cad5277161c8cad94ab902c8476467311f1b2e48b36f4d335d43e18ec882c5681fc9c168837f1e12502f0a890e35323bcd1583c5c29fa358ce52c25d281657
7
- data.tar.gz: 8db66efd085fb9b764effb1966dedcf6f1ac4602800cbcef8bee81d67805895ba54d65ef3cb25347409190ff5f548510018377c2b7b1174841768052e6fefc1b
6
+ metadata.gz: b44765a7c9500082e3298b2ee34d1d9020b642ca5467c617944c42f57c7e76c0b3c8f34d3cac3058262edb14fb5cc885040e7277016c446277c02e12626e9fed
7
+ data.tar.gz: 6a7fa2d8043611fe4ff0a44abd5a1f67765f99a356c83be8343f6b1cb367127feb51cfd879021c623062477b2b538051405129280aa4079f46fdaf2bdf282d3c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SemverDialects
4
- VERSION = '1.2.1'
4
+ VERSION = '1.3.0'
5
5
  end
@@ -34,15 +34,15 @@ module SemverDialects
34
34
  when 'packagist'
35
35
  VersionTranslator.translate_packagist(version_string)
36
36
  else
37
- raise SemverDialects::Error, 'unsupported package type'
37
+ raise SemverDialects::Error, "unsupported package type '#{typ}'"
38
38
  end
39
39
  end
40
40
 
41
41
  def self.version_sat?(typ, raw_ver, raw_constraint)
42
42
  version_constraint = version_translate(typ, raw_constraint)
43
- version = VersionParser.parse('=' + raw_ver)
44
-
45
43
  raise SemverDialects::Error, 'malformed constraint' if version_constraint.nil? || version_constraint.empty?
44
+
45
+ version = VersionParser.parse('=' + raw_ver)
46
46
  raise SemverDialects::Error, 'malformed constraint' if version.nil? || version.empty?
47
47
 
48
48
  constraint = VersionRange.new
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.1
4
+ version: 1.3.0
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-13 00:00:00.000000000 Z
13
+ date: 2023-05-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pastel
@@ -60,14 +60,14 @@ dependencies:
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '1.17'
63
+ version: 2.4.9
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '1.17'
70
+ version: 2.4.9
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rake
73
73
  requirement: !ruby/object:Gem::Requirement