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

Update dictionary lookup to use gem path by default #29

Merged
merged 1 commit into from
Feb 7, 2020

Conversation

abrom
Copy link
Contributor

@abrom abrom commented Dec 10, 2019

When the gem is loaded in another ruby app, the current code requires that the app also have it's own version of the dictionary.

Proposed change adds accessor methods for the dictionary path, defaulting to the textstat gem path.

  • Fixes loading of the dictionary when the cwd isn't the gem path
  • Allows custom dictionary paths to be specified (if wanting to overload the textstat dictionaries?)

Note that this does change the default behaviour for anyone using the textstat gem (in another app) and they ARE overloading the dictionary.

@abrom
Copy link
Contributor Author

abrom commented Dec 10, 2019

This would also appear to resolve #28

@kupolak kupolak merged commit 8ec8b3c into kupolak:master Feb 7, 2020
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