-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Feature: Add parseable option to bundle config command #4919
Feature: Add parseable option to bundle config command #4919
Conversation
@JuanitoFatas I personally use |
exit 1 | ||
end | ||
if options[:parseable] | ||
Bundler.ui.info(Bundler.settings[name]) |
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.
I think probably just return here instead of putting everything inside an else
block.
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.
👍 Thanks I've updated.
@@ -187,6 +187,16 @@ | |||
end | |||
end | |||
|
|||
context "with --parseable option" do | |||
it "returns value associated with the config" do |
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.
please add a test for when the value is unset, and also when the value is unset but bundler has a default value
…rect Doc: Add a note on how to dive into the code with Pry [ci skip] Follow up of #4919 (comment). [Preview DEVELOPMENT.md](https://github.com/JuanitoFatas/bundler/blob/6667a9d9a1fd7f83b4d262ff00b933f8574a974f/DEVELOPMENT.md#development-setup)
…rect Doc: Add a note on how to dive into the code with Pry [ci skip] Follow up of #4919 (comment). [Preview DEVELOPMENT.md](https://github.com/JuanitoFatas/bundler/blob/6667a9d9a1fd7f83b4d262ff00b933f8574a974f/DEVELOPMENT.md#development-setup)
…rect Doc: Add a note on how to dive into the code with Pry Follow up of #4919 (comment). [Preview DEVELOPMENT.md](https://github.com/JuanitoFatas/bundler/blob/6667a9d9a1fd7f83b4d262ff00b933f8574a974f/DEVELOPMENT.md#development-setup)
…rect Doc: Add a note on how to dive into the code with Pry Follow up of #4919 (comment). [Preview DEVELOPMENT.md](https://github.com/JuanitoFatas/bundler/blob/6667a9d9a1fd7f83b4d262ff00b933f8574a974f/DEVELOPMENT.md#development-setup)
@@ -21,6 +21,8 @@ def run | |||
return | |||
end | |||
|
|||
return Bundler.ui.info(Bundler.settings[name]) if options[:parseable] |
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.
What happens if parseable
is passed when setting a value?
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.
Did you mean doing something like:
$ bundle config --local parseable true
$ bundle config --global parseable true
I tried, this line of change, does not affect original functionality.
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.
is there a test for it?
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.
I'm sorry, added in 2ba6079. The failure is fixed in #4990.
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.
Sorry, I meant bundle config --local --parseable foo bar
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.
I think this is the only blocker left for merging this
@segiddins was this failure a new rails release breaking the edgecases spec? |
The failure is fixed in #4990. The problem in this Pull Request is I haven't addressed #4919 (comment). |
Is this being worked on @JuanitoFatas? I have a use case for this and would like to see this feature merged possibly in 1.14.0. I'm happy to finish it off if you want. |
Please do, thank you! |
@colby-swandale as 1-14-stable has already been branched, this won't make it in to 1.14 |
@segiddins thanks for letting me know. I'll still work on getting this merged in. |
This Pull Request implements #4913:
Related: #4871
Feedback for development of Bundler
Cannot use byebug / pry to dive into the code. 😢
Cannot use puts / p to print something for debugging. 😢
Currently use
Bundler.ui.info
to print something for debugging. 😅