-
Notifications
You must be signed in to change notification settings - Fork 101
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 option to have require_relative statements #377
Conversation
@film42 let me know if that's a good solution and I'll add instructions in the readme for that. |
@@ -125,7 +125,7 @@ def print_import_requires | |||
header "Imports" | |||
|
|||
descriptor.dependency.each do |dependency| | |||
print_require(convert_filename(dependency)) | |||
print_require(convert_filename(dependency), ENV['REQUIRE_RELATIVE'] == 'true') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've been prefacing env vars with PB_
. Would you mind doing that here? PB_REQUIRE_RELATIVE
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
Sorry for the delay in getting this reviewed btw! Thanks for your contribution ❤️ ! |
I just changed the code to change the environment variable name to Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ 🎉 ❤️ 🎉 ❤️ 🎉 ❤️ 🎉 ❤️ 🎉 ❤️
@film42 Do you have any idea when you'll be able to merge this / release ? Thanks |
I've almost sent a PR that adds option to use And, btw, |
Ah, please ignore statement about |
Released in |
To account for this issue: #240.
I chose to use an environment variable
REQUIRE_RELATIVE=true
as I can't see another way to pass options to the gem