summaryrefslogtreecommitdiff
path: root/lib/bundler/env.rb
diff options
context:
space:
mode:
authordeepj <deepjungle.maca@gmail.com>2015-12-09 17:38:16 +0100
committerdeepj <deepjungle.maca@gmail.com>2015-12-16 01:12:25 +0100
commitf109a129101eb153f329f12c3674f488f72658e1 (patch)
tree55e3392db853137c7d9769439657c057f023ce01 /lib/bundler/env.rb
parent4592851188b0bcec3dac9b002fca4e80ec3018cf (diff)
downloadbundler-f109a129101eb153f329f12c3674f488f72658e1.tar.gz
Better support of Ruby 2.3 with enabled frozen string literal
Diffstat (limited to 'lib/bundler/env.rb')
-rw-r--r--lib/bundler/env.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb
index c6ecdd0f69..be3ca50d52 100644
--- a/lib/bundler/env.rb
+++ b/lib/bundler/env.rb
@@ -11,7 +11,7 @@ module Bundler
print_gemfile = options.delete(:print_gemfile)
print_gemspecs = options.delete(:print_gemspecs)
- out = "Environment\n\n"
+ out = String.new("Environment\n\n")
out << " Bundler #{Bundler::VERSION}\n"
out << " Rubygems #{Gem::VERSION}\n"
out << " Ruby #{ruby_version}"
@@ -62,7 +62,7 @@ module Bundler
end
def ruby_version
- str = "#{RUBY_VERSION}"
+ str = String.new("#{RUBY_VERSION}")
if RUBY_VERSION < "1.9"
str << " (#{RUBY_RELEASE_DATE}"
str << " patchlevel #{RUBY_PATCHLEVEL}" if defined? RUBY_PATCHLEVEL