maven-tools 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/maven/tools/dsl/gem_support.rb +1 -1
- data/lib/maven/tools/dsl/jarfile_lock.rb +1 -1
- data/lib/maven/tools/dsl/jars_lock.rb +1 -1
- data/lib/maven/tools/dsl.rb +4 -4
- data/lib/maven/tools/gemfile_lock.rb +1 -1
- data/lib/maven/tools/jarfile.rb +4 -4
- data/lib/maven/tools/pom.rb +1 -1
- data/lib/maven/tools/version.rb +1 -1
- data/lib/maven/tools/versions.rb +2 -2
- data/spec/artifact_spec.rb +43 -43
- data/spec/coordinate_spec.rb +55 -55
- data/spec/dsl/gemspec_spec/jars_and_poms.xml +2 -2
- data/spec/dsl/gemspec_spec/jars_and_poms_include_jars.xml +2 -2
- data/spec/dsl/gemspec_spec/maven-tools.xml +2 -2
- data/spec/dsl/gemspec_spec.rb +4 -4
- data/spec/dsl/jarfile_lock_spec.rb +44 -44
- data/spec/dsl/profile_gemspec_spec/jars_and_poms.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/jars_and_poms_include_jars.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/maven-tools.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/no_gems.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/snapshot.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/unknown_license.xml +2 -2
- data/spec/dsl/profile_gemspec_spec.rb +7 -7
- data/spec/dsl/project_gemspec_spec/extended.xml +2 -2
- data/spec/dsl/project_gemspec_spec/jars_and_poms.xml +2 -2
- data/spec/dsl/project_gemspec_spec/jars_and_poms_include_jars.xml +2 -2
- data/spec/dsl/project_gemspec_spec/maven-tools.xml +2 -2
- data/spec/dsl/project_gemspec_spec/no_gems.xml +2 -2
- data/spec/dsl/project_gemspec_spec/profile.xml +2 -2
- data/spec/dsl/project_gemspec_spec/snapshot.xml +2 -2
- data/spec/dsl/project_gemspec_spec/unknown_license.xml +2 -2
- data/spec/dsl/project_gemspec_spec.rb +9 -9
- data/spec/gemfile/pom.xml +2 -2
- data/spec/gemfile_include_jars/pom.xml +2 -2
- data/spec/gemfile_with_access_to_model/pom.xml +2 -2
- data/spec/gemfile_with_custom_source/pom.xml +2 -2
- data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +2 -2
- data/spec/gemfile_with_extras/pom.xml +2 -2
- data/spec/gemfile_with_groups/pom.xml +2 -2
- data/spec/gemfile_with_groups_and_lockfile/pom.xml +2 -2
- data/spec/gemfile_with_jars_lock/pom.xml +2 -2
- data/spec/gemfile_with_lock/pom.xml +2 -2
- data/spec/gemfile_with_path/pom.xml +2 -2
- data/spec/gemfile_with_platforms/pom.xml +2 -2
- data/spec/gemfile_with_source/pom.xml +2 -2
- data/spec/gemfile_with_source_and_custom_jarname/pom.xml +2 -2
- data/spec/gemfile_with_source_and_no_jar/pom.xml +2 -2
- data/spec/gemfile_with_test_group/pom.xml +2 -2
- data/spec/gemfile_with_two_sources/pom.xml +2 -2
- data/spec/gemfile_without_gemspec/pom.xml +2 -2
- data/spec/gemspec/pom.xml +2 -2
- data/spec/gemspec_dependencies_spec.rb +4 -4
- data/spec/gemspec_in_profile/pom.xml +2 -2
- data/spec/gemspec_include_jars/pom.xml +2 -2
- data/spec/gemspec_no_rubygems_repo/pom.xml +2 -2
- data/spec/gemspec_prerelease/pom.xml +2 -2
- data/spec/gemspec_prerelease_snapshot/pom.xml +2 -2
- data/spec/gemspec_with_access_to_model/pom.xml +2 -2
- data/spec/gemspec_with_custom_source/pom.xml +2 -2
- data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +2 -2
- data/spec/gemspec_with_extras/pom.xml +2 -2
- data/spec/gemspec_with_jar_dependencies/pom.xml +2 -2
- data/spec/gemspec_with_jars_lock/pom.xml +2 -2
- data/spec/gemspec_with_prereleased_dependency/pom.xml +2 -2
- data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +2 -2
- data/spec/gemspec_with_source/pom.xml +2 -2
- data/spec/gemspec_with_source_and_custom_jarname/pom.xml +2 -2
- data/spec/gemspec_with_source_and_no_jar/pom.xml +2 -2
- data/spec/jarfile_spec.rb +20 -20
- data/spec/mavenfile/Mavenfile +1 -1
- data/spec/pom.xml +1 -1
- data/spec/pom_maven_alternative_style/pom.rb +1 -1
- data/spec/pom_maven_hash_style/pom.rb +1 -1
- data/spec/pom_maven_style/pom.rb +1 -1
- data/spec/pom_spec.rb +2 -2
- metadata +2 -2
@@ -9,29 +9,29 @@ describe Maven::Tools::DSL::JarfileLock do
|
|
9
9
|
|
10
10
|
it 'loads legacy Jarfile.lock' do
|
11
11
|
lock = subject.new( base + '.legacy' )
|
12
|
-
lock.coordinates( :test ).size.must_equal 0
|
13
|
-
lock.coordinates.size.must_equal 52
|
12
|
+
_(lock.coordinates( :test ).size).must_equal 0
|
13
|
+
_(lock.coordinates.size).must_equal 52
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'loads Jarfile.lock' do
|
17
17
|
lock = subject.new( base )
|
18
|
-
lock.coordinates( :test ).size.must_equal 7
|
19
|
-
lock.coordinates.size.must_equal 45
|
18
|
+
_(lock.coordinates( :test ).size).must_equal 7
|
19
|
+
_(lock.coordinates.size).must_equal 45
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'tests existence' do
|
23
23
|
lock = subject.new( base )
|
24
24
|
( lock.coordinates( :test ) + lock.coordinates ).each do |c|
|
25
|
-
lock.exists?( c ).must_equal true
|
26
|
-
lock.exists?( c + ".bla" ).must_equal false
|
25
|
+
_(lock.exists?( c )).must_equal true
|
26
|
+
_(lock.exists?( c + ".bla" )).must_equal false
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'tests locked' do
|
31
31
|
lock = subject.new( base )
|
32
32
|
( lock.coordinates( :test ) + lock.coordinates ).each do |c|
|
33
|
-
lock.locked?( c ).must_equal true
|
34
|
-
lock.locked?( c + ".bla" ).must_equal true
|
33
|
+
_(lock.locked?( c )).must_equal true
|
34
|
+
_(lock.locked?( c + ".bla" )).must_equal true
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -45,8 +45,8 @@ describe Maven::Tools::DSL::JarfileLock do
|
|
45
45
|
:runtime => [ 'huffle:puffle:321' ] } )
|
46
46
|
lock.dump
|
47
47
|
lock = subject.new( file )
|
48
|
-
lock.coordinates.must_equal ['huffle:puffle:321']
|
49
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
48
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321']
|
49
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
50
50
|
ensure
|
51
51
|
FileUtils.rm_f file_lock
|
52
52
|
end
|
@@ -57,43 +57,43 @@ describe Maven::Tools::DSL::JarfileLock do
|
|
57
57
|
|
58
58
|
lock.replace( { :test => [ 'bla:blas:123' ],
|
59
59
|
:runtime => [ 'huffle:puffle:321' ] } )
|
60
|
-
lock.coordinates.must_equal ['huffle:puffle:321']
|
61
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
60
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321']
|
61
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
62
62
|
|
63
63
|
lock.replace( { :runtime => [ 'huffle:puffle:321' ] } )
|
64
|
-
lock.coordinates.must_equal ['huffle:puffle:321']
|
65
|
-
lock.coordinates( :test ).must_equal []
|
64
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321']
|
65
|
+
_(lock.coordinates( :test )).must_equal []
|
66
66
|
|
67
67
|
lock.replace( { :test => [ 'bla:blas:123' ]} )
|
68
|
-
lock.coordinates.must_equal []
|
69
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
68
|
+
_(lock.coordinates).must_equal []
|
69
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
70
70
|
end
|
71
71
|
|
72
72
|
it 'can add missing data idempotent' do
|
73
73
|
lock = subject.new( 'something' )
|
74
74
|
|
75
|
-
lock.update_unlocked( { :test => [ 'bla:blas:123' ],
|
76
|
-
:runtime => [ 'huffle:puffle:321' ] } ).must_equal true
|
77
|
-
lock.update_unlocked( { :test => [ 'bla:blas:123' ],
|
78
|
-
:runtime => [ 'huffle:puffle:321' ] } ).must_equal true
|
79
|
-
lock.coordinates.must_equal ['huffle:puffle:321']
|
80
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
75
|
+
_(lock.update_unlocked( { :test => [ 'bla:blas:123' ],
|
76
|
+
:runtime => [ 'huffle:puffle:321' ] } )).must_equal true
|
77
|
+
_(lock.update_unlocked( { :test => [ 'bla:blas:123' ],
|
78
|
+
:runtime => [ 'huffle:puffle:321' ] } )).must_equal true
|
79
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321']
|
80
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
81
81
|
|
82
|
-
lock.update_unlocked( { :runtime => [ 'huffle:puffle:321' ] } ).must_equal true
|
83
|
-
lock.coordinates.must_equal ['huffle:puffle:321']
|
84
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
82
|
+
_(lock.update_unlocked( { :runtime => [ 'huffle:puffle:321' ] } )).must_equal true
|
83
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321']
|
84
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
85
85
|
|
86
|
-
lock.update_unlocked( { :runtime => [ 'huffle:puffle2:321' ] } ).must_equal true
|
87
|
-
lock.coordinates.must_equal ['huffle:puffle:321', 'huffle:puffle2:321']
|
88
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
86
|
+
_(lock.update_unlocked( { :runtime => [ 'huffle:puffle2:321' ] } )).must_equal true
|
87
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321', 'huffle:puffle2:321']
|
88
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
89
89
|
|
90
|
-
lock.update_unlocked( { :test => [ 'bla:blas:123' ]} ).must_equal true
|
91
|
-
lock.coordinates.must_equal ['huffle:puffle:321', 'huffle:puffle2:321']
|
92
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
90
|
+
_(lock.update_unlocked( { :test => [ 'bla:blas:123' ]} )).must_equal true
|
91
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321', 'huffle:puffle2:321']
|
92
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
93
93
|
|
94
|
-
lock.update_unlocked( { :test => [ 'bla:bla2:123' ]} ).must_equal true
|
95
|
-
lock.coordinates.must_equal ['huffle:puffle:321', 'huffle:puffle2:321']
|
96
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123', 'bla:bla2:123']
|
94
|
+
_(lock.update_unlocked( { :test => [ 'bla:bla2:123' ]} )).must_equal true
|
95
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321', 'huffle:puffle2:321']
|
96
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123', 'bla:bla2:123']
|
97
97
|
end
|
98
98
|
|
99
99
|
it 'fails add data on version conflict' do
|
@@ -102,17 +102,17 @@ describe Maven::Tools::DSL::JarfileLock do
|
|
102
102
|
lock.replace( { :test => [ 'bla:blas:123' ],
|
103
103
|
:runtime => [ 'huffle:puffle:321' ] } )
|
104
104
|
|
105
|
-
lock.update_unlocked( { :test => [ 'bla:blas:1233' ],
|
106
|
-
:runtime => [ 'huffle:puffle:3214' ] } ).must_equal false
|
107
|
-
lock.coordinates.must_equal ['huffle:puffle:321']
|
108
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
105
|
+
_(lock.update_unlocked( { :test => [ 'bla:blas:1233' ],
|
106
|
+
:runtime => [ 'huffle:puffle:3214' ] } )).must_equal false
|
107
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321']
|
108
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
109
109
|
|
110
|
-
lock.update_unlocked( { :runtime => [ 'huffle:puffle:3214' ] } ).must_equal false
|
111
|
-
lock.coordinates.must_equal ['huffle:puffle:321']
|
112
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
110
|
+
_(lock.update_unlocked( { :runtime => [ 'huffle:puffle:3214' ] } )).must_equal false
|
111
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321']
|
112
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
113
113
|
|
114
|
-
lock.update_unlocked( { :test => [ 'bla:blas:1233' ]} ).must_equal false
|
115
|
-
lock.coordinates.must_equal ['huffle:puffle:321']
|
116
|
-
lock.coordinates( :test ).must_equal ['bla:blas:123']
|
114
|
+
_(lock.update_unlocked( { :test => [ 'bla:blas:1233' ]} )).must_equal false
|
115
|
+
_(lock.coordinates).must_equal ['huffle:puffle:321']
|
116
|
+
_(lock.coordinates( :test )).must_equal ['bla:blas:123']
|
117
117
|
end
|
118
118
|
end
|
@@ -6,8 +6,8 @@
|
|
6
6
|
<name>profile_gemspec_spec</name>
|
7
7
|
<properties>
|
8
8
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
9
|
-
<jruby.plugins.version>3.0.0
|
10
|
-
<mavengem.wagon.version>2.0.0
|
9
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
10
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
11
11
|
</properties>
|
12
12
|
<dependencies>
|
13
13
|
<dependency>
|
@@ -6,8 +6,8 @@
|
|
6
6
|
<name>profile_gemspec_spec</name>
|
7
7
|
<properties>
|
8
8
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
9
|
-
<jruby.plugins.version>3.0.0
|
10
|
-
<mavengem.wagon.version>2.0.0
|
9
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
10
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
11
11
|
</properties>
|
12
12
|
<dependencies>
|
13
13
|
<dependency>
|
@@ -6,8 +6,8 @@
|
|
6
6
|
<name>BASEDIR</name>
|
7
7
|
<properties>
|
8
8
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
9
|
-
<jruby.plugins.version>3.0.0
|
10
|
-
<mavengem.wagon.version>2.0.0
|
9
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
10
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
11
11
|
</properties>
|
12
12
|
<dependencies>
|
13
13
|
<dependency>
|
@@ -6,8 +6,8 @@
|
|
6
6
|
<name>profile_gemspec_spec</name>
|
7
7
|
<properties>
|
8
8
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
9
|
-
<jruby.plugins.version>3.0.0
|
10
|
-
<mavengem.wagon.version>2.0.0
|
9
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
10
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
11
11
|
</properties>
|
12
12
|
<repositories>
|
13
13
|
<repository>
|
@@ -6,8 +6,8 @@
|
|
6
6
|
<name>profile_gemspec_spec</name>
|
7
7
|
<properties>
|
8
8
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
9
|
-
<jruby.plugins.version>3.0.0
|
10
|
-
<mavengem.wagon.version>2.0.0
|
9
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
10
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
11
11
|
</properties>
|
12
12
|
<repositories>
|
13
13
|
<repository>
|
@@ -6,8 +6,8 @@
|
|
6
6
|
<name>profile_gemspec_spec</name>
|
7
7
|
<properties>
|
8
8
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
9
|
-
<jruby.plugins.version>3.0.0
|
10
|
-
<mavengem.wagon.version>2.0.0
|
9
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
10
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
11
11
|
</properties>
|
12
12
|
<repositories>
|
13
13
|
<repository>
|
@@ -34,7 +34,7 @@ describe Maven::Tools::DSL::ProfileGemspec do
|
|
34
34
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
35
35
|
v = Maven::Tools::VERSION
|
36
36
|
v += '-SNAPSHOT' if v =~ /.dev$/
|
37
|
-
xml.must_equal( ProfileGemspecFile.read( 'maven-tools.xml', 'maven-tools',
|
37
|
+
_(xml).must_equal( ProfileGemspecFile.read( 'maven-tools.xml', 'maven-tools',
|
38
38
|
v ) )
|
39
39
|
end
|
40
40
|
|
@@ -42,28 +42,28 @@ describe Maven::Tools::DSL::ProfileGemspec do
|
|
42
42
|
subject.new parent, 'maven-tools.gemspec'
|
43
43
|
xml = ""
|
44
44
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
45
|
-
xml.must_equal( ProfileGemspecFile.read( 'maven-tools.xml', 'profile_gemspec_spec' ) )
|
45
|
+
_(xml).must_equal( ProfileGemspecFile.read( 'maven-tools.xml', 'profile_gemspec_spec' ) )
|
46
46
|
end
|
47
47
|
|
48
48
|
it 'evals maven_tools.gemspec from yaml no gem dependencies' do
|
49
49
|
subject.new parent, 'maven-tools.gemspec', :no_gems => true
|
50
50
|
xml = ""
|
51
51
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
52
|
-
xml.must_equal( ProfileGemspecFile.read( 'no_gems.xml', 'gemspec_spec' ) )
|
52
|
+
_(xml).must_equal( ProfileGemspecFile.read( 'no_gems.xml', 'gemspec_spec' ) )
|
53
53
|
end
|
54
54
|
|
55
55
|
it 'evals snapshot.gemspec' do
|
56
56
|
subject.new parent, 'snapshot.gemspec'
|
57
57
|
xml = ""
|
58
58
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
59
|
-
xml.must_equal( ProfileGemspecFile.read( 'snapshot.xml', 'snapshot', '1.a-SNAPSHOT' ) )
|
59
|
+
_(xml).must_equal( ProfileGemspecFile.read( 'snapshot.xml', 'snapshot', '1.a-SNAPSHOT' ) )
|
60
60
|
end
|
61
61
|
|
62
62
|
it 'evals gemspec with jar and pom dependencies' do
|
63
63
|
subject.new parent, 'jars_and_poms.gemspec'
|
64
64
|
xml = ""
|
65
65
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
66
|
-
xml.must_equal( ProfileGemspecFile.read( 'jars_and_poms.xml',
|
66
|
+
_(xml).must_equal( ProfileGemspecFile.read( 'jars_and_poms.xml',
|
67
67
|
'gemspec_spec' ) )
|
68
68
|
end
|
69
69
|
|
@@ -71,7 +71,7 @@ describe Maven::Tools::DSL::ProfileGemspec do
|
|
71
71
|
subject.new parent, :name => 'jars_and_poms.gemspec', :include_jars => true
|
72
72
|
xml = ""
|
73
73
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
74
|
-
xml.must_equal( ProfileGemspecFile.read( 'jars_and_poms_include_jars.xml',
|
74
|
+
_(xml).must_equal( ProfileGemspecFile.read( 'jars_and_poms_include_jars.xml',
|
75
75
|
'gemspec_spec' ) )
|
76
76
|
end
|
77
77
|
|
@@ -79,6 +79,6 @@ describe Maven::Tools::DSL::ProfileGemspec do
|
|
79
79
|
subject.new parent, 'unknown_license.gemspec'
|
80
80
|
xml = ""
|
81
81
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
82
|
-
xml.must_equal( ProfileGemspecFile.read( 'unknown_license.xml', 'gemspec_spec' ) )
|
82
|
+
_(xml).must_equal( ProfileGemspecFile.read( 'unknown_license.xml', 'gemspec_spec' ) )
|
83
83
|
end
|
84
84
|
end
|
@@ -26,8 +26,8 @@
|
|
26
26
|
</scm>
|
27
27
|
<properties>
|
28
28
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
29
|
-
<jruby.plugins.version>3.0.0
|
30
|
-
<mavengem.wagon.version>2.0.0
|
29
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
30
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
31
31
|
</properties>
|
32
32
|
<dependencies>
|
33
33
|
<dependency>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
</scm>
|
27
27
|
<properties>
|
28
28
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
29
|
-
<jruby.plugins.version>3.0.0
|
30
|
-
<mavengem.wagon.version>2.0.0
|
29
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
30
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
31
31
|
</properties>
|
32
32
|
<dependencies>
|
33
33
|
<dependency>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
</scm>
|
27
27
|
<properties>
|
28
28
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
29
|
-
<jruby.plugins.version>3.0.0
|
30
|
-
<mavengem.wagon.version>2.0.0
|
29
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
30
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
31
31
|
</properties>
|
32
32
|
<dependencies>
|
33
33
|
<dependency>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
</scm>
|
27
27
|
<properties>
|
28
28
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
29
|
-
<jruby.plugins.version>3.0.0
|
30
|
-
<mavengem.wagon.version>2.0.0
|
29
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
30
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
31
31
|
</properties>
|
32
32
|
<dependencies>
|
33
33
|
<dependency>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
</scm>
|
27
27
|
<properties>
|
28
28
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
29
|
-
<jruby.plugins.version>3.0.0
|
30
|
-
<mavengem.wagon.version>2.0.0
|
29
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
30
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
31
31
|
</properties>
|
32
32
|
<repositories>
|
33
33
|
<repository>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
</scm>
|
27
27
|
<properties>
|
28
28
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
29
|
-
<jruby.plugins.version>3.0.0
|
30
|
-
<mavengem.wagon.version>2.0.0
|
29
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
30
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
31
31
|
</properties>
|
32
32
|
<repositories>
|
33
33
|
<repository>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
</scm>
|
27
27
|
<properties>
|
28
28
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
29
|
-
<jruby.plugins.version>3.0.0
|
30
|
-
<mavengem.wagon.version>2.0.0
|
29
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
30
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
31
31
|
</properties>
|
32
32
|
<repositories>
|
33
33
|
<repository>
|
@@ -24,8 +24,8 @@
|
|
24
24
|
</scm>
|
25
25
|
<properties>
|
26
26
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
27
|
-
<jruby.plugins.version>3.0.0
|
28
|
-
<mavengem.wagon.version>2.0.0
|
27
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
28
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
29
29
|
</properties>
|
30
30
|
<repositories>
|
31
31
|
<repository>
|
@@ -34,7 +34,7 @@ describe Maven::Tools::DSL::ProjectGemspec do
|
|
34
34
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
35
35
|
v = Maven::Tools::VERSION
|
36
36
|
v += '-SNAPSHOT' if v =~ /.[[:alpha:]][[:alnum:]]*$/
|
37
|
-
xml.must_equal( XmlFile.read( 'maven-tools.xml', 'maven-tools',
|
37
|
+
_(xml).must_equal( XmlFile.read( 'maven-tools.xml', 'maven-tools',
|
38
38
|
v ) )
|
39
39
|
end
|
40
40
|
|
@@ -42,35 +42,35 @@ describe Maven::Tools::DSL::ProjectGemspec do
|
|
42
42
|
subject.new parent, 'maven-tools.gemspec'
|
43
43
|
xml = ""
|
44
44
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
45
|
-
xml.must_equal( XmlFile.read( 'maven-tools.xml', 'gemspec_spec' ) )
|
45
|
+
_(xml).must_equal( XmlFile.read( 'maven-tools.xml', 'gemspec_spec' ) )
|
46
46
|
end
|
47
47
|
|
48
48
|
it 'evals maven_tools.gemspec from yaml with profile' do
|
49
49
|
subject.new parent, 'maven-tools.gemspec', :profile => :hidden
|
50
50
|
xml = ""
|
51
51
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
52
|
-
xml.must_equal( XmlFile.read( 'profile.xml', 'gemspec_spec' ) )
|
52
|
+
_(xml).must_equal( XmlFile.read( 'profile.xml', 'gemspec_spec' ) )
|
53
53
|
end
|
54
54
|
|
55
55
|
it 'evals maven_tools.gemspec from yaml no gem dependencies' do
|
56
56
|
subject.new parent, 'maven-tools.gemspec', :no_gems => true
|
57
57
|
xml = ""
|
58
58
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
59
|
-
xml.must_equal( XmlFile.read( 'no_gems.xml', 'gemspec_spec' ) )
|
59
|
+
_(xml).must_equal( XmlFile.read( 'no_gems.xml', 'gemspec_spec' ) )
|
60
60
|
end
|
61
61
|
|
62
62
|
it 'evals snapshot.gemspec' do
|
63
63
|
subject.new parent, 'snapshot.gemspec'
|
64
64
|
xml = ""
|
65
65
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
66
|
-
xml.must_equal( XmlFile.read( 'snapshot.xml', 'snapshot', '1.a-SNAPSHOT' ) )
|
66
|
+
_(xml).must_equal( XmlFile.read( 'snapshot.xml', 'snapshot', '1.a-SNAPSHOT' ) )
|
67
67
|
end
|
68
68
|
|
69
69
|
it 'evals gemspec with jar and pom dependencies' do
|
70
70
|
subject.new parent, 'jars_and_poms.gemspec'
|
71
71
|
xml = ""
|
72
72
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
73
|
-
xml.must_equal( XmlFile.read( 'jars_and_poms.xml',
|
73
|
+
_(xml).must_equal( XmlFile.read( 'jars_and_poms.xml',
|
74
74
|
'gemspec_spec' ) )
|
75
75
|
end
|
76
76
|
|
@@ -78,7 +78,7 @@ describe Maven::Tools::DSL::ProjectGemspec do
|
|
78
78
|
subject.new parent, :name => 'jars_and_poms.gemspec', :include_jars => true
|
79
79
|
xml = ""
|
80
80
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
81
|
-
xml.must_equal( XmlFile.read( 'jars_and_poms_include_jars.xml',
|
81
|
+
_(xml).must_equal( XmlFile.read( 'jars_and_poms_include_jars.xml',
|
82
82
|
'gemspec_spec' ) )
|
83
83
|
end
|
84
84
|
|
@@ -91,7 +91,7 @@ describe Maven::Tools::DSL::ProjectGemspec do
|
|
91
91
|
subject.new parent, :name => 'extended.gemspec'
|
92
92
|
xml = ""
|
93
93
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
94
|
-
xml.must_equal( XmlFile.read( 'extended.xml',
|
94
|
+
_(xml).must_equal( XmlFile.read( 'extended.xml',
|
95
95
|
'gemspec_spec' ) )
|
96
96
|
end
|
97
97
|
|
@@ -99,6 +99,6 @@ describe Maven::Tools::DSL::ProjectGemspec do
|
|
99
99
|
subject.new parent, :name => 'unknown_license.gemspec'
|
100
100
|
xml = ""
|
101
101
|
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
|
102
|
-
xml.must_equal( XmlFile.read( 'unknown_license.xml', 'gemspec_spec') )
|
102
|
+
_(xml).must_equal( XmlFile.read( 'unknown_license.xml', 'gemspec_spec') )
|
103
103
|
end
|
104
104
|
end
|
data/spec/gemfile/pom.xml
CHANGED
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
<version_from_model>1.5.0</version_from_model>
|
36
36
|
</properties>
|
37
37
|
<repositories>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
<tesla.dump.pom>pom.xml</tesla.dump.pom>
|
36
36
|
<tesla.dump.readonly>true</tesla.dump.readonly>
|
37
37
|
</properties>
|
@@ -17,8 +17,8 @@
|
|
17
17
|
<name>gemfile_with_groups</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>3.0.0
|
21
|
-
<mavengem.wagon.version>2.0.0
|
20
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
21
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
22
22
|
</properties>
|
23
23
|
<dependencies>
|
24
24
|
<dependency>
|
@@ -17,8 +17,8 @@
|
|
17
17
|
<name>gemfile_with_groups_and_lockfile</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>3.0.0
|
21
|
-
<mavengem.wagon.version>2.0.0
|
20
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
21
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
22
22
|
</properties>
|
23
23
|
<repositories>
|
24
24
|
<repository>
|
@@ -17,8 +17,8 @@
|
|
17
17
|
<name>gemfile_with_jars_lock</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>3.0.0
|
21
|
-
<mavengem.wagon.version>2.0.0
|
20
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
21
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
22
22
|
</properties>
|
23
23
|
<repositories>
|
24
24
|
<repository>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -17,8 +17,8 @@
|
|
17
17
|
<name>gemfile_with_path</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>3.0.0
|
21
|
-
<mavengem.wagon.version>2.0.0
|
20
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
21
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
22
22
|
</properties>
|
23
23
|
<dependencies>
|
24
24
|
<dependency>
|
@@ -17,8 +17,8 @@
|
|
17
17
|
<name>gemfile_with_platforms</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>3.0.0
|
21
|
-
<mavengem.wagon.version>2.0.0
|
20
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
21
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
22
22
|
</properties>
|
23
23
|
<dependencies>
|
24
24
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|