diff options
author | Zach Ahn <engineering@zachahn.com> | 2017-03-05 17:27:25 -0500 |
---|---|---|
committer | Zach Ahn <engineering@zachahn.com> | 2017-03-05 21:07:48 -0500 |
commit | 49fc3ac01603626a53a2643b24e0805e0320e487 (patch) | |
tree | eb375cb6688ba2bcb1121cf0182289c275e2985d | |
parent | 656df074d4903abef9eac933cc2c28ec961f060b (diff) | |
download | bundler-49fc3ac01603626a53a2643b24e0805e0320e487.tar.gz |
Swap single to double quotes for standalone binstubs
-rw-r--r-- | lib/bundler/templates/Executable.standalone | 8 | ||||
-rw-r--r-- | spec/commands/binstubs_spec.rb | 2 | ||||
-rw-r--r-- | spec/install/gems/standalone_spec.rb | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler/templates/Executable.standalone b/lib/bundler/templates/Executable.standalone index c114afe337..af56385200 100644 --- a/lib/bundler/templates/Executable.standalone +++ b/lib/bundler/templates/Executable.standalone @@ -6,9 +6,9 @@ # this file is here to facilitate running it. # -require 'pathname' +require "pathname" path = Pathname.new(__FILE__) -$:.unshift File.expand_path '../<%= standalone_path %>', path.realpath +$:.unshift File.expand_path "../<%= standalone_path %>", path.realpath -require 'bundler/setup' -load File.expand_path '../<%= executable_path %>', path.realpath +require "bundler/setup" +load File.expand_path "../<%= executable_path %>", path.realpath diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb index 9bb4f2a73d..cb0999348e 100644 --- a/spec/commands/binstubs_spec.rb +++ b/spec/commands/binstubs_spec.rb @@ -157,7 +157,7 @@ RSpec.describe "bundle binstubs <gem>" do it "includes the standalone path" do bundle "binstubs rack --standalone" standalone_line = File.read(bundled_app("bin/rackup")).each_line.find {|line| line.include? "$:.unshift" }.strip - expect(standalone_line).to eq "$:.unshift File.expand_path '../../bundle', path.realpath" + expect(standalone_line).to eq %($:.unshift File.expand_path "../../bundle", path.realpath) end end diff --git a/spec/install/gems/standalone_spec.rb b/spec/install/gems/standalone_spec.rb index e1bc0a3d1a..496844ae14 100644 --- a/spec/install/gems/standalone_spec.rb +++ b/spec/install/gems/standalone_spec.rb @@ -298,7 +298,7 @@ RSpec.shared_examples "bundle install --standalone" do it "creates stubs with the correct load path" do extension_line = File.read(bundled_app("bin/rails")).each_line.find {|line| line.include? "$:.unshift" }.strip - expect(extension_line).to eq "$:.unshift File.expand_path '../../bundle', path.realpath" + expect(extension_line).to eq %($:.unshift File.expand_path "../../bundle", path.realpath) end end end |