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

Fix DB resources error #593

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alpineriveredge
Copy link
Contributor

DB resources such as "rds_db_cluster" has a below error.
"uninitialized constant Awspec::Type::RdsDBCluster"

This error is caused by "dry-inflector" v1.1.0 update.

DB resources such as "rds_db_cluster" has a below error.
"uninitialized constant Awspec::Type::RdsDBCluster"

This error is caused by "dry-inflector" v1.1.0 update.
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'addressable'
spec.add_runtime_dependency 'awsecrets', '~> 1'
spec.add_runtime_dependency 'aws-sdk', '~> 3'
spec.add_runtime_dependency 'dry-inflector'
spec.add_runtime_dependency 'dry-inflector', '>= 1.1'
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of requiring >= 1.1 we could require >= 0.1.2, (keeping support for older ruby versions), and then replace instances of Dry::Inflector.new in https://github.com/k1LoW/awspec/blob/7c19ade77e372bcc4a74bdfbbca85c030dcd1377/lib/awspec/ext/string.rb with

Dry::Inflector.new { |inflections| inflections.acronym 'DB' }

It would add DB as an acronym to the older versions that didn't have it as a default. (Versions older than 0.1.2 don't support doing this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately, there's no mechanism to remove a default as discussed here. dry-rb/dry-inflector#44

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