-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print diagnose String values surrounded by quotes (#755)
This makes the Ruby integration print the diagnose output consistently with the Node.js integration: String values are surrounded by quotes when printed. I added a new `puts_format` helper method (please rename if you think of something better), to print the values like `puts_value` but print Strings with quotes around them. As a shortcut I call `#inspect` on the object to accomplish this. Other types of values should be printed like we expect as well. I split up some calls to `puts_and_save`. It's difficult to save it as the plain value, but print it as the "inspected" value. Now that I look at it several years later `puts_and_save` is very easy, but it does a little bit too much.
- Loading branch information
Showing
4 changed files
with
70 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
bump: "patch" | ||
--- | ||
|
||
Print String values in the diagnose report surrounded by quotes. Makes it more clear that it's a String value and not a label we print. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule diagnose
updated
5 files
+1 −0 | Gemfile | |
+6 −0 | Gemfile.lock | |
+17 −17 | spec/diagnose_spec.rb | |
+2 −2 | spec/support/output_helper.rb | |
+11 −7 | spec/support/runner.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters