Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jul 16, 2015

I use contracts.ruby within a configuration class. Some options only allows a given subset of values - symbols. I added a custom contract for that, but thought it might be valueable for others as well.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you break the comment at 80 characters?

Can you add an example like this # Example: <tt>Enum[:a, :b, :c]</tt>?

@alex-fedorov
Copy link
Collaborator

Can you provide short description for this Pull Request?

Can you add it to list of builtin contracts in TUTORIAL.md?

@ghost
Copy link
Author

ghost commented Jul 16, 2015

Fixed.

@ghost
Copy link
Author

ghost commented Jul 16, 2015

Can you prepare a new release? Are you going to follow semver? I saw that your version number has only two digits....

@alex-fedorov
Copy link
Collaborator

Yes I do want it. But I do not know if @egonSchiele is ok with that. Actually I have bumped to 0.10.1 making it a semver, but I do not have rubygems push rights. So we are waiting for @egonSchiele

TUTORIAL.md Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo in links title: RangeOf => Enum

Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo in example: ; => ,

@egonSchiele
Copy link
Owner

Nice contract! Just waiting on responses to @alex-fedorov 's comments before I merge. I agree we should switch to semver.

@ghost
Copy link
Author

ghost commented Jul 16, 2015

Fixed. Sorry for the mistakes.

@waterlink
Copy link
Collaborator

@dg-ratiodata no problem :)

LGTM, merging

waterlink added a commit that referenced this pull request Jul 16, 2015
@waterlink waterlink merged commit 8a41dae into egonSchiele:master Jul 16, 2015
@waterlink
Copy link
Collaborator

Thanks @dg-ratiodata!

Do you need this to be released right away or this can wait?

@ghost
Copy link
Author

ghost commented Jul 17, 2015

This one can wait. I've got a custom contract for that. The same is true for the PR I filed some minutes ago.

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.

3 participants