yohasebe / engtagger

English Part-of-Speech Tagger Library; a Ruby port of Lingua::EN::Tagger
GNU General Public License v2.0
263 stars 48 forks source link

Fix for using gem with Rails #18

Closed vitalyliber closed 2 years ago

vitalyliber commented 2 years ago

Removed $LOAD_PATH variable from using in code.

I spent 3 days to find and fix this bug 🔮

Using this global variable $LOAD_PATH broke the require in our Rails app (rails 6.1.6):

Screen Shot 2022-08-03 at 13 42 16

Screen Shot 2022-08-03 at 16 11 31 Screen Shot 2022-08-03 at 23 42 34

Thank you for your work!

yohasebe commented 2 years ago

Thank you for the PR! I have merged it and released the updated gem.