summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-01-24 20:19:14 -0800
committerAndre Arko <andre@arko.net>2015-01-25 23:30:18 -0800
commit748d8ec27db1722e0880c9c4aed50c4bca78a77f (patch)
tree776323dd819667fe66b96cd6421480928521e62b /lib/bundler
parent3f4a1ffd717dd62399cf9cd338856ee3aee4b754 (diff)
downloadbundler-748d8ec27db1722e0880c9c4aed50c4bca78a77f.tar.gz
Revert .consolerc (sorry, @andremediros :grimace:)
Rather than adding .consolerc and seeing the surface area of things that Bundler supports continue to grow endlessly, Bundler 2.0 will deprecate the `bundle console` command, and instead add a script to each generated gem that loads `bundler/setup` and then loads the gem. Anyone can then edit that file to run the REPL they want, load the fixtures they want, and everything else, without anything specific to Bundler at all.
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/cli/console.rb1
-rw-r--r--lib/bundler/cli/gem.rb1
-rw-r--r--lib/bundler/templates/newgem/consolerc.tt3
3 files changed, 0 insertions, 5 deletions
diff --git a/lib/bundler/cli/console.rb b/lib/bundler/cli/console.rb
index f52bfb11d8..bc4f377d25 100644
--- a/lib/bundler/cli/console.rb
+++ b/lib/bundler/cli/console.rb
@@ -11,7 +11,6 @@ module Bundler
ARGV.clear
console = get_console(Bundler.settings[:console] || 'irb')
- load '.consolerc' if File.exists?('.consolerc')
console.start
end
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb
index 102a26b6e8..54c4640341 100644
--- a/lib/bundler/cli/gem.rb
+++ b/lib/bundler/cli/gem.rb
@@ -44,7 +44,6 @@ module Bundler
"lib/newgem/version.rb.tt" => "lib/#{namespaced_path}/version.rb",
"LICENSE.txt.tt" => "LICENSE.txt",
"newgem.gemspec.tt" => "#{name}.gemspec",
- "consolerc.tt" => ".consolerc",
"Rakefile.tt" => "Rakefile",
"README.md.tt" => "README.md"
}
diff --git a/lib/bundler/templates/newgem/consolerc.tt b/lib/bundler/templates/newgem/consolerc.tt
deleted file mode 100644
index 7ed81db66d..0000000000
--- a/lib/bundler/templates/newgem/consolerc.tt
+++ /dev/null
@@ -1,3 +0,0 @@
-# This file is automatically loaded when `bundle console` is run. You can add
-# fixtures and/or initialization code here to make experimenting with your gem
-# easier.