Skip to content

Conversation

@ojab
Copy link
Contributor

@ojab ojab commented Apr 21, 2025

More or less

  1. Fixup RSpec and add it to CI
  2. Test all supported ruby versions

See commit messages for the details.

No idea why Facebook GitHub Tools / Meta Import Checks fails, the single added file is .rspec, but maybe it's some changed file.

ojab added 7 commits April 21, 2025 20:26
Just to prevent stray changes in the next commits
We're not supporting rubies < 3.0 and 3.0 ships with bundler-2, so
current CI setup is unrealistic and also break newer ruby versions.

Just use default bundler instead.
Speed up ruby setup a little
Workaround `money` gem issue, see [0]

[0] RubyMoney/money@815b618
`irb`, `logger` & `ostruct` are used by SDK and was moved from default
to bundled gems in ruby-3.5 [0]. Add them to the gemspec to fix
compatibility.

We're using `head` in CI instead of `3.5` because it's closer to the
final version, see [1]

No `continue-on-error` because we're only testing `gem build` for now,
which should work with `head` no matter what. Could be skipped later
if needed.

Fixes facebook#220

[0] https://bugs.ruby-lang.org/issues/20309
[1] ruby/ruby-builder#4 (comment)
Minor ruby-3 kwarg issues, api changes and Symbol/String confusions
wrt Hash keys.

The single issue in the code is `FacebookAds::ServerSide::Event`,
where normalization is not performed when it should be.

Fixes 02c4351
Fixes 38f9a07
Fixes facebook#194
@ojab ojab marked this pull request as ready for review April 21, 2025 20:29
@facebook-github-bot
Copy link

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

@ojab
Copy link
Contributor Author

ojab commented Apr 25, 2025

@stcheng any hint what's need to be fixed to pass internal checks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants