lib/maven/tools/dsl/gemspec.rb in maven-tools-1.1.1 vs lib/maven/tools/dsl/gemspec.rb in maven-tools-1.1.2

- old
+ new

@@ -137,10 +137,10 @@ end end def other_deps( spec ) spec.requirements.each do |req| - req.sub!( /#.*^/, '' ) + req = req.sub( /#.*^/, '' ) method = req.sub(/\s.*$/, '' ).to_sym line = req.sub(/^[^\s]*\s/, '' ) if respond_to? method if spec.platform.to_s == 'java' send method, line