lib/maven/tools/visitor.rb in maven-tools-1.0.13 vs lib/maven/tools/visitor.rb in maven-tools-1.1.0
- old
+ new
@@ -125,18 +125,21 @@
def accept_hash( name, hash )
unless hash.empty?
attr = hash.select do |k, v|
[ k, v ] if k.to_s.match( /^@/ )
end
+ # workaround error with :configuration => :gems => { ... }
+ method = name == :gems ? :raw_tag : :tag
+
start_tag( name, attr )
hash.each do |k, v|
case v
when Array
accept_array( k, v )
when Hash
accept_hash( k, v )
else
- tag( k, v ) unless k.to_s.match( /^@/ )
+ send( method, k, v ) unless k.to_s.match( /^@/ )
end
end
end_tag( name )
end
end