lib/maven/tools/gemspec_dependencies.rb in maven-tools-1.0.6 vs lib/maven/tools/gemspec_dependencies.rb in maven-tools-1.0.7

- old
+ new

@@ -3,14 +3,14 @@ module Maven module Tools class GemspecDependencies def initialize( gemspec ) - if gemspec.is_a? Gem::Specification - @spec = gemspec - else + if gemspec.is_a? String warn 'DEPRECATED use Maven::Tools::DSL::Gemspec instead' @spec = Gem::Specification.load( gemspec ) + else + @spec = gemspec end _setup end def java_runtime