From 8c2a667e261da8454ab84d8d600ad77c6be4b4c8 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Thu, 21 Oct 2021 15:57:08 -0700 Subject: [PATCH] iOS Ruby Updates (#32456) Summary: Fix the `scripts/update-ruby.sh` so it always use the correct [bundle config](https://bundler.io/man/bundle-config.1.html#DESCRIPTION). In the current version it wasn't using the correct configuration inside the `template/` directory, resulting in incorrect platform for `template/Gemfile.lock`. While at that, update the gems to their latest version: - ethon 0.14.0 -> 0.15.0 - json 0.5.1 -> 0.6.0 - zeitwerk 2.4.2 -> 2.5.1 - bundler 2.2.28 -> 2.2.29 No changelog Pull Request resolved: https://github.com/facebook/react-native/pull/32456 Test Plan: Run `bump-oss-version.js` and see `template/Gemfile.lock` lists `ruby` as the `PLATFORM` (no diff in that line). - https://github.com/facebook/react-native/commit/e18cf90d71d0bef2e2a0caf30a89e53129152965#r58230816 Reviewed By: yungsters Differential Revision: D31841524 Pulled By: charlesbdudley fbshipit-source-id: 695c245fcb344c866afed45f747e04233e5c91e4 --- Gemfile.lock | 6 +++--- scripts/update-ruby.sh | 3 +++ template/Gemfile.lock | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 94333bbe4a0eb3..e0f260750f1659 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -85,7 +85,7 @@ GEM colored2 (~> 3.1) nanaimo (~> 0.3.0) rexml (~> 3.2.4) - zeitwerk (2.4.2) + zeitwerk (2.5.1) PLATFORMS ruby @@ -94,7 +94,7 @@ DEPENDENCIES cocoapods (~> 1.11, >= 1.11.2) RUBY VERSION - ruby 2.6.3p62 + ruby 2.7.4p191 BUNDLED WITH - 1.17.2 + 2.2.29 diff --git a/scripts/update-ruby.sh b/scripts/update-ruby.sh index a220ad84735996..bb72719c43a376 100755 --- a/scripts/update-ruby.sh +++ b/scripts/update-ruby.sh @@ -55,6 +55,9 @@ sed_i -e "s/^\(ruby '\)[^']*\('.*\)$/\1$VERSION\2/" template/Gemfile rm -f Gemfile.lock template/Gemfile.lock +export BUNDLE_APP_CONFIG="$ROOT/.bundle" +cp "$BUNDLE_APP_CONFIG/"* template/_bundle # sync! + bundle lock (cd template && bundle lock) diff --git a/template/Gemfile.lock b/template/Gemfile.lock index 94333bbe4a0eb3..e0f260750f1659 100644 --- a/template/Gemfile.lock +++ b/template/Gemfile.lock @@ -85,7 +85,7 @@ GEM colored2 (~> 3.1) nanaimo (~> 0.3.0) rexml (~> 3.2.4) - zeitwerk (2.4.2) + zeitwerk (2.5.1) PLATFORMS ruby @@ -94,7 +94,7 @@ DEPENDENCIES cocoapods (~> 1.11, >= 1.11.2) RUBY VERSION - ruby 2.6.3p62 + ruby 2.7.4p191 BUNDLED WITH - 1.17.2 + 2.2.29