diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-12 22:54:28 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-15 15:29:32 +0200 |
commit | b492f83b95fb87f2b4e87c54b6e84f909e7e99a0 (patch) | |
tree | 9e1fe06ccf23b96391c98973b16e2f86a8bdf333 /bin | |
parent | 0dfa6a4234faa9de0337262037a4c7139380f4ee (diff) | |
download | bundler-b492f83b95fb87f2b4e87c54b6e84f909e7e99a0.tar.gz |
Refactor activation errors
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/parallel_rspec | 6 | ||||
-rwxr-xr-x | bin/rake | 6 | ||||
-rwxr-xr-x | bin/ronn | 6 | ||||
-rwxr-xr-x | bin/rspec | 6 | ||||
-rwxr-xr-x | bin/rubocop | 6 |
5 files changed, 5 insertions, 25 deletions
diff --git a/bin/parallel_rspec b/bin/parallel_rspec index 26402aee7c..9783533198 100755 --- a/bin/parallel_rspec +++ b/bin/parallel_rspec @@ -5,8 +5,4 @@ load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"] require_relative "../spec/support/rubygems_ext" -begin - Spec::Rubygems.gem_load("parallel_tests", "parallel_rspec") -rescue Gem::LoadError => e - warn "We couln't activate parallel_tests (#{e.requirement}). Run `gem install parallel_tests:'#{e.requirement}'`" -end +Spec::Rubygems.gem_load("parallel_tests", "parallel_rspec") @@ -5,8 +5,4 @@ load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"] require_relative "../spec/support/rubygems_ext" -begin - Spec::Rubygems.gem_load("rake", "rake") -rescue Gem::LoadError => e - warn "We couln't activate rake (#{e.requirement}). Run `gem install rake:'#{e.requirement}'`" -end +Spec::Rubygems.gem_load("rake", "rake") @@ -5,8 +5,4 @@ load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"] require_relative "../spec/support/rubygems_ext" -begin - Spec::Rubygems.gem_load("ronn", "ronn") -rescue Gem::LoadError => e - warn "We couln't activate ronn (#{e.requirement}). Run `gem install ronn:'#{e.requirement}'`" -end +Spec::Rubygems.gem_load("ronn", "ronn") @@ -5,8 +5,4 @@ load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"] require_relative "../spec/support/rubygems_ext" -begin - Spec::Rubygems.gem_load("rspec-core", "rspec") -rescue Gem::LoadError => e - warn "We couln't activate rspec (#{e.requirement}). Run `gem install rspec:'#{e.requirement}'`" -end +Spec::Rubygems.gem_load("rspec-core", "rspec") diff --git a/bin/rubocop b/bin/rubocop index f700d073ca..818aaf7a9d 100755 --- a/bin/rubocop +++ b/bin/rubocop @@ -5,8 +5,4 @@ load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"] require_relative "../spec/support/rubygems_ext" -begin - Spec::Rubygems.gem_load("rubocop", "rubocop") -rescue Gem::LoadError => e - warn "We couln't activate rubocop (#{e.requirement}). Run `gem install rubocop:'#{e.requirement}'`" -end +Spec::Rubygems.gem_load("rubocop", "rubocop") |