Closed matthewd closed 9 years ago
For this to go into the current release, we need to make this version aware. This version of color still supports Ruby 1.8, which does not have the inherited parameter on .const_defined?
.
:sparkles:
I will try to do a release in the next two weeks. I’m sorry I can’t do it sooner, but there’s some other work that I’m not sure of the status right now and I won’t have time to look at this before the weekend at earliest.
No worries, thanks! :heart:
@halostatue Any chance of a new releases soon?
I’ll try to get one out by the weekend. Work has been a bit crazy.
@halostatue Looking forward to it. With some of our stuff namespaced under "Azure" it is problematic at the moment.
I’m changing this to:
used = names - mod.constants.map(&:to_sym)
if used.length < names.length
It has the advantage of not requiring different implementations for Ruby 1.8 and Ruby 1.9 and it implicitly limits lookup to the directly owned constants of mod
(e.g., Color::RGB
).
@djberg96 @matthewd I have release color 1.8 with the variant fix I put in place.
Before:
After: