Some improvements to the way diff coloring is done - code is now more succinct and readable. Also have updated the config in matchers to use the same method on RSpec.configuration if RSpec::Core is available.
improve diff colorising code
use same color config method as core
dynamically define color methods
This pull request passes (merged 08a26ae into d427bac).
revereted text -> str inline with core
more readable variable names
fix last commit
sorry about the excessive number of commits here!
This pull request passes (merged 4f2c4c4 into d427bac).
This pull request fails (merged dac5852 into d427bac).
This pull request passes (merged c54aeae into d427bac).
This pull request fails (merged 2e4be7e into d427bac).
@travisbot what happened there? Exit code 1 with no error message??
Will close this pull request due to the number of commits (and travis getting confused?) and make another.
@alexcoplan -- for future reference, you can rebase and force push to the same branch when you have a case like this. No need to open a separate pull request just to fix up your commits.