Skip to content

Commit b1735bc

Browse files
okwasniewskifacebook-github-bot
authored andcommitted
fix: make React native compatible with Ruby 3.4.0 (#49293)
Summary: Hey, This PR fixes compatibility with Ruby 3.4.0 as it removed some libraries from the standard library. When installing pods I encountered this error: ![CleanShot 2025-02-10 at 11 26 20@2x](https://github.com/user-attachments/assets/7f7dc302-7f54-45dc-a4d9-9f011d5cc003) After adding those dependencies, the error is gone: ![CleanShot 2025-02-10 at 11 27 01@2x](https://github.com/user-attachments/assets/386315d4-c6bd-4722-b63d-61ec1f44846f) ## Changelog: [IOS] [FIXED] - Compatibility with Ruby 3.4.0 Pull Request resolved: #49293 Test Plan: Install pods on Ruby 3.4 Reviewed By: vzaidman Differential Revision: D69397346 Pulled By: cipolleschi fbshipit-source-id: 2e29c0529e5342b8d29f2d296bd11802cb5a2885
1 parent 1cfc53b commit b1735bc

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ gem 'cocoapods', '~> 1.13', '!= 1.15.0', '!= 1.15.1'
77
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
88
gem 'xcodeproj', '< 1.26.0'
99
gem 'concurrent-ruby', '<= 1.3.4'
10+
11+
# Ruby 3.4.0 has removed some libraries from the standard library.
12+
gem 'bigdecimal'
13+
gem 'logger'
14+
gem 'benchmark'
15+
gem 'mutex_m'

Gemfile.lock

+10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ GEM
1414
httpclient (~> 2.8, >= 2.8.3)
1515
json (>= 1.5.1)
1616
atomos (0.1.3)
17+
benchmark (0.4.0)
18+
bigdecimal (3.1.9)
1719
claide (1.1.0)
1820
cocoapods (1.14.2)
1921
addressable (~> 2.8)
@@ -65,8 +67,10 @@ GEM
6567
i18n (1.14.1)
6668
concurrent-ruby (~> 1.0)
6769
json (2.6.3)
70+
logger (1.6.5)
6871
minitest (5.20.0)
6972
molinillo (0.8.0)
73+
mutex_m (0.3.0)
7074
nanaimo (0.3.0)
7175
nap (1.1.0)
7276
netrc (0.11.0)
@@ -90,7 +94,13 @@ PLATFORMS
9094

9195
DEPENDENCIES
9296
activesupport (>= 6.1.7.5, < 7.1.0)
97+
benchmark
98+
bigdecimal
9399
cocoapods (~> 1.13, != 1.15.1, != 1.15.0)
100+
concurrent-ruby (<= 1.3.4)
101+
logger
102+
mutex_m
103+
xcodeproj (< 1.26.0)
94104

95105
RUBY VERSION
96106
ruby 3.2.0p0

packages/helloworld/Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ gem 'cocoapods', '~> 1.13', '!= 1.15.0', '!= 1.15.1'
66
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
77
gem 'xcodeproj', '< 1.26.0'
88
gem 'concurrent-ruby', '<= 1.3.4'
9+
10+
# Ruby 3.4.0 has removed some libraries from the standard library.
11+
gem 'bigdecimal'
12+
gem 'logger'
13+
gem 'benchmark'
14+
gem 'mutex_m'

packages/helloworld/Gemfile.lock

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ GEM
1717
json (>= 1.5.1)
1818
atomos (0.1.3)
1919
base64 (0.2.0)
20+
benchmark (0.4.0)
21+
bigdecimal (3.1.9)
2022
claide (1.1.0)
2123
cocoapods (1.15.2)
2224
addressable (~> 2.8)
@@ -68,8 +70,10 @@ GEM
6870
i18n (1.14.5)
6971
concurrent-ruby (~> 1.0)
7072
json (2.7.2)
73+
logger (1.6.5)
7174
minitest (5.25.1)
7275
molinillo (0.8.0)
76+
mutex_m (0.3.0)
7377
nanaimo (0.3.0)
7478
nap (1.1.0)
7579
netrc (0.11.0)
@@ -96,8 +100,12 @@ PLATFORMS
96100

97101
DEPENDENCIES
98102
activesupport (>= 6.1.7.5, < 7.1.0)
103+
benchmark
104+
bigdecimal
99105
cocoapods (~> 1.13, != 1.15.1, != 1.15.0)
100106
concurrent-ruby (<= 1.3.4)
107+
logger
108+
mutex_m
101109
xcodeproj (< 1.26.0)
102110

103111
RUBY VERSION

packages/rn-tester/Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ gem 'rexml'
1010
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
1111
gem 'xcodeproj', '< 1.26.0'
1212
gem 'concurrent-ruby', '<= 1.3.4'
13+
14+
# Ruby 3.4.0 has removed some libraries from the standard library.
15+
gem 'bigdecimal'
16+
gem 'logger'
17+
gem 'benchmark'
18+
gem 'mutex_m'

0 commit comments

Comments
 (0)