aboutsummaryrefslogtreecommitdiffstats
path: root/exe/bundle
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-01-31 11:29:09 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-01-31 22:22:06 -0600
commit7ae072865e3fc23d9844322dde6ad0f6906e3f2c (patch)
tree2133b2f27e243af2d8beda66f19b2f1086685a0e /exe/bundle
parentb1afbe3a2ff7623c9a0e8504bc85af4bd8156059 (diff)
downloadbundler-7ae072865e3fc23d9844322dde6ad0f6906e3f2c.tar.gz
Compatibility with frozen string literals
Diffstat (limited to 'exe/bundle')
-rwxr-xr-xexe/bundle4
1 files changed, 3 insertions, 1 deletions
diff --git a/exe/bundle b/exe/bundle
index a6068daa..3fb4ccfc 100755
--- a/exe/bundle
+++ b/exe/bundle
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
# Exit cleanly from an early interrupt
Signal.trap("INT") { exit 1 }
@@ -7,7 +8,8 @@ require "bundler"
# Check if an older version of bundler is installed
$LOAD_PATH.each do |path|
next unless path =~ %r{/bundler-0\.(\d+)} && $1.to_i < 9
- err = "Looks like you have a version of bundler that's older than 0.9.\n"
+ err = String.new
+ err << "Looks like you have a version of bundler that's older than 0.9.\n"
err << "Please remove your old versions.\n"
err << "An easy way to do this is by running `gem cleanup bundler`."
abort(err)