aboutsummaryrefslogtreecommitdiffstats
path: root/bin/rspec
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-02-24 20:23:44 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-02-24 20:23:44 -0600
commit8a06ca5f6e96636e9349617851dd1b0eb8af1bd8 (patch)
tree4dc4ab184d27a56c1139a593492436f9d5375ac0 /bin/rspec
parentc1f6b0ca96a5593e99a7b9133aff88ade1e38918 (diff)
downloadbundler-8a06ca5f6e96636e9349617851dd1b0eb8af1bd8.tar.gz
Add helper script for running with particular rubygems versions
Diffstat (limited to 'bin/rspec')
-rwxr-xr-xbin/rspec6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rspec b/bin/rspec
index 404da150..388fe573 100755
--- a/bin/rspec
+++ b/bin/rspec
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
+load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
+
require "rubygems"
bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
@@ -8,8 +10,6 @@ bundler_spec.dependencies.each do |dep|
gem dep.name, dep.requirement.to_s
end
-Gem::Specification.unresolved_deps.each do |_name, dep|
- gem dep.name, *dep.requirement
-end
+Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
load Gem.bin_path("rspec-core", "rspec")