RSpec::Core::Formatters depends on a monkeypatch from stdlib's set.rb, but does not require it
Created by: tomwhoiscontrary
base_text_formatter.rb:139 says:
VT100_COLOR_CODES = VT100_COLORS.values.to_set
That to_set
on Array
comes from set
. base_text_formatter
does not directly or transitively require set
. Consequently, an attempt to require base_text_formatter
on its own will fail.
Now, core
does require set
. If this is required before base_text_formatter
, all will be well.
Should it be possible to require base_text_formatter
on its own? If so, the lack of a require for set
is a bug. If not, then it isn't.
I would be equally happy with a fix to base_text_formatter
or with an indication that this is not supported!