ruby-maven 3.3.12 → 3.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.mvn/extensions.xml +2 -3
- data/Mavenfile +1 -1
- data/bin/rmvn +2 -0
- data/lib/maven/ruby/version.rb +1 -1
- data/lib/ruby_maven.rb +8 -2
- data/ruby-maven.gemspec +3 -3
- data/spec/maven_ruby_maven_spec.rb +16 -8
- data/spec/ruby_maven_spec.rb +11 -12
- data/spec/setup.rb +2 -23
- metadata +17 -19
- data/spec/maven_ruby_maven_spec.rb~ +0 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 53d3a1840b8fef43b4e76b82926297649974c1bae2f490d2a63fcef44f844a38
|
4
|
+
data.tar.gz: 16b5a979c554429d4bbaa76073bd67603ad5bae23ca0bd7ae527c2faa4ba7990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25e8c568c422c76e94396c87293c5111466e26f9a6d323dee6d0af2bb5cb661e86ce54110a64a3f17f17d3455f579d1fa52b934aa853866bd16b73907c665915
|
7
|
+
data.tar.gz: 30b95e0e2b5720e312d1a33e61f7d2aab6ee5e14fa7d5ce039f9d41c3b3ce5eeba7e9bb741826826223571cde285c3a6397547dbbfe9d92cf218aff8d0825b11
|
data/.mvn/extensions.xml
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!-- from ruby-maven gem -->
|
3
2
|
<extensions>
|
4
3
|
<extension>
|
5
4
|
<groupId>org.torquebox.mojo</groupId>
|
6
5
|
<artifactId>mavengem-wagon</artifactId>
|
7
|
-
<version>0.
|
6
|
+
<version>1.0.3</version>
|
8
7
|
</extension>
|
9
8
|
<extension>
|
10
9
|
<groupId>io.takari.polyglot</groupId>
|
11
10
|
<artifactId>polyglot-ruby</artifactId>
|
12
|
-
<version>0.
|
11
|
+
<version>0.4.8</version>
|
13
12
|
</extension>
|
14
13
|
</extensions>
|
data/Mavenfile
CHANGED
data/bin/rmvn
CHANGED
data/lib/maven/ruby/version.rb
CHANGED
data/lib/ruby_maven.rb
CHANGED
@@ -35,8 +35,14 @@ module RubyMaven
|
|
35
35
|
elsif defined? Bundler
|
36
36
|
# it can be switching from ruby to jruby with invoking maven
|
37
37
|
# just keep it clean
|
38
|
-
Bundler.
|
39
|
-
|
38
|
+
if Bundler.respond_to?(:with_unbundled_env)
|
39
|
+
Bundler.with_unbundled_env do
|
40
|
+
launch( *args )
|
41
|
+
end
|
42
|
+
else
|
43
|
+
Bundler.with_clean_env do
|
44
|
+
launch( *args )
|
45
|
+
end
|
40
46
|
end
|
41
47
|
else
|
42
48
|
launch( *args )
|
data/ruby-maven.gemspec
CHANGED
@@ -11,9 +11,9 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.summary = %q{maven support for ruby projects}
|
12
12
|
s.email = ["m.kristian@web.de"]
|
13
13
|
|
14
|
-
s.homepage = %q{https://github.com/
|
14
|
+
s.homepage = %q{https://github.com/jruby/ruby-maven}
|
15
15
|
|
16
|
-
s.license = 'EPL'
|
16
|
+
s.license = 'EPL-2.0'
|
17
17
|
|
18
18
|
s.executable = 'rmvn'
|
19
19
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
|
24
24
|
s.add_dependency 'ruby-maven-libs', "~> 3.3.9"
|
25
25
|
s.add_development_dependency 'minitest', '~> 5.3'
|
26
|
-
s.add_development_dependency 'rake', '~>
|
26
|
+
s.add_development_dependency 'rake', '~> 12.3'
|
27
27
|
end
|
28
28
|
|
29
29
|
# vim: syntax=Ruby
|
@@ -5,19 +5,23 @@ describe Maven::Ruby::Maven do
|
|
5
5
|
|
6
6
|
subject { Maven::Ruby::Maven.new }
|
7
7
|
|
8
|
+
let(:pkg) { File.expand_path("../pkg", __dir__) }
|
9
|
+
|
8
10
|
it 'shows mvn commandline with verbose flag' do
|
9
|
-
|
11
|
+
out, _ = capture_subprocess_io do
|
10
12
|
subject.exec( '-Dverbose', 'validate' )
|
11
13
|
end
|
12
14
|
subject.verbose = false
|
13
|
-
|
15
|
+
_(out).must_match /mvn -Dverbose validate/
|
14
16
|
end
|
15
17
|
|
16
18
|
it 'takes declared jruby version' do
|
17
19
|
begin
|
18
20
|
subject.inherit_jruby_version '9.0.4.0'
|
19
|
-
|
20
|
-
|
21
|
+
out, _ = capture_subprocess_io do
|
22
|
+
subject.exec( '-X', 'initialize')
|
23
|
+
end
|
24
|
+
_(out).must_match /resolve jruby for version 9.0.4.0/
|
21
25
|
ensure
|
22
26
|
subject['jruby.version'] = nil
|
23
27
|
end
|
@@ -26,14 +30,18 @@ describe Maven::Ruby::Maven do
|
|
26
30
|
if defined? JRUBY_VERSION
|
27
31
|
it 'inherits jruby version' do
|
28
32
|
subject.inherit_jruby_version
|
29
|
-
|
30
|
-
|
33
|
+
out, _ = capture_subprocess_io do
|
34
|
+
subject.exec( '-X', 'initialize')
|
35
|
+
end
|
36
|
+
_(out).must_match /resolve jruby for version #{JRUBY_VERSION}/
|
31
37
|
end
|
32
38
|
else
|
33
39
|
it 'takes default jruby version with inherit jruby version' do
|
34
40
|
subject.inherit_jruby_version
|
35
|
-
|
36
|
-
|
41
|
+
out, _ = capture_subprocess_io do
|
42
|
+
subject.exec( '-X', 'initialize')
|
43
|
+
end
|
44
|
+
_(out).must_match /resolve jruby for version 9.3.1.0/
|
37
45
|
end
|
38
46
|
end
|
39
47
|
end
|
data/spec/ruby_maven_spec.rb
CHANGED
@@ -7,32 +7,31 @@ describe RubyMaven do
|
|
7
7
|
|
8
8
|
it 'displays the version info' do
|
9
9
|
Dir.chdir 'spec' do
|
10
|
-
|
10
|
+
_, err = capture_io do
|
11
11
|
RubyMaven.exec( '--version' )
|
12
12
|
end
|
13
|
-
|
13
|
+
_(err).must_match /Polyglot Maven Extension 0.4.8/
|
14
14
|
xml = File.read('.mvn/extensions.xml')
|
15
|
-
xml.must_equal "dummy\n"
|
15
|
+
_(xml).must_equal "dummy\n"
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
let :
|
19
|
+
let :gem_name do
|
20
20
|
v = Maven::Ruby::VERSION
|
21
21
|
v += '-SNAPSHOT' if v =~ /[a-zA-Z]/
|
22
22
|
"pkg/ruby-maven-#{v}.gem"
|
23
23
|
end
|
24
24
|
|
25
25
|
it 'pack the gem' do
|
26
|
-
FileUtils.rm_f
|
27
|
-
|
26
|
+
FileUtils.rm_f gem_name
|
27
|
+
out, _ = capture_subprocess_io do
|
28
28
|
# need newer jruby version
|
29
|
-
RubyMaven.exec( '-Dverbose', 'package', '-Djruby.version=
|
29
|
+
RubyMaven.exec( '-Dverbose', 'package', '-Djruby.version=9.3.0.0' )
|
30
30
|
end
|
31
|
-
|
32
|
-
|
33
|
-
File.exists?(
|
34
|
-
File.exists?( '.mvn/extensions.xml' ).
|
35
|
-
File.exists?( '.mvn/extensions.xml.orig' ).wont_equal true
|
31
|
+
_(out).must_match /mvn -Dverbose package/
|
32
|
+
_(File.exists?( gem_name )).must_equal true
|
33
|
+
_(File.exists?( '.mvn/extensions.xml' )).must_equal true
|
34
|
+
_(File.exists?( '.mvn/extensions.xml.orig' )).wont_equal true
|
36
35
|
end
|
37
36
|
|
38
37
|
end
|
data/spec/setup.rb
CHANGED
@@ -1,26 +1,5 @@
|
|
1
1
|
$LOAD_PATH.unshift File.expand_path( '../../lib', __FILE__ )
|
2
|
-
begin
|
3
|
-
require 'minitest'
|
4
|
-
rescue LoadError
|
5
|
-
end
|
6
|
-
require 'minitest/autorun'
|
7
|
-
|
8
2
|
|
9
|
-
|
3
|
+
ENV["MT_NO_PLUGINS"] = "true"
|
10
4
|
|
11
|
-
|
12
|
-
out = $stdout
|
13
|
-
err = $stderr
|
14
|
-
@result = StringIO.new
|
15
|
-
$stdout = @result
|
16
|
-
$stderr = @result
|
17
|
-
yield
|
18
|
-
ensure
|
19
|
-
$stdout = out
|
20
|
-
$stderr = err
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.result
|
24
|
-
@result.string
|
25
|
-
end
|
26
|
-
end
|
5
|
+
require 'minitest/autorun'
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-maven
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Meier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - ~>
|
16
|
+
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: 3.3.9
|
19
19
|
name: ruby-maven-libs
|
@@ -21,13 +21,13 @@ dependencies:
|
|
21
21
|
type: :runtime
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.3.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- - ~>
|
30
|
+
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '5.3'
|
33
33
|
name: minitest
|
@@ -35,23 +35,23 @@ dependencies:
|
|
35
35
|
type: :development
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '5.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - ~>
|
44
|
+
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '12.3'
|
47
47
|
name: rake
|
48
48
|
prerelease: false
|
49
49
|
type: :development
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '12.3'
|
55
55
|
description: maven support for ruby DSL pom files. MRI needs java/javac installed.
|
56
56
|
email:
|
57
57
|
- m.kristian@web.de
|
@@ -60,7 +60,7 @@ executables:
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- .mvn/extensions.xml
|
63
|
+
- ".mvn/extensions.xml"
|
64
64
|
- Gemfile
|
65
65
|
- Mavenfile
|
66
66
|
- README.md
|
@@ -74,32 +74,30 @@ files:
|
|
74
74
|
- lib/ruby_maven.rb
|
75
75
|
- ruby-maven.gemspec
|
76
76
|
- spec/maven_ruby_maven_spec.rb
|
77
|
-
- spec/maven_ruby_maven_spec.rb~
|
78
77
|
- spec/ruby_maven_spec.rb
|
79
78
|
- spec/setup.rb
|
80
|
-
homepage: https://github.com/
|
79
|
+
homepage: https://github.com/jruby/ruby-maven
|
81
80
|
licenses:
|
82
|
-
- EPL
|
81
|
+
- EPL-2.0
|
83
82
|
metadata: {}
|
84
83
|
post_install_message:
|
85
84
|
rdoc_options:
|
86
|
-
- --main
|
85
|
+
- "--main"
|
87
86
|
- README.md
|
88
87
|
require_paths:
|
89
88
|
- lib
|
90
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
90
|
requirements:
|
92
|
-
- -
|
91
|
+
- - ">="
|
93
92
|
- !ruby/object:Gem::Version
|
94
93
|
version: '0'
|
95
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
95
|
requirements:
|
97
|
-
- -
|
96
|
+
- - ">="
|
98
97
|
- !ruby/object:Gem::Version
|
99
98
|
version: '0'
|
100
99
|
requirements: []
|
101
|
-
|
102
|
-
rubygems_version: 2.4.8
|
100
|
+
rubygems_version: 3.2.29
|
103
101
|
signing_key:
|
104
102
|
specification_version: 4
|
105
103
|
summary: maven support for ruby projects
|
@@ -1,55 +0,0 @@
|
|
1
|
-
require_relative 'setup'
|
2
|
-
require 'ruby_maven'
|
3
|
-
require 'stringio'
|
4
|
-
require 'maven/ruby/version'
|
5
|
-
|
6
|
-
module CatchStdout
|
7
|
-
|
8
|
-
def self.exec
|
9
|
-
out = $stdout
|
10
|
-
err = $stderr
|
11
|
-
@result = StringIO.new
|
12
|
-
$stdout = @result
|
13
|
-
$stderr = @result
|
14
|
-
yield
|
15
|
-
ensure
|
16
|
-
$stdout = out
|
17
|
-
$stderr = err
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.result
|
21
|
-
@result.string
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
describe RubyMaven do
|
26
|
-
|
27
|
-
it 'displays the version info' do
|
28
|
-
Dir.chdir 'spec' do
|
29
|
-
CatchStdout.exec do
|
30
|
-
RubyMaven.exec( '--version' )
|
31
|
-
end
|
32
|
-
CatchStdout.result.must_match /Polyglot Maven Extension 0.1.15/
|
33
|
-
xml = File.read('.mvn/extensions.xml')
|
34
|
-
xml.must_equal "dummy\n"
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
let :gem do
|
39
|
-
v = Maven::Ruby::VERSION
|
40
|
-
v += '-SNAPSHOT' if v =~ /[a-zA-Z]/
|
41
|
-
"pkg/ruby-maven-#{v}.gem"
|
42
|
-
end
|
43
|
-
|
44
|
-
it 'pack the gem' do
|
45
|
-
FileUtils.rm_f gem
|
46
|
-
CatchStdout.exec do
|
47
|
-
RubyMaven.exec( '-Dverbose', 'package' )
|
48
|
-
end
|
49
|
-
CatchStdout.result.must_match /mvn -Dverbose package/
|
50
|
-
File.exists?( gem ).must_equal true
|
51
|
-
File.exists?( '.mvn/extensions.xml' ).must_equal true
|
52
|
-
File.exists?( '.mvn/extensions.xml.orig' ).wont_equal true
|
53
|
-
end
|
54
|
-
|
55
|
-
end
|