diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-02-24 20:23:44 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-02-24 20:23:44 -0600 |
commit | 8a06ca5f6e96636e9349617851dd1b0eb8af1bd8 (patch) | |
tree | 4dc4ab184d27a56c1139a593492436f9d5375ac0 /bin/rspec | |
parent | c1f6b0ca96a5593e99a7b9133aff88ade1e38918 (diff) | |
download | bundler-8a06ca5f6e96636e9349617851dd1b0eb8af1bd8.tar.gz |
Add helper script for running with particular rubygems versions
Diffstat (limited to 'bin/rspec')
-rwxr-xr-x | bin/rspec | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") |