summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/cli/issue.rb2
-rw-r--r--lib/bundler/env.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/cli/issue.rb b/lib/bundler/cli/issue.rb
index c9d653296c..ace0f985a9 100644
--- a/lib/bundler/cli/issue.rb
+++ b/lib/bundler/cli/issue.rb
@@ -26,7 +26,7 @@ module Bundler
EOS
- Bundler.ui.info Bundler::Env.new.report(:print_gemfile => true)
+ Bundler.ui.info Bundler::Env.new.report
Bundler.ui.info "\n## Bundle Doctor"
doctor
diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb
index 7e9bcc2866..284cc2ff30 100644
--- a/lib/bundler/env.rb
+++ b/lib/bundler/env.rb
@@ -5,12 +5,12 @@ require "bundler/source/git/git_proxy"
module Bundler
class Env
def write(io)
- io.write report(:print_gemfile => true, :print_gemspecs => true)
+ io.write report
end
def report(options = {})
- print_gemfile = options.delete(:print_gemfile)
- print_gemspecs = options.delete(:print_gemspecs)
+ print_gemfile = options.delete(:print_gemfile) { true }
+ print_gemspecs = options.delete(:print_gemspecs) { true }
out = String.new("## Environment\n\n```\n")
out << "Bundler #{Bundler::VERSION}\n"