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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0271d5e7218e5a925f41e5d890ad4eed1194572fbb2a140578df4bef80bbc666
4
- data.tar.gz: 9631386ad89e63d5534cc0e5e463aa7231f777ec3c3738c80a9dbcbedd94d779
3
+ metadata.gz: f1a95c58ae60cf968b48daa71ab2b4146ba07dfa75daa50f8f1fd08e7e48bc20
4
+ data.tar.gz: '009fe055cec6d0f2e879f4f788474398d1dc2538429d793c6a13b11369d9d1d2'
5
5
  SHA512:
6
- metadata.gz: f3d2ac2e6e04d60114008135395b83c563251810bd5157af728dd0fd28dc1100610a7621895400f298f9ed2747122c21483ea3f43e4447ad92cde70aba7ce15f
7
- data.tar.gz: b0679db240aa4a3c1feb263da1e36f17d2a984b7e29431e4d0159c1cfce3642e40d8498d99da652001789ead7965ee6decbbd073aecb4050bbde7c4fcf950867
6
+ metadata.gz: e245f36cf599ffca1caa6225c00a580acf47808af84a91a97198c9d6bfb86f289fb4b28682c3b702195a70c930dbd134de1ca73b4d16c29477b58420ea891316
7
+ data.tar.gz: 2e256c0ffe35964abc048548ffc869e042d496abd3c378408d1d046ca587c7b197827d421665d0fcae663f727b613c321a0dec7a7e77f4bb89ce902218cbd4ac
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 0.0.5 - 2025-03-20
4
+
5
+ ### Improvements
6
+
7
+ * Improved Bundler integration.
8
+
3
9
  ## 0.0.4 - 2025-03-05
4
10
 
5
11
  ### Improvements
@@ -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.0.4"
17
+ VERSION = "0.0.5"
18
18
  end
@@ -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
- # Do nothing. We can use this as a Bundler plugin by this file. If we
17
- # use this as a Bundler plugin, Bundler install this before other gems.
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
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-05 00:00:00.000000000 Z
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