lib/build/build_node.rb in build-2.5.1 vs lib/build/build_node.rb in build-2.5.2

- old
+ new

@@ -23,45 +23,42 @@ require 'console/event/spawn' module Build class BuildNode < Graph::Node - def initialize(environment, dependency, provisions, arguments) + def initialize(environment, provisions, arguments) @environment = environment - @dependency = dependency @provisions = provisions @arguments = arguments super(Files::List::NONE, :inherit) end attr :environment - attr :dependency attr :provisions attr :arguments def == other super and @environment == other.environment and - @dependency == other.dependency and @provisions == other.provisions and @arguments == other.arguments end def hash - super ^ @environment.hash ^ @dependency.hash ^ @provisions.hash ^ @arguments.hash + super ^ @environment.hash ^ @provisions.hash ^ @arguments.hash end def task_class(parent_task) task_class = Rulebook.for(@environment).with(BuildTask, environment: @environment) end def initial_environment - Build::Environment.new(@environment, name: @dependency.name) + Build::Environment.new(@environment) end def name - @dependency.name + @environment.name end def apply!(task) output_environment = self.initial_environment