rubygems-requirements-system 0.0.4 → 0.0.5
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/doc/text/news.md +6 -0
- data/lib/rubygems-requirements-system/version.rb +1 -1
- data/lib/rubygems_plugin.rb +5 -2
- data/plugins.rb +11 -2
- 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: f1a95c58ae60cf968b48daa71ab2b4146ba07dfa75daa50f8f1fd08e7e48bc20
|
4
|
+
data.tar.gz: '009fe055cec6d0f2e879f4f788474398d1dc2538429d793c6a13b11369d9d1d2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e245f36cf599ffca1caa6225c00a580acf47808af84a91a97198c9d6bfb86f289fb4b28682c3b702195a70c930dbd134de1ca73b4d16c29477b58420ea891316
|
7
|
+
data.tar.gz: 2e256c0ffe35964abc048548ffc869e042d496abd3c378408d1d046ca587c7b197827d421665d0fcae663f727b613c321a0dec7a7e77f4bb89ce902218cbd4ac
|
data/doc/text/news.md
CHANGED
data/lib/rubygems_plugin.rb
CHANGED
@@ -13,9 +13,12 @@
|
|
13
13
|
# You should have received a copy of the GNU Lesser General Public License
|
14
14
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
15
15
|
|
16
|
-
require_relative "rubygems-requirements-system/installer"
|
17
|
-
|
18
16
|
Gem.pre_install do |gem_installer|
|
17
|
+
# We use Bundler plugin for Bundler.
|
18
|
+
next unless gem_installer.class == Gem::Installer
|
19
|
+
|
20
|
+
require_relative "rubygems-requirements-system/installer"
|
21
|
+
|
19
22
|
installer = RubyGemsRequirementsSystem::Installer.new(gem_installer.spec)
|
20
23
|
installer.install
|
21
24
|
end
|
data/plugins.rb
CHANGED
@@ -13,5 +13,14 @@
|
|
13
13
|
# You should have received a copy of the GNU Lesser General Public License
|
14
14
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
Bundler::Plugin::API.hook(Bundler::Plugin::Events::GEM_BEFORE_INSTALL_ALL) do |dependencies|
|
17
|
+
Gem.pre_install do |gem_installer|
|
18
|
+
# We use RubyGems plugin for non Bundler.
|
19
|
+
next unless gem_installer.class == Gem::Installer
|
20
|
+
|
21
|
+
require_relative "lib/rubygems-requirements-system/installer"
|
22
|
+
|
23
|
+
installer = RubyGemsRequirementsSystem::Installer.new(spec_installer.spec)
|
24
|
+
installer.install
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-requirements-system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sutou Kouhei
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-20 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: |-
|
13
13
|
Users need to install system packages to install an extension library
|