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

Update dependencies #48

Merged
merged 4 commits into from
Jan 9, 2025
Merged

Update dependencies #48

merged 4 commits into from
Jan 9, 2025

Conversation

stenlarsson
Copy link
Contributor

@stenlarsson stenlarsson commented Jan 8, 2025

Currently the requirement of aws-sdk-cloudformation is ~> 1.67.0 which prevents upgrading to 1.68.0 and later in projects where cuffsert is a dependency.

This relaxes the requirement to ~> 1.67. Same for aws-sdk-s3.

This tests with the latest version Ruby, which is currently 3.4.1. This also removes Gemfile.lock, since it should not be under version control, since it enforces precision that does not exist in the gemspec. This makes it possible that different versions are used when testing with Ruby 2.x and 3.x.

The method File.exists? has been deprecated since Ruby 2.2.0, and was finally removed in 3.2.0.

Since Ruby 3.4.0, the gem base64 is a "bundled" gem, instead of a "default" gem, and needs to be added to the Gemfile. It is used in the aws-sdk-cloudformation gem, but they have not added it as a dependency to not break running older versions of Ruby, see aws/aws-sdk-ruby#2984. Therefore we don't add it as a runtime dependency here either.

Similar situation with logger which will be removed in Ruby 3.5.0.

Currently the requirement of `aws-sdk-cloudformation` is `~> 1.67.0` which prevents upgrading to 1.68.0 and later in projects where cuffsert is a dependency.

This relaxes the requirement to `~> 1.67`. Same for `aws-sdk-s3`.
@stenlarsson stenlarsson self-assigned this Jan 8, 2025
This tests with the latest version Ruby, which is currently 3.4.1

This also removes Gemfile.lock, since it should not be under version control, since it enforces precision that does not exist in the gemspec.
The method `File.exists?` has been deprecated since Ruby 2.2.0, and was finally removed in 3.2.0.
Since Ruby 3.4, the gem `base64` is a "bundled" gem, instead of a "default" gem, and needs to be added to the Gemfile.

It is used in the `aws-sdk-cloudformation` gem, but they have not added it as a dependency to not break running older versions of Ruby, therefore we don't add it as a runtime dependency here either.

Similar situation with `logger` which will be removed in Ruby 3.5.
Copy link
Collaborator

@bittrance bittrance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Seems reasonable.

@bittrance bittrance merged commit 87b0fd2 into master Jan 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants