diff options
author | Ryan Fitzgerald <rwfitzge@gmail.com> | 2014-03-14 00:00:48 -0700 |
---|---|---|
committer | Ryan Fitzgerald <rwfitzge@gmail.com> | 2014-03-14 00:02:24 -0700 |
commit | 4e1f1d42bc0cc7e878106ab2b03740ff5fe54751 (patch) | |
tree | 4581af3bdf993055d4401fa76e3b1066c8b54b1e /Rakefile | |
parent | 9c3d2899ebf86150b64e0f9ea5a0fd259c5d62f3 (diff) | |
download | pry-4e1f1d42bc0cc7e878106ab2b03740ff5fe54751.tar.gz |
Remove code made obsolete by Bundler dependency
Since 2cdf739baa1a7c1a0aa86649c1b0ca902f9f4bad started always loading
bundler/setup during tests, we can get rid of some manual load path
setup and dependency checking. We should also explicitly add bundler as
a development dependency.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -7,17 +7,6 @@ require 'pry/version' CLOBBER.include('**/*~', '**/*#*', '**/*.log') CLEAN.include('**/*#*', '**/*#*.*', '**/*_flymake*.*', '**/*_flymake', '**/*.rbc', '**/.#*.*') -def check_dependencies - require 'bundler' - Bundler.definition.missing_specs - - eval('nil', TOPLEVEL_BINDING, '<main>') # workaround for issue #395 -rescue LoadError - # if Bundler isn't installed, we'll just assume your setup is ok. -rescue Bundler::GemNotFound - raise RuntimeError, "You're missing one or more required gems. Run `bundle install` first." -end - desc "Set up and run tests" task :default => [:test] @@ -28,7 +17,6 @@ end desc "Run tests" task :test do - check_dependencies unless ENV['SKIP_DEP_CHECK'] paths = if explicit_list = ENV['run'] explicit_list.split(',') @@ -47,7 +35,6 @@ end desc "Run pry (you can pass arguments using _ in place of -)" task :pry do - check_dependencies unless ENV['SKIP_DEP_CHECK'] ARGV.shift if ARGV.first == "pry" ARGV.map! do |arg| arg.sub(/^_*/) { |m| "-" * m.size } |