pkg-config 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pkg-config.rb +7 -1
- data/lib/pkg-config/version.rb +1 -1
- data/test/run-test.rb +0 -3
- 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: de5fd5654e9bb6bcd643ec49f1c3a5e4dffeb8741663c7c5bcb1138bffcf2bfb
|
4
|
+
data.tar.gz: e9ade52de5043ccc219d0f5bcf0083048db0ac10cb5f022df7497f845793711a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 345270f9e96221baed66995429b561c8e0264a65802846abf3d3aaf5be5cd489060dcfa3c6ff4cb9ca5539e0b3e3cb21fd01343d47bac60ee980ab37ae7c0d3d
|
7
|
+
data.tar.gz: 7a16605e05c797c5666a9005bdb75554afffe9fba4c36097e1378c1a5f735be215c4c643ecb64fa516780f8ba7f004ca7c606bf31e8a00dfb84e993e23699d7b
|
data/lib/pkg-config.rb
CHANGED
@@ -25,6 +25,12 @@ require "rbconfig"
|
|
25
25
|
require "shellwords"
|
26
26
|
|
27
27
|
class PackageConfig
|
28
|
+
class Error < StandardError
|
29
|
+
end
|
30
|
+
|
31
|
+
class NotFoundError < Error
|
32
|
+
end
|
33
|
+
|
28
34
|
SEPARATOR = File::PATH_SEPARATOR
|
29
35
|
|
30
36
|
class << self
|
@@ -380,7 +386,7 @@ class PackageConfig
|
|
380
386
|
|
381
387
|
IDENTIFIER_RE = /[a-zA-Z\d_\.]+/
|
382
388
|
def parse_pc
|
383
|
-
raise ".pc for #{@name} doesn't exist." unless exist?
|
389
|
+
raise NotFoundError ".pc for #{@name} doesn't exist." unless exist?
|
384
390
|
@variables = {}
|
385
391
|
@declarations = {}
|
386
392
|
File.open(pc_path) do |input|
|
data/lib/pkg-config/version.rb
CHANGED
data/test/run-test.rb
CHANGED
@@ -6,9 +6,6 @@ base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
|
6
6
|
lib_dir = File.join(base_dir, "lib")
|
7
7
|
test_dir = File.join(base_dir, "test")
|
8
8
|
|
9
|
-
ENV["BUNDLE_GEMFILE"] ||= File.join(base_dir, "Gemfile")
|
10
|
-
require "bundler/setup"
|
11
|
-
|
12
9
|
require 'test-unit'
|
13
10
|
|
14
11
|
$LOAD_PATH.unshift(lib_dir)
|
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.3
|
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-
|
11
|
+
date: 2020-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|