lib/maven/tools/gemspec_dependencies.rb in maven-tools-1.1.0 vs lib/maven/tools/gemspec_dependencies.rb in maven-tools-1.1.1
- old
+ new
@@ -55,11 +55,10 @@
req.collect{ |i| i.to_s }.join
end
_deps( dep.type ) << "rubygems:#{dep.name}:#{to_version( *versions )}"
end
@spec.requirements.each do |req|
- req.sub!( /#.*^/, '' )
- coord = to_split_coordinate_with_scope( req )
+ coord = to_split_coordinate_with_scope(req.sub(/#.*^/, ''))
if coord && coord.size > 1
_deps( :java ) << coord
end
end
end