pkg-config 1.5.5 → 1.5.6

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: 31a13b597d85b52de9fb1c7cb25b442d8af2b571adf55e26cb76c4a143cee797
4
- data.tar.gz: b7d6e2c8b5e44b240b84b5a473ae80b5c65d50bde5cdf5e72f92f7d4900d643b
3
+ metadata.gz: 02f5ffc55f6c6be0c817f99382bf952d6034409f5739b028df92ca7c14df81c2
4
+ data.tar.gz: dff862614b13e2f884baa5d97769cce3fda34045d70f4edd7ce909eaaf14b529
5
5
  SHA512:
6
- metadata.gz: 3950c9fa255eb20116ce802c57a6e44b12ad40404c743d3f6a27b8825aac37206e116b828eac79dba5d60096358a94e0eee4556289bac6e489249b5a49bd9322
7
- data.tar.gz: f22c2a0c7a0fba6081516280478d59f78729c0c82ac346c90b40b54c41bedc2820e62bd159851e8ace414e13fc243b137dbd8965e518c67f4654bd2c763fe1ee
6
+ metadata.gz: 35d5915bb0394db4eedea0c7cec0f527678cca9d77ecf709aa40b764f1fcc05c51e9c9dfb916d318d800890659f4249c81e16ef92bc21edd61c620629e38208f
7
+ data.tar.gz: 9bd75f5f78dd824aae20e96ff2f8e4aa221c2310d6464db465b2ae2fd319fb2969ac916659d9b22363f31220ce832a5c75bb2e552bd55d69766fa4b76b5c2d61
data/NEWS CHANGED
@@ -1,5 +1,19 @@
1
1
  = NEWS
2
2
 
3
+ == 1.5.6 - 2023-11-19
4
+
5
+ === Improvements
6
+
7
+ * Added support for "<" and ">" operators in "Requires:".
8
+
9
+ GH-23
10
+
11
+ Patch by Daisuke Fujimura
12
+
13
+ === Thanks
14
+
15
+ * Daisuke Fujimura
16
+
3
17
  == 1.5.5 - 2023-09-05
4
18
 
5
19
  === Fixes
@@ -15,5 +15,5 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module PKGConfig
18
- VERSION = "1.5.5"
18
+ VERSION = "1.5.6"
19
19
  end
data/lib/pkg-config.rb CHANGED
@@ -520,7 +520,7 @@ class PackageConfig
520
520
 
521
521
  def parse_requires(requires)
522
522
  return [] if requires.nil?
523
- requires_without_version = requires.gsub(/[<>]?=\s*[\d.a-zA-Z_-]+\s*/, "")
523
+ requires_without_version = requires.gsub(/(?:<|>|<=|>=|=)\s*[\d.a-zA-Z_-]+\s*/, "")
524
524
  requires_without_version.split(/[,\s]+/)
525
525
  end
526
526
 
@@ -237,5 +237,30 @@ class PkgConfigTest < Test::Unit::TestCase
237
237
  assert_equal(["fribidi"],
238
238
  parse_requires("fribidi >= fribidi_required_dep"))
239
239
  end
240
+
241
+ def test_greater_than_or_equals_to
242
+ assert_equal(["fribidi"],
243
+ parse_requires("fribidi >= 1.0"))
244
+ end
245
+
246
+ def test_greater_than
247
+ assert_equal(["fribidi"],
248
+ parse_requires("fribidi > 1.0"))
249
+ end
250
+
251
+ def test_less_than_or_equals_to
252
+ assert_equal(["fribidi"],
253
+ parse_requires("fribidi <= 1.0"))
254
+ end
255
+
256
+ def test_less_than
257
+ assert_equal(["fribidi"],
258
+ parse_requires("fribidi < 1.0"))
259
+ end
260
+
261
+ def test_equals_to
262
+ assert_equal(["fribidi"],
263
+ parse_requires("fribidi = 1.0"))
264
+ end
240
265
  end
241
266
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkg-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-05 00:00:00.000000000 Z
11
+ date: 2023-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit