pkg-config 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +19 -0
- data/README.rdoc +2 -10
- data/lib/pkg-config.rb +1 -1
- data/lib/pkg-config/version.rb +1 -1
- data/test/{test_pkg_config.rb → test-pkg-config.rb} +7 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58f40c4efe4e315db21fe3ce7c7e259d4224d1734972cf461296ccc02f8c66db
|
4
|
+
data.tar.gz: 31e2395b16ace3ccc5aeed7dd6882496345fc9a3d23eb49082b4875f78face11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61e27036ff20e04388cab0f72f0a035bfd830aff868df6a1fd25bb68a885709c858ef0acce9b829b7924e307e8c768692e4e589c5c06efc3d7d866902900917a
|
7
|
+
data.tar.gz: 83747ac073b00b669671e64255a039190e947b1ad0c52770677d85d3ae6624968cd2ee975d0fcfdac1e31341bf2748a7bbe430d0a9502312248478e2249206e7
|
data/NEWS
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
= NEWS
|
2
2
|
|
3
|
+
== 1.4.4 - 2020-09-23
|
4
|
+
|
5
|
+
=== Fixes
|
6
|
+
|
7
|
+
* Fixed a bug that NoMethodError instead of
|
8
|
+
PackageConfig::NotFoundError is raised.
|
9
|
+
[Fixed by kojix2][GitHub#21]
|
10
|
+
|
11
|
+
=== Thanks
|
12
|
+
|
13
|
+
* kojix2
|
14
|
+
|
15
|
+
== 1.4.3 - 2020-09-15
|
16
|
+
|
17
|
+
=== Improvements
|
18
|
+
|
19
|
+
* Changed to use PackageConfig::NotFoundError instead of RuntimeError
|
20
|
+
for exception on no .pc is found.
|
21
|
+
|
3
22
|
== 1.4.2 - 2020-08-10
|
4
23
|
|
5
24
|
=== Improvements
|
data/README.rdoc
CHANGED
@@ -8,17 +8,13 @@ pkg-config
|
|
8
8
|
|
9
9
|
A pkg-config implementation by Ruby.
|
10
10
|
|
11
|
-
== Dependencies
|
12
|
-
|
13
|
-
* ruby >= 1.8 (1.9.2 is also supported!)
|
14
|
-
|
15
11
|
== Install
|
16
12
|
|
17
13
|
# gem install pkg-config
|
18
14
|
|
19
15
|
== Documents
|
20
16
|
|
21
|
-
*
|
17
|
+
* https://rubydoc.info/gems/pkg-config
|
22
18
|
|
23
19
|
== Source
|
24
20
|
|
@@ -27,7 +23,7 @@ http://github.com/ruby-gnome/pkg-config
|
|
27
23
|
|
28
24
|
== Copyright
|
29
25
|
|
30
|
-
Copyright 2008-
|
26
|
+
Copyright 2008-2020 Kouhei Sutou <kou@clear-code.com>
|
31
27
|
|
32
28
|
This library is free software; you can redistribute it and/or
|
33
29
|
modify it under the terms of the GNU Lesser General Public
|
@@ -45,10 +41,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
45
41
|
|
46
42
|
See LGPL-2.1 file for details.
|
47
43
|
|
48
|
-
== Mailing list
|
49
|
-
|
50
|
-
TODO
|
51
|
-
|
52
44
|
== Thanks
|
53
45
|
|
54
46
|
* Funky Bibimbap
|
data/lib/pkg-config.rb
CHANGED
@@ -386,7 +386,7 @@ class PackageConfig
|
|
386
386
|
|
387
387
|
IDENTIFIER_RE = /[a-zA-Z\d_\.]+/
|
388
388
|
def parse_pc
|
389
|
-
raise NotFoundError ".pc
|
389
|
+
raise NotFoundError, ".pc doesn't exist: <#{@name}>" unless exist?
|
390
390
|
@variables = {}
|
391
391
|
@declarations = {}
|
392
392
|
File.open(pc_path) do |input|
|
data/lib/pkg-config/version.rb
CHANGED
@@ -164,6 +164,13 @@ class PkgConfigTest < Test::Unit::TestCase
|
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
167
|
+
def test_not_found
|
168
|
+
message = ".pc doesn't exist: <nonexistent>"
|
169
|
+
assert_raise(PackageConfig::NotFoundError.new(message)) do
|
170
|
+
PKGConfig.modversion("nonexistent")
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
167
174
|
private
|
168
175
|
def pkg_config(package, *args)
|
169
176
|
args.unshift("--define-variable=libdir=#{@custom_libdir}")
|
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.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
@@ -68,7 +68,7 @@ files:
|
|
68
68
|
- lib/pkg-config.rb
|
69
69
|
- lib/pkg-config/version.rb
|
70
70
|
- test/run-test.rb
|
71
|
-
- test/
|
71
|
+
- test/test-pkg-config.rb
|
72
72
|
homepage: https://github.com/ruby-gnome/pkg-config
|
73
73
|
licenses:
|
74
74
|
- LGPLv2+
|
@@ -95,4 +95,4 @@ specification_version: 4
|
|
95
95
|
summary: A pkg-config implementation for Ruby
|
96
96
|
test_files:
|
97
97
|
- test/run-test.rb
|
98
|
-
- test/
|
98
|
+
- test/test-pkg-config.rb
|