lib/build/environment/evaluator.rb in build-environment-1.12.1 vs lib/build/environment/evaluator.rb in build-environment-1.13.0

- old
+ new

@@ -24,9 +24,16 @@ def initialize(environment) @environment = environment @cache = {} end + def initialize_dup(other) + @environment = other.instance_variable_get(:@environment) + @cache = other.instance_variable_get(:@cache).dup + + super + end + def respond_to?(name, include_private = false) @environment.include?(name) || super end def method_missing(name)