Skip to content

Commit

Permalink
delete array.to_h as it's built-in since Ruby 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-makarov committed Dec 26, 2018
1 parent cc58c31 commit 818835a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion lib/xcake.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'xcake/core_ext/array'
require 'xcake/core_ext/class'
require 'xcake/core_ext/string'

Expand Down
5 changes: 0 additions & 5 deletions lib/xcake/core_ext/array.rb

This file was deleted.

6 changes: 3 additions & 3 deletions lib/xcake/dependency_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class DependencyProvider
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)
Expand Down
7 changes: 0 additions & 7 deletions spec/core_ext/array_spec.rb

This file was deleted.

0 comments on commit 818835a

Please # to comment.