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 +4 -4
- data/README.md +20 -0
- data/doc/text/news.md +8 -0
- data/lib/rubygems-requirements-system/platform.rb +9 -2
- data/lib/rubygems-requirements-system/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68ac15354bd69595dd28b2043593d31d5c0c77031632fbf41d07350589ace5d6
|
|
4
|
+
data.tar.gz: 67d7d457a52dab25f49e2a2a796dd33155f97ef9c9a4048739558a19124bb737
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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-
|
|
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
|
-
|
|
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
|
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.
|
|
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.
|
|
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: []
|