summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/open.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/open.rb
parentaf694073229af89af205d24ff449f51f74316a37 (diff)
downloadbundler-a77ca278809d7f31fa51e4b821faed86324c8275.tar.gz
[RuboCop] Enable Style/StringLiterals
Diffstat (limited to 'lib/bundler/cli/open.rb')
-rw-r--r--lib/bundler/cli/open.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/cli/open.rb b/lib/bundler/cli/open.rb
index 474eec433b..b6bfda4d25 100644
--- a/lib/bundler/cli/open.rb
+++ b/lib/bundler/cli/open.rb
@@ -1,5 +1,5 @@
-require 'bundler/cli/common'
-require 'shellwords'
+require "bundler/cli/common"
+require "shellwords"
module Bundler
class CLI::Open
@@ -10,12 +10,12 @@ module Bundler
end
def run
- editor = [ENV['BUNDLER_EDITOR'], ENV['VISUAL'], ENV['EDITOR']].find{|e| !e.nil? && !e.empty? }
+ editor = [ENV["BUNDLER_EDITOR"], ENV["VISUAL"], ENV["EDITOR"]].find{|e| !e.nil? && !e.empty? }
return Bundler.ui.info("To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR") unless editor
path = Bundler::CLI::Common.select_spec(name, :regex_match).full_gem_path
Dir.chdir(path) do
command = Shellwords.split(editor) + [path]
- system(*command) || Bundler.ui.info("Could not run '#{command.join(' ')}'")
+ system(*command) || Bundler.ui.info("Could not run '#{command.join(" ")}'")
end
end
end