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 +4 -4
- data/NEWS +14 -0
- data/lib/pkg-config/version.rb +1 -1
- data/lib/pkg-config.rb +1 -1
- data/test/test-pkg-config.rb +25 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02f5ffc55f6c6be0c817f99382bf952d6034409f5739b028df92ca7c14df81c2
|
4
|
+
data.tar.gz: dff862614b13e2f884baa5d97769cce3fda34045d70f4edd7ce909eaaf14b529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/pkg-config/version.rb
CHANGED
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(/
|
523
|
+
requires_without_version = requires.gsub(/(?:<|>|<=|>=|=)\s*[\d.a-zA-Z_-]+\s*/, "")
|
524
524
|
requires_without_version.split(/[,\s]+/)
|
525
525
|
end
|
526
526
|
|
data/test/test-pkg-config.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2023-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|