summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 19:19:31 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:30:00 +0900
commit267a72be800da0ec47f441d7d8210dc6aec137af (patch)
tree800fc3da598bbe32a9a5644193134e4a2355a036 /lib
parente84e63230bd024b652451cb7d1a44b9d9e0449ae (diff)
downloadruby-267a72be800da0ec47f441d7d8210dc6aec137af.tar.gz
[bundler/bundler] Enable `Style/UnneededInterpolation` cop
https://github.com/bundler/bundler/commit/4c6a3c3cf7
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/config.rb2
-rw-r--r--lib/bundler/env.rb2
-rw-r--r--lib/bundler/shared_helpers.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/cli/config.rb b/lib/bundler/cli/config.rb
index 1df2a55d9a..78e035aa02 100644
--- a/lib/bundler/cli/config.rb
+++ b/lib/bundler/cli/config.rb
@@ -114,7 +114,7 @@ module Bundler
else
Bundler.ui.confirm "Settings are listed in order of priority. The top value will be used.\n"
Bundler.settings.all.each do |setting|
- Bundler.ui.confirm "#{setting}"
+ Bundler.ui.confirm setting
show_pretty_values_for(setting)
Bundler.ui.confirm ""
end
diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb
index a08db08aa0..17624b4fe9 100644
--- a/lib/bundler/env.rb
+++ b/lib/bundler/env.rb
@@ -69,7 +69,7 @@ module Bundler
end
def self.ruby_version
- str = String.new("#{RUBY_VERSION}")
+ str = String.new(RUBY_VERSION)
str << "p#{RUBY_PATCHLEVEL}" if defined? RUBY_PATCHLEVEL
str << " (#{RUBY_RELEASE_DATE} revision #{RUBY_REVISION}) [#{RUBY_PLATFORM}]"
end
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index 94eb866f2b..b7e2af29c4 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -309,7 +309,7 @@ module Bundler
rubyopt = [ENV["RUBYOPT"]].compact
setup_require = "-r#{File.expand_path("setup", __dir__)}"
return if !rubyopt.empty? && rubyopt.first =~ /#{setup_require}/
- rubyopt.unshift %(#{setup_require})
+ rubyopt.unshift setup_require
Bundler::SharedHelpers.set_env "RUBYOPT", rubyopt.join(" ")
end