Skip to content

Plz namespace your Mashes correctly #28

@goblin

Description

@goblin

I want to use the real Mash from the mash gem, together with spice. It causes unexpected, very weird behaviour and breaks horribly:

% pry
r[1] pry(main)> require 'spice'
 => true
[[2] pry(main)> require 'mash'
 => true
[[3] pry(main)> a = Mash.new('attrs' => 3)
 SystemStackError: stack level too deep
from /home/goblin/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/pry-0.9.12.2/lib/pry/pry_instance.rb:328
[4] pry(main)> 

IMO your Mash should be called something like Spice::Mash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions