diff options
author | Andre Arko <andre@arko.net> | 2015-08-13 21:32:51 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-08-13 21:32:51 -0700 |
commit | 6578473f2c459d7e396b49e7512337f4dbb5387d (patch) | |
tree | 508a8c0d5bec485e50102415bb7e887ae3c4525f | |
parent | 02aa3e6d09778eb67ce74ee81c0ac18ec6bade92 (diff) | |
download | bundler-fix-path-caching-3900.tar.gz |
quotable rubocopfix-path-caching-3900
-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 |