joshuaflanagan / serverless-ruby-package

serverless plugin to package ruby gems
39 stars 11 forks source link

Add ruby 3.3 runtime support #57

Closed dgarbus closed 5 months ago

dgarbus commented 5 months ago

AWS recently added support for Ruby 3.3. In testing this plugin, I discovered that it did not support Ruby 3.3, but only because there was a switch statement that limits the ruby version to either 3.2 or 2.7 (we are not using Docker for compiling native extensions).

Adding support for ruby 3.3 required the following changes:

Local test results:

yarn run v1.22.4
$ jest
 PASS  __tests__/index.test.js
  ✓ captures the serverless configuration (1ms)
  ✓ captures the options
  ✓ hooks in before packaging deployment artifacts
  ✓ hooks in before packaging an individual function (1ms)
  ✓ disables 'Excluding development dependencies', which only applies to node projects (432ms)
  ✓ forces whitelisting files to package by excluding all files by default (365ms)
  ✓ include the bundler standalone files (392ms)
  ✓ preserve the includes specified in serverless configuration (368ms)
  ✓ include files for each gem needed by default bundler group - excluding .git/test files (368ms)

Test Suites: 1 passed, 1 total
Tests:       9 passed, 9 total
Snapshots:   0 total
Time:        2.438s, estimated 3s
Ran all test suites.
✨  Done in 3.62s.

Since the integration tests produce a lot of output, I've included those results as a text file attachment: ruby_3.3_integration_test_output.txt.