Skip to content

rainbow require behavior changed #19

@tdclemens

Description

@tdclemens

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions