rubygems-requirements-system 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97f4bbfc6001007bed2421d46617b4f2097bc34f8de97935f79233f1d3273a71
|
|
4
|
+
data.tar.gz: c92318a55f505d271e50b1ae3c5cf17ccf95ee1e7d96b9b7f398ec33e1b25be9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3af5a8e8edfb9cdc764d411f252ecdbcfeceec4c1628184e73c5f6d9f4d3d3309641cf34d2ac1d3fc22b6e384b58873f650392e7b06c962d902843b08108a99e
|
|
7
|
+
data.tar.gz: d326e95e4bbbfd5fc57dc43bbab7a15767069b738b7cf75203c26f1be4972e05b4d8de2ff7aca562eaaf5ccf36d9c01f6c4c0695a3ad051750b37351d0635d59
|
data/doc/text/news.md
CHANGED
|
@@ -19,7 +19,7 @@ require "rbconfig"
|
|
|
19
19
|
require "shellwords"
|
|
20
20
|
|
|
21
21
|
module PKGConfig
|
|
22
|
-
VERSION = "1.6.
|
|
22
|
+
VERSION = "1.6.8"
|
|
23
23
|
|
|
24
24
|
@@paths = []
|
|
25
25
|
@@override_variables = {}
|
|
@@ -557,13 +557,21 @@ class PackageConfig
|
|
|
557
557
|
def normalize_path_flag(path_flag, flag_option)
|
|
558
558
|
return path_flag unless /-mingw(?:32|-ucrt)\z/ === RUBY_PLATFORM
|
|
559
559
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
560
|
+
# Convert MSYS2 path such as /mingw64/include to Windows path such
|
|
561
|
+
# as C:/msys64/mingw64/include. Ruby knows the Windows path of the
|
|
562
|
+
# MinGW prefix: RubyInstaller provides it and MSYS2's Ruby is
|
|
563
|
+
# installed into it.
|
|
564
|
+
if Object.const_defined?(:RubyInstaller)
|
|
565
|
+
mingw_bin_path = RubyInstaller::Runtime.msys2_installation.mingw_bin_path
|
|
566
|
+
mingw_windows_prefix =
|
|
567
|
+
File.dirname(mingw_bin_path.tr(File::ALT_SEPARATOR, File::SEPARATOR))
|
|
568
|
+
else
|
|
569
|
+
mingw_windows_prefix = RbConfig::CONFIG["prefix"]
|
|
570
|
+
end
|
|
571
|
+
mingw_dir = File.basename(mingw_windows_prefix)
|
|
564
572
|
path = path_flag.sub(/\A#{Regexp.escape(flag_option)}/, "")
|
|
565
573
|
path = path.sub(/\A\/#{Regexp.escape(mingw_dir)}/i) do
|
|
566
|
-
|
|
574
|
+
mingw_windows_prefix
|
|
567
575
|
end
|
|
568
576
|
"#{flag_option}#{path}"
|
|
569
577
|
end
|