diff options
-rw-r--r-- | lib/bundler/source/path.rb | 2 | ||||
-rw-r--r-- | spec/cache/path_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 789ec0deb5..0f88c3db14 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -77,7 +77,7 @@ module Bundler def cache(spec, custom_path = nil) app_cache_path = app_cache_path(custom_path) return unless Bundler.settings[:cache_all] - return if expand(@original_path).to_s.index(Bundler.root.to_s + '/') == 0 + return if expand(@original_path).to_s.index(Bundler.root.to_s + "/") == 0 unless @original_path.exist? raise GemNotFound, "Can't cache gem #{version_message(spec)} because #{self} is missing!" diff --git a/spec/cache/path_spec.rb b/spec/cache/path_spec.rb index 752a1ee5f9..82dfce94ba 100644 --- a/spec/cache/path_spec.rb +++ b/spec/cache/path_spec.rb @@ -30,7 +30,7 @@ require "spec_helper" end it "copies when the path is outside the bundle and the paths intersect" do - libname = File.basename(Dir.pwd) + '_gem' + libname = File.basename(Dir.pwd) + "_gem" libpath = File.join(File.dirname(Dir.pwd), libname) build_lib libname, :path => libpath |