From 3ac2567ac42e7b095ea9c63f66dba316e3bd2de2 Mon Sep 17 00:00:00 2001 From: Charlie Scheer Date: Wed, 10 Apr 2024 16:00:44 -0600 Subject: [PATCH 1/2] Updated rake file to remove bundle install --path depreciation notice --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 90e33d248..f0f2b7941 100644 --- a/Rakefile +++ b/Rakefile @@ -12,6 +12,7 @@ XCODE_WORKSPACE = 'Simplenote.xcworkspace' XCODE_SCHEME = 'Simplenote' XCODE_CONFIGURATION = 'Debug' PROJECT_DIR = __dir__ +LOCAL_PATH = "vendor/bundle" task default: %w[test] @@ -37,7 +38,8 @@ namespace :dependencies do namespace :bundle do task :check do - sh 'bundle check --path=${BUNDLE_PATH:-vendor/bundle} > /dev/null', verbose: false do |ok, _res| + sh "bundle config set --local path #{LOCAL_PATH} > /dev/null", verbose: false + sh 'bundle check > /dev/null', verbose: false do |ok, _res| next if ok # bundle check exits with a non zero code if install is needed @@ -48,7 +50,7 @@ namespace :dependencies do task :install do fold('install.bundler') do - sh 'bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}' + sh 'bundle install --jobs=3 --retry=3' end end CLOBBER << 'vendor/bundle' From f0ef716c695775b4cb1718fe922abda3cd1167e4 Mon Sep 17 00:00:00 2001 From: Charlie Scheer Date: Wed, 10 Apr 2024 16:09:59 -0600 Subject: [PATCH 2/2] Fixed double quote formatting in rake file where not needed --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index f0f2b7941..7f01843cd 100644 --- a/Rakefile +++ b/Rakefile @@ -12,7 +12,7 @@ XCODE_WORKSPACE = 'Simplenote.xcworkspace' XCODE_SCHEME = 'Simplenote' XCODE_CONFIGURATION = 'Debug' PROJECT_DIR = __dir__ -LOCAL_PATH = "vendor/bundle" +LOCAL_PATH = 'vendor/bundle' task default: %w[test]