jfairbank / chroma

Ruby gem for color manipulation and palette generation
ISC License
232 stars 29 forks source link

Add support for initializing from strings that are frozen #24

Closed okoriko closed 2 years ago

okoriko commented 7 years ago

As the current implementation was mutating the string, the following would raise an error:

'red'.freeze.paint
jfairbank commented 7 years ago

Hi, @okoriko!

Thanks for the PR. This is a good fix for newer versions of Ruby. Do you mind adding a test case as well as updating the travis rvm versions as a sanity check? Thanks!

evanleck commented 3 years ago

@okoriko FYI I've created a fork/rename of Chroma that I intend to maintain and I've added this change there https://github.com/evanleck/kodachroma