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

Improve path detection fallback #460

Merged
merged 3 commits into from Apr 1, 2020

Conversation

jarthod
Copy link
Contributor

@jarthod jarthod commented Jan 23, 2020

Following discussion in #123 (comment) this is the MR to improve path detection resilience by falling back to which when bundle exec which is failing (which happens with some bundler version).

I've added specs for all the cases I thought about and improved a bit the current specs which where dependent on using bundler to run rspec, now they mock bundler presence so the result is reliable whether we start rspec with bundler or not.

Feel free if you have any questions. I'm thinking there's most probably a more standard / reliable way to get the path of a binary using Bundler methods instead of shelling out, but I'd rather not risk more changes here.

.ruby-version Show resolved Hide resolved
pdfkit.gemspec Show resolved Hide resolved
@github-actions
Copy link

This pull request has been marked as stale and will be automatically closed.

@jarthod
Copy link
Contributor Author

jarthod commented Mar 24, 2020

Little bump @serene @pdfkit ?

@github-actions github-actions bot closed this Apr 1, 2020
@jarthod
Copy link
Contributor Author

jarthod commented Apr 1, 2020

@serene serene reopened this Apr 1, 2020
@serene serene merged commit 2246d3f into pdfkit:master Apr 1, 2020
@jarthod
Copy link
Contributor Author

jarthod commented Apr 1, 2020

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants