pkg-config 1.2.2 → 1.2.3

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
  SHA1:
3
- metadata.gz: b047ecbdb15bee5ee7c7449fe449e1ba07bd32fc
4
- data.tar.gz: 9c4721757a5e4f42f35630a094a7e411c05bc72b
3
+ metadata.gz: cbe82e6b78d94b2bcf0b1805e01061b48b9b0a3d
4
+ data.tar.gz: 9f984bc5d47073fd92c5c02fa3b0c786a8626dfd
5
5
  SHA512:
6
- metadata.gz: 3e0769d5c077a77512f8380714168858fc65e24a79c617719163c3f216e4b32f884821fe8969d1d1dfd20e46893ed1cd086f6330fbb9cfa760e11360bc74b61b
7
- data.tar.gz: c25e658f05214807fdbf13ebe2c15e803416bbe0bad8b6ec8ac3bee588ab869e178c4cfb10376c49858f3beceb7fac83a84eeb21abdfbad27d1751173cd80131
6
+ metadata.gz: 5f06130d4efc5532d2c0b909644dbe34e7c2ac0f122a7554403993657d0dcd086a32744b6f4113ec4dbb773c392b6b242b5491b858b6793a752bae83d12f02e8
7
+ data.tar.gz: 535570aa221d8f46c812e0ad2c6baa19836874fb72ee55875e5ac78db4be274231cbd086cdba1fb0b90b8b2e927f6a4cda51c456c82162f6bd5ac6d9a7696602
data/NEWS CHANGED
@@ -1,5 +1,11 @@
1
1
  = NEWS
2
2
 
3
+ == 1.2.3 - 2017-05-29
4
+
5
+ === Fixes
6
+
7
+ * Supported *-mingw32 Rubies without MSYS2 again.
8
+
3
9
  == 1.2.2 - 2017-05-29
4
10
 
5
11
  === Improvements
data/lib/pkg-config.rb CHANGED
@@ -226,20 +226,21 @@ class PackageConfig
226
226
  [path_flags, other_flags]
227
227
  end
228
228
 
229
- def normalize_path_flags(path_flags, prefix)
229
+ def normalize_path_flags(path_flags, flag_option)
230
230
  path_flags.collect do |path_flag|
231
- path = path_flag.sub(prefix, "")
231
+ path = path_flag.sub(flag_option, "")
232
+ prefix = ""
232
233
  case RUBY_PLATFORM
233
234
  when "x86-mingw32"
234
- unless /\A[a-z]:/i === path
235
- path = Dir.glob("c:/msys{32,64,*}").first + path
236
- end
235
+ prefix = Dir.glob("c:/msys{32,64,*}").first
237
236
  when "x64-mingw32"
238
- unless /\A[a-z]:/i === path
239
- path = Dir.glob("c:/msys{64,*}").first + path
240
- end
237
+ prefix = Dir.glob("c:/msys{64,*}").first
238
+ end
239
+ if /\A[a-z]:/i === path
240
+ "#{flag_option}#{path}"
241
+ else
242
+ "#{flag_option}#{prefix}#{path}"
241
243
  end
242
- "#{prefix}#{path}"
243
244
  end
244
245
  end
245
246
 
@@ -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.2.2"
18
+ VERSION = "1.2.3"
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkg-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou