pkg-config 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/pkg-config.rb CHANGED
@@ -88,7 +88,7 @@ class PackageConfig
88
88
  extern "const char *dln_find_exe(const char *, const char *)"
89
89
  end
90
90
  path = dln.dln_find_exe(pkg_config.to_s, nil)
91
- if path.size.zero?
91
+ if path.nil? or path.size.zero?
92
92
  nil
93
93
  else
94
94
  Pathname(path.to_s)
@@ -316,7 +316,7 @@ class PackageConfig
316
316
  end
317
317
 
318
318
  module PKGConfig
319
- VERSION = "1.1.2"
319
+ VERSION = "1.1.3"
320
320
 
321
321
  @@paths = []
322
322
  @@override_variables = {}
@@ -331,7 +331,7 @@ module PKGConfig
331
331
  end
332
332
 
333
333
  def msvc?
334
- /mswin32/.match(RUBY_PLATFORM) and /^cl\b/.match(Config::CONFIG['CC'])
334
+ /mswin32/.match(RUBY_PLATFORM) and /^cl\b/.match(RbConfig::CONFIG['CC'])
335
335
  end
336
336
 
337
337
  def package_config(package)
@@ -17,13 +17,11 @@ class PkgConfigTest < Test::Unit::TestCase
17
17
  end
18
18
 
19
19
  def test_cflags
20
- omit("this is known bug in 1.1.2") if PKGConfig::VERSION == "1.1.2"
21
20
  assert_pkg_config("cairo", ["--cflags"], @cairo.cflags)
22
21
  assert_pkg_config("cairo-png", ["--cflags"], @cairo_png.cflags)
23
22
  end
24
23
 
25
24
  def test_cflags_only_I
26
- omit("this is known bug in 1.1.2") if PKGConfig::VERSION == "1.1.2"
27
25
  assert_pkg_config("cairo", ["--cflags-only-I"], @cairo.cflags_only_I)
28
26
  assert_pkg_config("cairo-png", ["--cflags-only-I"], @cairo_png.cflags_only_I)
29
27
  end
@@ -46,7 +44,7 @@ class PkgConfigTest < Test::Unit::TestCase
46
44
 
47
45
  @cairo_png.msvc_syntax = true
48
46
  result = pkg_config("cairo-png", "--libs-only-l")
49
- msvc_result = result.gsub(/-l(cairo|png12)\b/, '\1.lib')
47
+ msvc_result = result.gsub(/-l(cairo|png[0-9]+)\b/, '\1.lib')
50
48
  assert_not_equal(msvc_result, result)
51
49
  assert_equal(msvc_result, @cairo_png.libs_only_l)
52
50
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkg-config
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 2
10
- version: 1.1.2
9
+ - 3
10
+ version: 1.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kouhei Sutou
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-04 00:00:00 Z
18
+ date: 2012-01-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -89,8 +89,8 @@ files:
89
89
  - lib/pkg-config.rb
90
90
  - setup.rb
91
91
  - README.rdoc
92
- - test/test_pkg_config.rb
93
92
  - test/run-test.rb
93
+ - test/test_pkg_config.rb
94
94
  homepage: http://github.com/rcairo/pkg-config
95
95
  licenses:
96
96
  - LGPLv2+
@@ -120,10 +120,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  requirements: []
121
121
 
122
122
  rubyforge_project: cairo
123
- rubygems_version: 1.7.2
123
+ rubygems_version: 1.8.15
124
124
  signing_key:
125
125
  specification_version: 3
126
126
  summary: A pkg-config implementation for Ruby
127
127
  test_files:
128
- - test/test_pkg_config.rb
129
128
  - test/run-test.rb
129
+ - test/test_pkg_config.rb