spice icon indicating copy to clipboard operation
spice copied to clipboard

Plz namespace your Mashes correctly

Open goblin opened this issue 12 years ago • 0 comments

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

goblin avatar Jul 18 '13 15:07 goblin