lib/autoproj/variable_expansion.rb in autoproj-2.12.1 vs lib/autoproj/variable_expansion.rb in autoproj-2.13.0
- old
+ new
@@ -78,10 +78,12 @@
value
end
end
# True if the given string contains expansions
- def self.contains_expansion?(string); string =~ /\$/ end
+ def self.contains_expansion?(string)
+ string.respond_to?(:to_str) && string.to_str =~ /\$/
+ end
def self.resolve_one_constant(name, value, result, definitions)
result[name] ||= single_expansion(value, result) do |missing_name|
result[missing_name] =
resolve_one_constant(missing_name, definitions[missing_name], result, definitions)