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

feat: added strong integer #157

Merged
merged 3 commits into from
Feb 12, 2025
Merged

Conversation

klondaiker
Copy link

What is the purpose of this pull request?

There was a need for a more secure conversion to a integer type

What changes did you make? (overview)

Added new integer type

Checklist

  • I've added tests for this change
  • I've added a Changelog entry
  • I've updated a documentation

Copy link
Owner

@palkan palkan left a comment

Choose a reason for hiding this comment

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

Thanks!

Left a minor (documentation-related) comment. CI failures could be ignored.

README.md Outdated
@@ -711,7 +711,7 @@ CoolConfig.new.port == "443" #=> true

**IMPORTANT**: Values provided explicitly (via attribute writers) are not coerced. Coercion is only happening during the load phase.

The following types are supported out-of-the-box: `:string`, `:integer`, `:float`, `:date`, `:datetime`, `:uri`, `:boolean`.
The following types are supported out-of-the-box: `:string`, `:integer`, `:integer!`, `:float`, `:date`, `:datetime`, `:uri`, `:boolean`.
Copy link
Owner

Choose a reason for hiding this comment

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

Can we add some note on what's the difference between :integer and :integer!?

@palkan
Copy link
Owner

palkan commented Feb 12, 2025

Left a minor (documentation-related) comment.

Nvm, I've fixed this. Merging. Thanks!

@palkan palkan merged commit 7d896e8 into palkan:master Feb 12, 2025
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