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

Load end_of_life JSON database from dynamic path #10

Merged
merged 3 commits into from
Jan 25, 2022
Merged

Load end_of_life JSON database from dynamic path #10

merged 3 commits into from
Jan 25, 2022

Conversation

colindean
Copy link
Contributor

When installed on a fresh Ruby installation without the source code
cloned, the JSON file couldn't be found because it was looking at the
cwd of the running process instead of the Gem's lib directory path.

I wish that Rubygems had a way of exposing a Gem's installation
directory programatically, but I couldn't find it quickly. Gem.datadir
didn't do what I wanted! So, we'll do it like it's 2014...

When installed on a fresh Ruby installation without the source code
cloned, the JSON file couldn't be found because it was looking at the
cwd of the running process instead of the Gem's lib directory path.

I wish that Rubygems had a way of exposing a Gem's installation
directory programatically, but I couldn't find it quickly. `Gem.datadir`
didn't do what I wanted! So, we'll do it like it's 2014...
@MatheusRich
Copy link
Owner

MatheusRich commented Jan 24, 2022

@colindean Thanks for the contribution! I left a small comment. If you could fix the small linter error, I'd appreciate it!

Co-authored-by: Matheus Richard <matheusrichardt@gmail.com>
@MatheusRich MatheusRich merged commit c527378 into MatheusRich:main Jan 25, 2022
@colindean
Copy link
Contributor Author

colindean commented Jan 25, 2022 via email

@colindean colindean deleted the dyn_db_load_path branch December 7, 2022 04:47
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