Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Ruby Updates #32456

Closed
wants to merge 2 commits into from
Closed

iOS Ruby Updates #32456

wants to merge 2 commits into from

Conversation

barbieri
Copy link
Contributor

Summary

Fix the scripts/update-ruby.sh so it always use the correct bundle config. 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

Changelog

No changelog

Test Plan

Run bump-oss-version.js and see template/Gemfile.lock lists ruby as the PLATFORM (no diff in that line).

References

Rubygem's bundle will only use config as described in:
https://bundler.io/man/bundle-config.1.html#DESCRIPTION

1. Local config (<project_root>/.bundle/config or $BUNDLE_APP_CONFIG/config)
2. Environmental variables (ENV)
3. Global config (~/.bundle/config)

While in the root directory it was using the facebook#1 (.bundle/config), in
the template it wasn't since the folder is `_bundle` (underscore, not
a leading dot).

This commit makes sure the desired config is used, also takes care to
sync both configuration files, copying the root to the template.
Also fix template/Gemfile.lock PLATFORM, it should be "ruby" and not
specific to ARM64/BigSur.

This was done by calling: ./scripts/update-ruby.sh
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 21, 2021
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 21, 2021
@pull-bot
Copy link

Messages
📖

📋 Verify Changelog Format - A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

CATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

Generated by 🚫 dangerJS against 92c6172

@pull-bot
Copy link

PR build artifact for 92c6172 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,310,774 +0
android hermes armeabi-v7a 7,874,906 +0
android hermes x86 8,677,823 +0
android hermes x86_64 8,636,975 +0
android jsc arm64-v8a 9,812,980 +0
android jsc armeabi-v7a 8,773,920 +0
android jsc x86 9,761,892 +0
android jsc x86_64 10,362,753 +0

Base commit: eccbf9b
Branch: main

@facebook-github-bot
Copy link
Contributor

@charlesbdudley has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 7b77cc6
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 21, 2021
@facebook-github-bot
Copy link
Contributor

@charlesbdudley merged this pull request in 1e6add1.

@barbieri barbieri deleted the ios-ruby-updates branch October 22, 2021 02:17
lunaleaps pushed a commit that referenced this pull request Oct 22, 2021
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: #32456

Test Plan:
Run `bump-oss-version.js` and see `template/Gemfile.lock` lists `ruby` as the `PLATFORM` (no diff in that line).

 - e18cf90#r58230816

Reviewed By: yungsters

Differential Revision: D31841524

Pulled By: charlesbdudley

fbshipit-source-id: 695c245fcb344c866afed45f747e04233e5c91e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants