summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-12 22:51:34 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-15 15:29:32 +0200
commit0dfa6a4234faa9de0337262037a4c7139380f4ee (patch)
tree03d8b00b099cc3d69d090133bb363b854fabbe0d
parent85882d5bde7a5dfc48cd7fa728c1b135dbe59707 (diff)
downloadbundler-0dfa6a4234faa9de0337262037a4c7139380f4ee.tar.gz
Add a private section
-rw-r--r--spec/support/rubygems_ext.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index 6ea9e21603..aa1ab768b2 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -45,11 +45,6 @@ module Spec
load Gem.bin_path(gem_name, bin_container)
end
- def gem_activate(gem_name)
- gem_requirement = DEV_DEPS[gem_name]
- gem gem_name, gem_requirement
- end
-
def gem_require(gem_name)
gem_activate(gem_name)
require gem_name
@@ -79,6 +74,13 @@ module Spec
Gem::DefaultUserInteraction.ui = Gem::SilentUI.new
end
+ private
+
+ def gem_activate(gem_name)
+ gem_requirement = DEV_DEPS[gem_name]
+ gem gem_name, gem_requirement
+ end
+
def install_gems(gems)
reqs, no_reqs = gems.partition {|_, req| !req.nil? && !req.split(" ").empty? }
no_reqs.map!(&:first)