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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: fix (2021-03) #10505

Merged
merged 6 commits into from Mar 15, 2021
Merged

Conversation

maiha
Copy link
Contributor

@maiha maiha commented Mar 12, 2021

Catch up examples before crystal-1.0.0 馃槂

Best regards,

Copy link
Member

@bcardiff bcardiff left a comment

Choose a reason for hiding this comment

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

馃挌 some minor corrections. Thanks!

@@ -227,20 +227,9 @@ module Enum::ValueConverter(T)
# used for serialization.
#
# ```
# enum Stages
Copy link
Member

Choose a reason for hiding this comment

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

I think these are needed to have a self-contained example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had removed it because the test failed with the definition of the enum of the same name.
However, the clarity of the example should be a priority, so I reverted and will modify my tool. 馃憤

# Enum::ValueConverter.to_json(Stages::INITIAL) # => %(0)
# Enum::ValueConverter.to_json(Stages::SECOND_STAGE) # => %(1)
#
# @[Flags]
Copy link
Member

Choose a reason for hiding this comment

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

ditto

src/uri.cr Outdated Show resolved Hide resolved
src/range.cr Outdated Show resolved Hide resolved
@bcardiff bcardiff added this to the 1.0.0 milestone Mar 13, 2021
maiha and others added 4 commits March 13, 2021 13:07
Co-authored-by: Brian J. Cardiff <bcardiff@gmail.com>
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
@@ -193,24 +193,13 @@ module Enum::ValueConverter(T)
# used for serialization.
#
# ```
# enum Stages
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, i just noticed that here there are also some definitions that should stay in order to make them self-contained.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I missed to revert the yaml one. 馃槂

Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

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

Thank you @maiha 馃檹

@bcardiff bcardiff merged commit aa91eb3 into crystal-lang:master Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants