Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

type mismatch on theme replace #197

@marcosalles

Description

@marcosalles

When executing theme replace, the gem crashes.
The regex is not being interpreted as a regex.

lib/shopify_theme/cli.rb:144:in `=~': type mismatch: String given (TypeError)
    from /usr/local/lib/ruby/gems/2.3.0/gems/shopify_theme-0.0.25/lib/shopify_theme/cli.rb:144:in `block (2 levels) in replace'
    from /usr/local/lib/ruby/gems/2.3.0/gems/shopify_theme-0.0.25/lib/shopify_theme/cli.rb:144:in `any?'
    from /usr/local/lib/ruby/gems/2.3.0/gems/shopify_theme-0.0.25/lib/shopify_theme/cli.rb:144:in `block in replace'
    from /usr/local/lib/ruby/gems/2.3.0/gems/shopify_theme-0.0.25/lib/shopify_theme/cli.rb:143:in `each'
    from /usr/local/lib/ruby/gems/2.3.0/gems/shopify_theme-0.0.25/lib/shopify_theme/cli.rb:143:in `replace'
    from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /usr/local/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /usr/local/lib/ruby/gems/2.3.0/gems/shopify_theme-0.0.25/bin/theme:26:in `<top (required)>'
    from /usr/local/bin/theme:23:in `load'
    from /usr/local/bin/theme:23:in `<main>'

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