Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rainbow require behavior changed #19

Open
tdclemens opened this issue Mar 23, 2015 · 2 comments
Open

rainbow require behavior changed #19

tdclemens opened this issue Mar 23, 2015 · 2 comments

Comments

@tdclemens
Copy link

when i tried to create skins with green onion 0.1.4 i get an error:

NoMethodError: undefined method `color' for "http://localhost:12000/masterimage/OPS/html/section_0001.xhtml":String
/Users/tclemens/.rvm/gems/ruby-2.1.2/gems/green_onion-0.1.4/lib/green_onion.rb:58:in `skin_picker'
/Users/tclemens/.rvm/gems/ruby-2.1.2/gems/green_onion-0.1.4/lib/green_onion.rb:53:in `skin_visual_and_percentage'
/Users/tclemens/apps/bbf_to_ebook/Rakefile:98:in `create_skin'
/Users/tclemens/apps/bbf_to_ebook/Rakefile:124:in `block (4 levels) in <top (required)>'
/Users/tclemens/apps/bbf_to_ebook/Rakefile:122:in `each'
/Users/tclemens/apps/bbf_to_ebook/Rakefile:122:in `block (3 levels) in <top (required)>'
/Users/tclemens/apps/bbf_to_ebook/Rakefile:115:in `each'
/Users/tclemens/apps/bbf_to_ebook/Rakefile:115:in `block (2 levels) in <top (required)>'
/Users/tclemens/apps/bbf_to_ebook/Rakefile:111:in `block in <top (required)>'
/Users/tclemens/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/Users/tclemens/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'

I looked into this and it looks like the rainbow require behavior was changed see: https://github.com/sickill/rainbow#string-mixin

In your gemspec no version is specified for rainbow, so my guess is that its grabbing 2.0 and expecting this new require behavior

@jongrover
Copy link

@tdclemens did you find a work around for this? Use older version of GreenOnion or require a different version of rainbow? Update: I got it working by changing version in Gemfile to
gem 'rainbow', '1.99.2'

@snsavage
Copy link

The rainbow require needs to change to require 'rainbow/ext/string' instead of require 'rainbow'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants