lib/ruby/maven/model/model_utils.rb in ruby-maven-3.0.3.0.28.5 vs lib/ruby/maven/model/model_utils.rb in ruby-maven-3.0.3.0.29.0.pre
- old
+ new
@@ -95,11 +95,11 @@
else
#when String
buf << "#{indent} <#{var}>#{val}</#{var}>\n" if val
end
end
- buf << "#{indent}</#{_name}>\n"
+ buf << "#{indent}</#{_name.sub(/ .*$/, '')}>\n"
buf
end
end
class NamedArray < Array
@@ -186,10 +186,10 @@
class PluginHash < Hash
def adjust_key(name)
name = name.to_s
if (name =~ /\:/).nil?
- if [:jruby, :gem, :rspec, :rake, :rails2, :rails3, :gemify, :cucumber, :runit, :bundler].member? name.to_sym
+ if [:jruby, :gem, :rspec, :rake, :minitest, :rails3, :gemify, :cucumber, :runit, :bundler].member? name.to_sym
"de.saumya.mojo:#{name}-maven-plugin"
else
"maven-#{name}-plugin"
end
else