lib/dispatch-rider/registrars/base.rb in dispatch-rider-1.9.0 vs lib/dispatch-rider/registrars/base.rb in dispatch-rider-2.0.0

- old
+ new

@@ -13,11 +13,11 @@ def register(name, options = {}) store[name.to_sym] = value(name, options) self rescue NameError - raise NotFound.new(name) + raise NotFound, name end def value(name, options = {}) raise NotImplementedError end @@ -29,10 +29,10 @@ def fetch(name) begin store.fetch(name.to_sym) rescue IndexError - raise NotRegistered.new(name) + raise NotRegistered, name end end end end end