diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-15 20:52:48 -0700 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-15 20:52:48 -0700 |
commit | a77ca278809d7f31fa51e4b821faed86324c8275 (patch) | |
tree | da1c6c68b24fdcab9acfc07b6a352a39af1c6f4e /lib/bundler/ui | |
parent | af694073229af89af205d24ff449f51f74316a37 (diff) | |
download | bundler-a77ca278809d7f31fa51e4b821faed86324c8275.tar.gz |
[RuboCop] Enable Style/StringLiterals
Diffstat (limited to 'lib/bundler/ui')
-rw-r--r-- | lib/bundler/ui/rg_proxy.rb | 4 | ||||
-rw-r--r-- | lib/bundler/ui/shell.rb | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/ui/rg_proxy.rb b/lib/bundler/ui/rg_proxy.rb index 6f514be87f..1c9c2deaba 100644 --- a/lib/bundler/ui/rg_proxy.rb +++ b/lib/bundler/ui/rg_proxy.rb @@ -1,5 +1,5 @@ -require 'bundler/ui' -require 'rubygems/user_interaction' +require "bundler/ui" +require "rubygems/user_interaction" module Bundler module UI diff --git a/lib/bundler/ui/shell.rb b/lib/bundler/ui/shell.rb index 9a5fd1d903..92af57756c 100644 --- a/lib/bundler/ui/shell.rb +++ b/lib/bundler/ui/shell.rb @@ -1,4 +1,4 @@ -require 'bundler/vendored_thor' +require "bundler/vendored_thor" module Bundler module UI @@ -12,7 +12,7 @@ module Bundler Thor::Base.shell = Thor::Shell::Basic end @shell = Thor::Base.shell.new - @level = ENV['DEBUG'] ? "debug" : "info" + @level = ENV["DEBUG"] ? "debug" : "info" @warning_history = [] end @@ -95,7 +95,7 @@ module Bundler def strip_leading_spaces(text) spaces = text[/\A\s+/, 0] - spaces ? text.gsub(/#{spaces}/, '') : text + spaces ? text.gsub(/#{spaces}/, "") : text end def word_wrap(text, line_width = @shell.terminal_width) |