lib/flyrb/equipper.rb in flyrb-1.0.0.a vs lib/flyrb/equipper.rb in flyrb-1.0.0.b

- old
+ new

@@ -52,15 +52,22 @@ # otherwise, args is a list of gadgets to equip else args.each do |arg| gadget = arg.to_s - # Silently ignore unkown gadgets - gadgets_to_equip << gadget if GADGETS.include? gadget + if GADGETS.include? gadget + gadgets_to_equip << gadget + else + # Don't silently ignore unkown gadgets + puts "Failed to find gadget #{gadget}, ignoring" + end end end - gadgets_to_equip.each{|gadget| require "flyrb/#{gadget}" } + gadgets_to_equip.each{|gadget| + puts "enabling #{gadget}" + require "flyrb/#{gadget}" + } @equipped ||= true end def equipped? @equipped