pkg-config 1.5.4 → 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: 6bf34df050960d19597c3cbbd2df02927f4e85f00c4c8ad01e044933784ec408
4
- data.tar.gz: 86f89afbb7cedd8dc4fe1a5ea6813b516a6452ad2572b41d2d31c33f2a836646
3
+ metadata.gz: 02f5ffc55f6c6be0c817f99382bf952d6034409f5739b028df92ca7c14df81c2
4
+ data.tar.gz: dff862614b13e2f884baa5d97769cce3fda34045d70f4edd7ce909eaaf14b529
5
5
  SHA512:
6
- metadata.gz: 0c758e2d4005a6ea094c625ca08013becd5f585f8f8603efcd7421edf8be0cbfbaf649219e5d9f297a8a10237901a1c319993f6ff140b9b214115a7f234c65fb
7
- data.tar.gz: 49640c01db3dca1d3c118ec44efdb93c515d4ae866a4d655a99d4e0da9c795002b0ef7d6bea5193accd68ea34070365d93d00fdfeb7b77571c5a634db3c4cfea
6
+ metadata.gz: 35d5915bb0394db4eedea0c7cec0f527678cca9d77ecf709aa40b764f1fcc05c51e9c9dfb916d318d800890659f4249c81e16ef92bc21edd61c620629e38208f
7
+ data.tar.gz: 9bd75f5f78dd824aae20e96ff2f8e4aa221c2310d6464db465b2ae2fd319fb2969ac916659d9b22363f31220ce832a5c75bb2e552bd55d69766fa4b76b5c2d61
data/NEWS CHANGED
@@ -1,5 +1,25 @@
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
+
17
+ == 1.5.5 - 2023-09-05
18
+
19
+ === Fixes
20
+
21
+ * Fixed a bug in 1.5.4 that success detection doesn't work.
22
+
3
23
  == 1.5.4 - 2023-09-05
4
24
 
5
25
  === Improvements
@@ -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.4"
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
 
@@ -651,7 +651,7 @@ module PKGConfig
651
651
  end
652
652
  end
653
653
  end
654
- enough_version = (result != "no")
654
+ enough_version = result.start_with?("yes")
655
655
  if enough_version
656
656
  libraries = libs_only_l(pkg)
657
657
  dldflags = libs(pkg)
@@ -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
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