lib/sunzi/plugin.rb in sunzi-2.0.0 vs lib/sunzi/plugin.rb in sunzi-2.1.0

- old
+ new

@@ -1,9 +1,8 @@ module Sunzi module Plugin class << self # Find gems that start with "sunzi-*" and require them automatically. - # If that gem is a plugin, it will call the register method on load. def load plugins = Gem::Specification.find_all.select{|plugin| plugin.name =~ /sunzi-.+/ } plugins.each do |plugin| require plugin.name.gsub('-','/')