Created
February 10, 2026 14:56
-
-
Save jaynetics/be8aa42b04abf6f2ca28d0f6d39d8e41 to your computer and use it in GitHub Desktop.
changes needed to make growthbook ruby work on ruby 4.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Gemfile.lock b/Gemfile.lock | |
| index 0cbbd78..e250672 100644 | |
| --- a/Gemfile.lock | |
| +++ b/Gemfile.lock | |
| @@ -2,53 +2,55 @@ PATH | |
| remote: . | |
| specs: | |
| growthbook (1.3.0) | |
| + base64 | |
| GEM | |
| remote: https://rubygems.org/ | |
| specs: | |
| - addressable (2.8.4) | |
| - public_suffix (>= 2.0.2, < 6.0) | |
| - crack (0.4.5) | |
| + addressable (2.8.8) | |
| + public_suffix (>= 2.0.2, < 8.0) | |
| + base64 (0.3.0) | |
| + bigdecimal (4.0.1) | |
| + crack (1.0.1) | |
| + bigdecimal | |
| rexml | |
| - diff-lcs (1.4.4) | |
| - docile (1.4.0) | |
| - hashdiff (1.0.1) | |
| - public_suffix (4.0.7) | |
| - rexml (3.2.5) | |
| - rspec (3.10.0) | |
| - rspec-core (~> 3.10.0) | |
| - rspec-expectations (~> 3.10.0) | |
| - rspec-mocks (~> 3.10.0) | |
| - rspec-core (3.10.0) | |
| - rspec-support (~> 3.10.0) | |
| - rspec-expectations (3.10.0) | |
| + diff-lcs (1.6.2) | |
| + docile (1.4.1) | |
| + hashdiff (1.2.1) | |
| + public_suffix (7.0.2) | |
| + rexml (3.4.4) | |
| + rspec (3.13.2) | |
| + rspec-core (~> 3.13.0) | |
| + rspec-expectations (~> 3.13.0) | |
| + rspec-mocks (~> 3.13.0) | |
| + rspec-core (3.13.6) | |
| + rspec-support (~> 3.13.0) | |
| + rspec-expectations (3.13.5) | |
| diff-lcs (>= 1.2.0, < 2.0) | |
| - rspec-support (~> 3.10.0) | |
| - rspec-its (1.3.0) | |
| + rspec-support (~> 3.13.0) | |
| + rspec-its (1.3.1) | |
| rspec-core (>= 3.0.0) | |
| rspec-expectations (>= 3.0.0) | |
| - rspec-mocks (3.10.0) | |
| + rspec-mocks (3.13.7) | |
| diff-lcs (>= 1.2.0, < 2.0) | |
| - rspec-support (~> 3.10.0) | |
| - rspec-support (3.10.0) | |
| - simplecov (0.21.2) | |
| + rspec-support (~> 3.13.0) | |
| + rspec-support (3.13.7) | |
| + simplecov (0.22.0) | |
| docile (~> 1.1) | |
| simplecov-html (~> 0.11) | |
| simplecov_json_formatter (~> 0.1) | |
| - simplecov-html (0.12.3) | |
| + simplecov-html (0.13.2) | |
| simplecov-shields-badge (0.1.0) | |
| simplecov (~> 0.15) | |
| - simplecov_json_formatter (0.1.3) | |
| - webmock (3.18.1) | |
| + simplecov_json_formatter (0.1.4) | |
| + webmock (3.26.1) | |
| addressable (>= 2.8.0) | |
| crack (>= 0.3.2) | |
| hashdiff (>= 0.4.0, < 2.0.0) | |
| PLATFORMS | |
| - arm64-darwin-22 | |
| - x86_64-darwin-20 | |
| - x86_64-darwin-21 | |
| - x86_64-linux | |
| + arm64-darwin-24 | |
| + ruby | |
| DEPENDENCIES | |
| growthbook! | |
| @@ -58,5 +60,28 @@ DEPENDENCIES | |
| simplecov-shields-badge (~> 0.1.0) | |
| webmock (~> 3.18) | |
| +CHECKSUMS | |
| + addressable (2.8.8) sha256=7c13b8f9536cf6364c03b9d417c19986019e28f7c00ac8132da4eb0fe393b057 | |
| + base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b | |
| + bigdecimal (4.0.1) sha256=8b07d3d065a9f921c80ceaea7c9d4ae596697295b584c296fe599dd0ad01c4a7 | |
| + crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e | |
| + diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962 | |
| + docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e | |
| + growthbook (1.3.0) | |
| + hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1 | |
| + public_suffix (7.0.2) sha256=9114090c8e4e7135c1fd0e7acfea33afaab38101884320c65aaa0ffb8e26a857 | |
| + rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142 | |
| + rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587 | |
| + rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d | |
| + rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836 | |
| + rspec-its (1.3.1) sha256=c404314f933ffd5ef6e2cfa87167e272477a7007467db5ec59c96ad1679c51f6 | |
| + rspec-mocks (3.13.7) sha256=0979034e64b1d7a838aaaddf12bf065ea4dc40ef3d4c39f01f93ae2c66c62b1c | |
| + rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c | |
| + simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5 | |
| + simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246 | |
| + simplecov-shields-badge (0.1.0) sha256=436321937a3929f016018a4a4c55865beb987b0d84871021308b8a0697937da4 | |
| + simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428 | |
| + webmock (3.26.1) sha256=4f696fb57c90a827c20aadb2d4f9058bbff10f7f043bd0d4c3f58791143b1cd7 | |
| + | |
| BUNDLED WITH | |
| - 2.2.2 | |
| + 4.0.3 | |
| diff --git a/growthbook.gemspec b/growthbook.gemspec | |
| index 023771a..a3e950e 100644 | |
| --- a/growthbook.gemspec | |
| +++ b/growthbook.gemspec | |
| @@ -13,6 +13,8 @@ Gem::Specification.new do |s| | |
| s.require_paths = ['lib'] | |
| s.required_ruby_version = '>= 2.5.0' | |
| + s.add_dependency 'base64' | |
| + | |
| s.add_development_dependency 'rspec', '~> 3.2' | |
| s.add_development_dependency 'rspec-its', '~> 1.3' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment