summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/console.rb
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-07-15 20:52:48 -0700
committerSamuel E. Giddins <segiddins@segiddins.me>2015-07-15 20:52:48 -0700
commita77ca278809d7f31fa51e4b821faed86324c8275 (patch)
treeda1c6c68b24fdcab9acfc07b6a352a39af1c6f4e /lib/bundler/cli/console.rb
parentaf694073229af89af205d24ff449f51f74316a37 (diff)
downloadbundler-a77ca278809d7f31fa51e4b821faed86324c8275.tar.gz
[RuboCop] Enable Style/StringLiterals
Diffstat (limited to 'lib/bundler/cli/console.rb')
-rw-r--r--lib/bundler/cli/console.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/cli/console.rb b/lib/bundler/cli/console.rb
index 92bf848b47..7c7010e7cf 100644
--- a/lib/bundler/cli/console.rb
+++ b/lib/bundler/cli/console.rb
@@ -10,7 +10,7 @@ module Bundler
group ? Bundler.require(:default, *(group.split.map!(&:to_sym))) : Bundler.require
ARGV.clear
- console = get_console(Bundler.settings[:console] || 'irb')
+ console = get_console(Bundler.settings[:console] || "irb")
console.start
end
@@ -19,14 +19,14 @@ module Bundler
get_constant(name)
rescue LoadError
Bundler.ui.error "Couldn't load console #{name}"
- get_constant('irb')
+ get_constant("irb")
end
def get_constant(name)
const_name = {
- 'pry' => :Pry,
- 'ripl' => :Ripl,
- 'irb' => :IRB,
+ "pry" => :Pry,
+ "ripl" => :Ripl,
+ "irb" => :IRB,
}[name]
Object.const_get(const_name)
rescue NameError