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

Add configuration class #8

Closed
wants to merge 4 commits into from
Closed

Conversation

henggana
Copy link
Contributor

Add configuration class. It's now possible to configure reading_speed from initializer:

Readingtime.configure do |config|
  config.reading_speed = 275
end

@garethrees
Copy link
Owner

Hey @henggana,

Thanks for the PR. Someone's asked for this before, so definitely a good idea.

The implementation looks good, but unfortunately it seems to be breaking the specs. The actual error seems unrelated to this PR, but since it doesn't it doesn't have any specs of its own its hard to tell.

Could you add some specs for this so that its easier for me to maintain in the future?

@garethrees
Copy link
Owner

Hey @henggana, sorry its taken me so long to get to this.

I made a few changes and opened #9 – let me know if that solves your problem. If so, just give the PR a +1 and I'll get it merged and released.

@garethrees garethrees closed this Sep 13, 2016
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.

None yet

2 participants