lib/xcake/dependency_provider.rb in xcake-0.8.13 vs lib/xcake/dependency_provider.rb in xcake-0.9.0

- old
+ new

@@ -5,12 +5,12 @@ include TSort def initialize(dependency_class) plugins = dependency_class.load_plugins - @dependency_graph = plugins.map do |p| - [p, p.dependencies] - end.to_h + @dependency_graph = plugins.each_with_object({}) do |p, hash| + hash[p] = p.dependencies + end end def tsort_each_node(&block) @dependency_graph.each_key(&block) end