Skip to content

Commit

Permalink
cleanup and fixes specs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Sep 29, 2024
1 parent 5708161 commit 65faf70
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/ruby_maven.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def self.launch( *args )
ENV['M2_HOME'] = Maven.home
ext_dir = File.join(Maven.lib, 'ext')
FileUtils.mkdir_p(ext_dir)
local_dir = File.join(__dir__, 'extensions')
local_dir = File.join(__dir__, 'polyglot_jars')
Dir.new(local_dir).select do |file|
file =~ /.*\.jar$/
end.each do |jar|
Expand Down
2 changes: 1 addition & 1 deletion ruby-maven.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |s|

s.rdoc_options = ["--main", "README.md"]

s.add_dependency 'ruby-maven-libs', "~> 3.9.6"
s.add_dependency 'ruby-maven-libs', "~> 3.9.9"
s.add_development_dependency 'minitest', '~> 5.3'
s.add_development_dependency 'rake', '~> 12.3'
end
Expand Down
4 changes: 1 addition & 3 deletions spec/ruby_maven_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
_, err = capture_io do
RubyMaven.exec( '--version' )
end
_(err).must_match /Polyglot Maven Extension 0.4.8/
_(err).must_match /Polyglot Maven Extension 0.7/
xml = File.read('.mvn/extensions.xml')
_(xml).must_equal "dummy\n"
end
Expand All @@ -30,8 +30,6 @@
end
_(out).must_match /mvn -Dverbose package/
_(File.exist?( gem_name )).must_equal true
_(File.exist?( '.mvn/extensions.xml' )).must_equal true
_(File.exist?( '.mvn/extensions.xml.orig' )).wont_equal true
end

end

0 comments on commit 65faf70

Please sign in to comment.