rubygems-requirements-system 0.1.7 → 0.1.8

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: 11e781bef20a2a18323bae20a0bbf495190a5485c3796f967808a65f30c9bcb2
4
- data.tar.gz: 9734a1be138c282156c869e86febf308c9d8aa9cd768c69a8b6ebe5a719351f2
3
+ metadata.gz: 68ac15354bd69595dd28b2043593d31d5c0c77031632fbf41d07350589ace5d6
4
+ data.tar.gz: 67d7d457a52dab25f49e2a2a796dd33155f97ef9c9a4048739558a19124bb737
5
5
  SHA512:
6
- metadata.gz: 78b97fa455c744e3f5f8432ff5f1c180ba3fbe5057f23ea970a115b6fba4d1b73f3b6165120ba59026191d40c152074accbdbadbf314000d1efe5781f1658f3e
7
- data.tar.gz: d95bce0735d871c935c75e166e246f485499fb608549b271c506f938f5b76f5e789e07fbe6032a0eeb119846c18c8ed5a484b456a6a755ec9f2711dd7d876976
6
+ metadata.gz: 79ebcf0c9cc4cbed4cd50f1f9740a11c95ce73a36f4dd566e9b7bc7700719abfba946bab3bd90749b016baed39720e8608f939c838faf2365ce319570ecc70db
7
+ data.tar.gz: d53d283cde4a4f828f7fddeae3dab3a119b388489c0f20362bfb22a1dd9c965682733d1540119307770117d28ca655f2a4ea48bc5714beb18011b762755c0e80
data/README.md CHANGED
@@ -385,6 +385,26 @@ explicitly:
385
385
  enabled: false
386
386
  ```
387
387
 
388
+ ### Force
389
+
390
+ You may want to use a specified platform even when
391
+ rubygems-requirements-system gem detects your platform
392
+ automatically. For example, you may want to use conda even when you
393
+ have Homebrew. You can specify a platform you want to use explicitly:
394
+
395
+ 1. Set the `RUBYGEMS_REQUIREMENTS_SYSTEM_PLATFORM` environment:
396
+
397
+ ```bash
398
+ RUBYGEMS_REQUIREMENTS_SYSTEM_PLATFORM=conda
399
+ ```
400
+
401
+ 2. Add the following configuration to `~/.gemrc`:
402
+
403
+ ```yaml
404
+ requirements_system:
405
+ platform: conda
406
+ ```
407
+
388
408
  ## History
389
409
 
390
410
  This is based on
data/doc/text/news.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # News
2
2
 
3
+ ## 0.1.8 - 2026-07-18
4
+
5
+ ### Improvements
6
+
7
+ * Add support for specifying the target platform explicitly. Use the
8
+ `RUBYGEMS_REQUIREMENTS_SYSTEM_PLATFORM` environment variable or
9
+ `requirements_system.platform` in `~/.gemrc`.
10
+
3
11
  ## 0.1.7 - 2026-06-15
4
12
 
5
13
  ### Improvements
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017-2025 Ruby-GNOME Project Team
1
+ # Copyright (C) 2017-2026 Ruby-GNOME Project Team
2
2
  #
3
3
  # This program is free software: you can redistribute it and/or modify
4
4
  # it under the terms of the GNU Lesser General Public License as published by
@@ -23,8 +23,15 @@ module RubyGemsRequirementsSystem
23
23
  end
24
24
 
25
25
  def detect(ui)
26
+ platform_name =
27
+ ENV["RUBYGEMS_REQUIREMENTS_SYSTEM_PLATFORM"] ||
28
+ (Gem.configuration["requirements_system"] || {})["platform"]
26
29
  PLATFORM_CLASSES.reverse_each do |platform_class|
27
- return platform_class.new(ui) if platform_class.current_platform?
30
+ next unless platform_class.current_platform?
31
+
32
+ platform = platform_class.new(ui)
33
+ return platform if platform_name.nil?
34
+ return platform if platform.target?(platform_name)
28
35
  end
29
36
  Unknown.new(ui)
30
37
  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.1.7"
17
+ VERSION = "0.1.8"
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutou Kouhei
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 4.0.10
82
+ rubygems_version: 4.0.16
83
83
  specification_version: 4
84
84
  summary: Users can install system packages automatically on "gem install"
85
85
  test_files: []