From 6578473f2c459d7e396b49e7512337f4dbb5387d Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Thu, 13 Aug 2015 21:32:51 -0700 Subject: quotable rubocop --- lib/bundler/source/path.rb | 2 +- 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 -- cgit v1.2.1