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: dcb1182a0431ab0ed5215506b51bac253b6c15d8fe3c0ddf80de2695646754e8
4
- data.tar.gz: bf3dab22187c646f5bfc5401fe7e418b6720c29faab3709d97ebca0bba2eea55
3
+ metadata.gz: 97f4bbfc6001007bed2421d46617b4f2097bc34f8de97935f79233f1d3273a71
4
+ data.tar.gz: c92318a55f505d271e50b1ae3c5cf17ccf95ee1e7d96b9b7f398ec33e1b25be9
5
5
  SHA512:
6
- metadata.gz: 063eced7754427719f2eeb411867589ab7aea553fafa1720bdf09f3250760413d8e1fffc0d807e95e3027c8710eed4f2101a55a35deb43bdc9d6cf147e78c255
7
- data.tar.gz: 68f01c463e616fae19a6fa35330ffe7e9b948d97679bd0d45ecc246f1881704206f2cde7e7ed3cffade33a0cb58df0c37bf232167977a8ba1aef5183a6ad522c
6
+ metadata.gz: 3af5a8e8edfb9cdc764d411f252ecdbcfeceec4c1628184e73c5f6d9f4d3d3309641cf34d2ac1d3fc22b6e384b58873f650392e7b06c962d902843b08108a99e
7
+ data.tar.gz: d326e95e4bbbfd5fc57dc43bbab7a15767069b738b7cf75203c26f1be4972e05b4d8de2ff7aca562eaaf5ccf36d9c01f6c4c0695a3ad051750b37351d0635d59
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 0.2.1 - 2026-11-16
4
+
5
+ ### Improvements
6
+
7
+ * Stopped to depend on system `pkgconf`/`pkg-config` for MinGW's
8
+ Windows path detection.
9
+
3
10
  ## 0.2.0 - 2026-11-04
4
11
 
5
12
  ### Improvements
@@ -19,7 +19,7 @@ require "rbconfig"
19
19
  require "shellwords"
20
20
 
21
21
  module PKGConfig
22
- VERSION = "1.6.7"
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
- pkg_config_prefix = self.class.native_pkg_config_prefix
561
- return path_flag unless pkg_config_prefix
562
-
563
- mingw_dir = pkg_config_prefix.basename.to_s
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
- pkg_config_prefix.to_s
574
+ mingw_windows_prefix
567
575
  end
568
576
  "#{flag_option}#{path}"
569
577
  end
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module RubyGemsRequirementsSystem
17
- VERSION = "0.2.0"
17
+ VERSION = "0.2.1"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-requirements-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutou Kouhei