Skip to content

Add ruby types support#61

Merged
kindoflew merged 2 commits intomainfrom
add-support-ruby-types
May 23, 2022
Merged

Add ruby types support#61
kindoflew merged 2 commits intomainfrom
add-support-ruby-types

Conversation

@JuanVqz
Copy link
Copy Markdown
Member

@JuanVqz JuanVqz commented May 10, 2022

Closes #8

IMPORTANT: Please read the README before submitting pull requests for this project. Additionally, if your PR closes any open GitHub issues, make sure you include Closes #XXXX

  • Add an entry to CHANGELOG.md that links to this PR under the "main (unreleased)" heading.

Description:

  • Add Integer, Float, String, Boolean, and UUID types support
  • Add tests
  • Fix some comments

I will abide by the code of conduct.

@JuanVqz JuanVqz force-pushed the add-support-ruby-types branch from 05a430d to 3a6be8c Compare May 10, 2022 22:03
@JuanVqz JuanVqz requested a review from kindoflew May 10, 2022 22:04
Closes #8

- [x] Add Integer, Float, String, Email, Url, Boolean, and Uuid support
- [x] Add tests
- [x] Fix some comments

**I will abide by the [code of conduct](https://github.com/fastruby/dotenv_checker/blob/main/CODE_OF_CONDUCT.md)**
@JuanVqz JuanVqz force-pushed the add-support-ruby-types branch from 3a6be8c to 0a3f262 Compare May 10, 2022 22:05
Copy link
Copy Markdown
Contributor

@arielj arielj left a comment

Choose a reason for hiding this comment

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

hey @JuanVqz I added some comment, this is also missing an update of the README to show the new values supported for the different formats

Comment thread lib/dotenv_validator.rb Outdated
Comment thread lib/dotenv_validator.rb Outdated
Comment thread lib/dotenv_validator.rb Outdated
Comment thread lib/dotenv_validator.rb Outdated
Comment thread lib/dotenv_validator.rb Outdated
@JuanVqz
Copy link
Copy Markdown
Member Author

JuanVqz commented May 12, 2022

@arielj what about Uuid? should I remove it or add UUID instead of Uuid?

Also Boolean doesn't exist in ruby, is okay that I add Boolean, right?

@JuanVqz JuanVqz force-pushed the add-support-ruby-types branch 2 times, most recently from a672bf9 to 8b9c17d Compare May 12, 2022 20:20
@kindoflew kindoflew requested a review from arielj May 16, 2022 22:48
@kindoflew
Copy link
Copy Markdown
Contributor

@arielj -- ping for re-review. thanks! :shipit:

@arielj
Copy link
Copy Markdown
Contributor

arielj commented May 17, 2022

@JuanVqz I think it should be UUID since that's the class name in Ruby (also Uuid looks bad, it's UUID or uuid everywhere, not just ruby). I guess we can leave Boolean since it's a really common type that people might expect that option, but I don't have a preference there, strictly speaking it's not a Ruby type but the meaning is so common that it should be ok

@JuanVqz JuanVqz force-pushed the add-support-ruby-types branch from 8b9c17d to 6a6fea9 Compare May 17, 2022 13:21
@JuanVqz
Copy link
Copy Markdown
Member Author

JuanVqz commented May 17, 2022

Done!

Copy link
Copy Markdown
Contributor

@arielj arielj left a comment

Choose a reason for hiding this comment

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

looks good to me! 👍

@kindoflew kindoflew merged commit 1d71e8f into main May 23, 2022
@kindoflew kindoflew deleted the add-support-ruby-types branch May 23, 2022 20:34
@JuanVqz
Copy link
Copy Markdown
Member Author

JuanVqz commented May 23, 2022

Thank you for your feedback! 🦖

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.

[REQUEST] Support Ruby types

3 participants