Skip to content

Add configuration options#6

Merged
mmozuras merged 1 commit intommozuras:masterfrom
supremebeing7:config
Apr 4, 2017
Merged

Add configuration options#6
mmozuras merged 1 commit intommozuras:masterfrom
supremebeing7:config

Conversation

@supremebeing7
Copy link
Copy Markdown
Contributor

Fixes #2

There's one piece that I have not done yet because I wanted to get your input, @mmozuras:
renaming the FiftyCharSummary and SeventyTwoCharLimit classes. Since those are now configurable, it seems odd to have a specific number as a part of the class name. Would you agree?

Also, if you like I can squash the commits down to one.

Let me know what you think.

@mmozuras
Copy link
Copy Markdown
Owner

mmozuras commented Apr 2, 2017

Since those are now configurable, it seems odd to have a specific number as a part of the class name. Would you agree?

@supremebeing7 completely agree!

Also, if you like I can squash the commits down to one.

Yes, that would be preferable 😄

@config.summary_character_limit_number.to_i
end

def error_message
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@supremebeing7 why did you change it from a constant to a method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I had to do that for the character count rules in order to interpolate the number of characters. The rest I changed for consistency.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@supremebeing7 👌

Do these and I'm ready to merge! 😄

Copy link
Copy Markdown
Contributor Author

@supremebeing7 supremebeing7 Apr 3, 2017

Choose a reason for hiding this comment

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

Done 🎉

- Add config options
- Add sample yml file
- Add configuration to README
- Rename character limit rules to correspond with configurability
@mmozuras mmozuras merged commit 428922d into mmozuras:master Apr 4, 2017
@mmozuras
Copy link
Copy Markdown
Owner

mmozuras commented Apr 4, 2017

@supremebeing7 perfect 👍

@mmozuras
Copy link
Copy Markdown
Owner

mmozuras commented Apr 4, 2017

Released as v0.2.0!

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