rubygems-requirements-system 0.1.2 → 0.1.4

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: 8983a82a4286b4991c0b50470b4a19d518b943a1507bddaf2942c9adb8cb6426
4
- data.tar.gz: 3795392e6f8f41fd623851e1df0464e00379a2e93987f951076c93e86f079a36
3
+ metadata.gz: 34e6edefc65d483dbf4cdd7e65aa207d72333c77daaa9a8f01783e980b902b0a
4
+ data.tar.gz: 389e7cb7ca4e47e340eda5d33124b5a6a6504f9394ee33f69e126501b2bfd7d3
5
5
  SHA512:
6
- metadata.gz: 4eb08d8b22664f846335544748dc0db9b50ac0146c3c49e077542ccc36d3ed6401f0be2e547dfbfeb4561a9e86077486f24224f689f9746b3ec2d801f0217815
7
- data.tar.gz: 29012e76f40aaf145987ff502c7f08255715847e22c72eb31cc7725f9d4b9369fd310d2eccabfd04e75b412e90c02fb87f673cfa089b0fb3f1c4b41da340e955
6
+ metadata.gz: cf042b4cbd1c2a81c53acd09b8c068dc7092c68579c1a25dba195ac1b029f679fa12985785c477203ffc6811402f7cfeecdada8d9cbb79b3926e9a921820ae1c
7
+ data.tar.gz: ead6cbb4a59b00c6ecfdeedae8b2bc9cf0c04ac60da0512c78dd91f379f5be88d6024a5dd4cf05daf9dc214c0f4b44a58d8b8421dab6303b4b43e4ece628cb70
data/doc/text/news.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # News
2
2
 
3
+ ## 0.1.4 - 2025-11-26
4
+
5
+ ### Improvements
6
+
7
+ * Added support for Ruby installed by MSYS2. Note that this is not
8
+ for Ruby installed by RubyInstaller. Ruby installed by
9
+ RubyInstaller must use `msys2_mingw_dependencies` gemspec metadata
10
+ instead of this.
11
+ * GH-16
12
+ * Patch by takuya kodama
13
+
14
+ ### Thanks
15
+
16
+ * takuya kodama
17
+
18
+ ## 0.1.3 - 2025-09-03
19
+
20
+ ### Improvements
21
+
22
+ * Updated bundled `pkg-config` gem to 1.6.4.
23
+
3
24
  ## 0.1.2 - 2025-08-27
4
25
 
5
26
  ### Improvements
@@ -19,7 +19,7 @@ require "rbconfig"
19
19
  require "shellwords"
20
20
 
21
21
  module PKGConfig
22
- VERSION = "1.6.3"
22
+ VERSION = "1.6.4"
23
23
 
24
24
  @@paths = []
25
25
  @@override_variables = {}
@@ -637,13 +637,18 @@ class PackageConfig
637
637
  @variables = {}
638
638
  @declarations = {}
639
639
  File.open(pc_path) do |input|
640
+ current_line = +""
640
641
  input.each_line do |line|
641
642
  if line.dup.force_encoding("UTF-8").valid_encoding?
642
643
  line.force_encoding("UTF-8")
643
644
  end
644
645
  line = line.gsub(/#.*/, "").strip
645
- next if line.empty?
646
- case line
646
+ if line.end_with?("\\")
647
+ current_line += line[0..-2]
648
+ next
649
+ end
650
+ current_line += line
651
+ case current_line
647
652
  when /^(#{IDENTIFIER_RE})\s*=\s*/
648
653
  match = Regexp.last_match
649
654
  @variables[match[1]] = match.post_match.strip
@@ -651,6 +656,7 @@ class PackageConfig
651
656
  match = Regexp.last_match
652
657
  @declarations[match[1]] = match.post_match.strip
653
658
  end
659
+ current_line = +""
654
660
  end
655
661
  end
656
662
  end
@@ -0,0 +1,54 @@
1
+ # Copyright (C) 2025 Ruby-GNOME Project Team
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ require_relative "base"
17
+
18
+ module RubyGemsRequirementsSystem
19
+ module Platform
20
+ class MSYS2 < Base
21
+ Platform.register(self)
22
+
23
+ class << self
24
+ def current_platform?
25
+ return false if Object.const_defined?(:RubyInstaller)
26
+ return false if package_prefix.nil?
27
+ ExecutableFinder.exist?("pacman")
28
+ end
29
+
30
+ def package_prefix
31
+ ENV["MINGW_PACKAGE_PREFIX"]
32
+ end
33
+ end
34
+
35
+ def target?(platform)
36
+ platform == "msys2"
37
+ end
38
+
39
+ private
40
+ def install_command_line(package)
41
+ [
42
+ "pacman",
43
+ "-S",
44
+ "--noconfirm",
45
+ "#{self.class.package_prefix}-#{package}"
46
+ ]
47
+ end
48
+
49
+ def need_super_user_priviledge?
50
+ false
51
+ end
52
+ end
53
+ end
54
+ end
@@ -62,6 +62,10 @@ require_relative "platform/suse"
62
62
  require_relative "platform/alpine-linux"
63
63
 
64
64
 
65
+ # Windows
66
+ require_relative "platform/msys2"
67
+
68
+
65
69
  # Platform independent
66
70
  require_relative "platform/homebrew"
67
71
  require_relative "platform/conda"
@@ -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.1.2"
17
+ VERSION = "0.1.4"
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.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutou Kouhei
@@ -48,6 +48,7 @@ files:
48
48
  - lib/rubygems-requirements-system/platform/gentoo-linux.rb
49
49
  - lib/rubygems-requirements-system/platform/homebrew.rb
50
50
  - lib/rubygems-requirements-system/platform/macports.rb
51
+ - lib/rubygems-requirements-system/platform/msys2.rb
51
52
  - lib/rubygems-requirements-system/platform/pld-linux.rb
52
53
  - lib/rubygems-requirements-system/platform/red-hat-enterprise-linux.rb
53
54
  - lib/rubygems-requirements-system/platform/suse.rb