Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Issue 2020 remove ansicon warning #2038

Merged

Conversation

weedySeaDragon
Copy link
Contributor

I just removed the code that tested for and warned about ANSICON.
I put documentation (a note about using ANSICON or other utilities) into features/configuration/read_options_from_file.feature. I'm not sure if that's the right or best place for it. It seemed to be the most appropriate place.

[MinGW](http://www.mingw.org/) (Minimalist GNU for Windows)

More information can be found by searching for information about those solutions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 This is well written. Thanks for writing this up!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although, I'm realizing that a file named read_options_from_file.feature isn't a place users are likely to look for this info. WDYT about creating a features/configuration/color.feature file with color config info including this? If you go that route, would be nice to add the file to features/.nav so we can put it in the ordering we want.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes good sense to me. That will be much more obvious on Relish and anywhere else. I'll make an entry in .nav. I'll put it after - read_options_from_file.feature because that references color and also because if people are having trouble with color, they'll see it quickly. But of course I'm happy to put it where-ever you think it should go in .nav.

@weedySeaDragon
Copy link
Contributor Author

made the changes. If they're ok, let me know if you want me to squash the commits.

@@ -0,0 +1,22 @@
Feature: Windows may require additional solutions to display color

The output uses ANSI escapte codes to show text in color. Windows
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/escapte/escape/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, do you think it's worth turning "ANSI escape codes" into a link to https://en.wikipedia.org/wiki/ANSI_escape_code ?

@myronmarston
Copy link
Member

Yes, please squash the commits.

Looks like the attr_writer :color change we discussed hasn't been made yet.

…s for Windows in colors.feature

issue rspec#2020
don't need to test if ANSICON installed on windows (that's up to the user; ok if it isn't)
document Windows utils available for showing color (ex: ANSICON and other solutions)
moved 'Windows may need solutions to show ANSI codes' into its own feature file.  Massaged text to it can stand alone.
added new 'color.feature' file into .nav file after 'read_options_from_file.feature' (in configuration section)
replaced color= method with attr_writer :color; fixed typo in color.feature. Added link to wikipedia definition for ANSI escape code in color.feature
@weedySeaDragon weedySeaDragon force-pushed the issue-2020--remove-ANSICON-warning branch from 3d0019b to c72d232 Compare July 27, 2015 05:25
@weedySeaDragon
Copy link
Contributor Author

I added attr_writer :color Not sure where you wanted it, so I added it right where the method was. (Since other macros are used a lot in the file, I thought doing it that way might be fine.) Thanks for catching that. I added the link to Uncyclopedia's ANSI escape codes, too. I've seen a lot of people asking about "those weird characters..." on StackOverflow, so I'm sure some will appreciate the information.

commits squashed

def color
value_for(:color) { @color }
end
attr_writer :color
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a replacement for the def color= method, not the def color method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh how embarrassing. (:head_smack:) Fixed.

myronmarston added a commit that referenced this pull request Jul 28, 2015
…ON-warning

Issue 2020  remove ansicon warning
@myronmarston myronmarston merged commit 0f05884 into rspec:master Jul 28, 2015
@myronmarston
Copy link
Member

Thanks, @weedySeaDragon!

myronmarston added a commit that referenced this pull request Jul 28, 2015
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
…ANSICON-warning

Issue 2020  remove ansicon warning
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants