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.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/lib/maven/tools/dsl/gem_support.rb +1 -1
  4. data/lib/maven/tools/dsl/jarfile_lock.rb +1 -1
  5. data/lib/maven/tools/dsl/jars_lock.rb +1 -1
  6. data/lib/maven/tools/dsl.rb +4 -4
  7. data/lib/maven/tools/gemfile_lock.rb +1 -1
  8. data/lib/maven/tools/jarfile.rb +4 -4
  9. data/lib/maven/tools/pom.rb +1 -1
  10. data/lib/maven/tools/version.rb +1 -1
  11. data/lib/maven/tools/versions.rb +2 -2
  12. data/spec/artifact_spec.rb +43 -43
  13. data/spec/coordinate_spec.rb +55 -55
  14. data/spec/dsl/gemspec_spec/jars_and_poms.xml +2 -2
  15. data/spec/dsl/gemspec_spec/jars_and_poms_include_jars.xml +2 -2
  16. data/spec/dsl/gemspec_spec/maven-tools.xml +2 -2
  17. data/spec/dsl/gemspec_spec.rb +4 -4
  18. data/spec/dsl/jarfile_lock_spec.rb +44 -44
  19. data/spec/dsl/profile_gemspec_spec/jars_and_poms.xml +2 -2
  20. data/spec/dsl/profile_gemspec_spec/jars_and_poms_include_jars.xml +2 -2
  21. data/spec/dsl/profile_gemspec_spec/maven-tools.xml +2 -2
  22. data/spec/dsl/profile_gemspec_spec/no_gems.xml +2 -2
  23. data/spec/dsl/profile_gemspec_spec/snapshot.xml +2 -2
  24. data/spec/dsl/profile_gemspec_spec/unknown_license.xml +2 -2
  25. data/spec/dsl/profile_gemspec_spec.rb +7 -7
  26. data/spec/dsl/project_gemspec_spec/extended.xml +2 -2
  27. data/spec/dsl/project_gemspec_spec/jars_and_poms.xml +2 -2
  28. data/spec/dsl/project_gemspec_spec/jars_and_poms_include_jars.xml +2 -2
  29. data/spec/dsl/project_gemspec_spec/maven-tools.xml +2 -2
  30. data/spec/dsl/project_gemspec_spec/no_gems.xml +2 -2
  31. data/spec/dsl/project_gemspec_spec/profile.xml +2 -2
  32. data/spec/dsl/project_gemspec_spec/snapshot.xml +2 -2
  33. data/spec/dsl/project_gemspec_spec/unknown_license.xml +2 -2
  34. data/spec/dsl/project_gemspec_spec.rb +9 -9
  35. data/spec/gemfile/pom.xml +2 -2
  36. data/spec/gemfile_include_jars/pom.xml +2 -2
  37. data/spec/gemfile_with_access_to_model/pom.xml +2 -2
  38. data/spec/gemfile_with_custom_source/pom.xml +2 -2
  39. data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +2 -2
  40. data/spec/gemfile_with_extras/pom.xml +2 -2
  41. data/spec/gemfile_with_groups/pom.xml +2 -2
  42. data/spec/gemfile_with_groups_and_lockfile/pom.xml +2 -2
  43. data/spec/gemfile_with_jars_lock/pom.xml +2 -2
  44. data/spec/gemfile_with_lock/pom.xml +2 -2
  45. data/spec/gemfile_with_path/pom.xml +2 -2
  46. data/spec/gemfile_with_platforms/pom.xml +2 -2
  47. data/spec/gemfile_with_source/pom.xml +2 -2
  48. data/spec/gemfile_with_source_and_custom_jarname/pom.xml +2 -2
  49. data/spec/gemfile_with_source_and_no_jar/pom.xml +2 -2
  50. data/spec/gemfile_with_test_group/pom.xml +2 -2
  51. data/spec/gemfile_with_two_sources/pom.xml +2 -2
  52. data/spec/gemfile_without_gemspec/pom.xml +2 -2
  53. data/spec/gemspec/pom.xml +2 -2
  54. data/spec/gemspec_dependencies_spec.rb +4 -4
  55. data/spec/gemspec_in_profile/pom.xml +2 -2
  56. data/spec/gemspec_include_jars/pom.xml +2 -2
  57. data/spec/gemspec_no_rubygems_repo/pom.xml +2 -2
  58. data/spec/gemspec_prerelease/pom.xml +2 -2
  59. data/spec/gemspec_prerelease_snapshot/pom.xml +2 -2
  60. data/spec/gemspec_with_access_to_model/pom.xml +2 -2
  61. data/spec/gemspec_with_custom_source/pom.xml +2 -2
  62. data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +2 -2
  63. data/spec/gemspec_with_extras/pom.xml +2 -2
  64. data/spec/gemspec_with_jar_dependencies/pom.xml +2 -2
  65. data/spec/gemspec_with_jars_lock/pom.xml +2 -2
  66. data/spec/gemspec_with_prereleased_dependency/pom.xml +2 -2
  67. data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +2 -2
  68. data/spec/gemspec_with_source/pom.xml +2 -2
  69. data/spec/gemspec_with_source_and_custom_jarname/pom.xml +2 -2
  70. data/spec/gemspec_with_source_and_no_jar/pom.xml +2 -2
  71. data/spec/jarfile_spec.rb +20 -20
  72. data/spec/mavenfile/Mavenfile +1 -1
  73. data/spec/pom.xml +1 -1
  74. data/spec/pom_maven_alternative_style/pom.rb +1 -1
  75. data/spec/pom_maven_hash_style/pom.rb +1 -1
  76. data/spec/pom_maven_style/pom.rb +1 -1
  77. data/spec/pom_spec.rb +2 -2
  78. metadata +2 -2
@@ -8,8 +8,8 @@
8
8
  <name>gemfile_with_test_group</name>
9
9
  <properties>
10
10
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
11
- <jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
12
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
11
+ <jruby.plugins.version>3.0.0</jruby.plugins.version>
12
+ <mavengem.wagon.version>2.0.0</mavengem.wagon.version>
13
13
  </properties>
14
14
  <repositories>
15
15
  <repository>
@@ -17,8 +17,8 @@
17
17
  <name>gemfile_with_two_sources</name>
18
18
  <properties>
19
19
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
20
- <jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
21
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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_without_gemspec</name>
18
18
  <properties>
19
19
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
20
- <jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
21
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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>
data/spec/gemspec/pom.xml CHANGED
@@ -47,8 +47,8 @@
47
47
  </scm>
48
48
  <properties>
49
49
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
50
- <jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
51
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
50
+ <jruby.plugins.version>3.0.0</jruby.plugins.version>
51
+ <mavengem.wagon.version>2.0.0</mavengem.wagon.version>
52
52
  </properties>
53
53
  <dependencies>
54
54
  <dependency>
@@ -25,9 +25,9 @@ describe Maven::Tools::GemspecDependencies do
25
25
  subject { Maven::Tools::GemspecDependencies.new( spec ) }
26
26
 
27
27
  it 'should setup artifact' do
28
- subject.runtime.must_equal ["rubygems:thor:[0.14.6,2.0)", "rubygems:maven-tools:[0.32.3,0.32.99999]"]
29
- subject.development.must_equal ["rubygems:minitest:[5.3,5.99999]", "rubygems:rake:[10.0,10.99999]"]
30
- subject.java_runtime.must_equal [ ["sdas", "das", "jar", "tes", "123"],
28
+ _(subject.runtime).must_equal ["rubygems:thor:[0.14.6,2.0)", "rubygems:maven-tools:[0.32.3,0.32.99999]"]
29
+ _(subject.development).must_equal ["rubygems:minitest:[5.3,5.99999]", "rubygems:rake:[10.0,10.99999]"]
30
+ _(subject.java_runtime).must_equal [ ["sdas", "das", "jar", "tes", "123"],
31
31
  ["sdas", "das", "jar", "123"],
32
32
  ["sdas.asd", "das", "jar", "123", ["fds:fre"]],
33
33
  ["sdas.asd", "das", "jar", "bla", "123", ["fds:fre", "ferf:de"]],
@@ -37,7 +37,7 @@ describe Maven::Tools::GemspecDependencies do
37
37
  ["de.sdas.asd", "das", "jar", "123", ["fds:fre"]],
38
38
  ["de.sdas.asd", "das", "jar", "bla", "123", ["fds:fre", "ferf:de"]],
39
39
  ["de.sdas.asd", "das", "jar", "blub", "123", ["fds:fre","ferf:de"]] ]
40
- subject.java_dependencies.must_equal [ [:compile, "sdas", "das", "jar", "tes", "123"],
40
+ _(subject.java_dependencies).must_equal [ [:compile, "sdas", "das", "jar", "tes", "123"],
41
41
  [:compile, "sdas", "das", "jar", "123"],
42
42
  [:compile, "sdas.asd", "das", "jar", "123", ["fds:fre"]],
43
43
  [:compile, "sdas.asd", "das", "jar", "bla", "123", ["fds:fre", "ferf:de"]],
@@ -41,8 +41,8 @@
41
41
  </build>
42
42
  <properties>
43
43
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
44
- <jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
45
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
44
+ <jruby.plugins.version>3.0.0</jruby.plugins.version>
45
+ <mavengem.wagon.version>2.0.0</mavengem.wagon.version>
46
46
  </properties>
47
47
  <dependencies>
48
48
  <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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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>
@@ -47,8 +47,8 @@
47
47
  </scm>
48
48
  <properties>
49
49
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
50
- <jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
51
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
50
+ <jruby.plugins.version>3.0.0</jruby.plugins.version>
51
+ <mavengem.wagon.version>2.0.0</mavengem.wagon.version>
52
52
  </properties>
53
53
  <dependencies>
54
54
  <dependency>
@@ -47,8 +47,8 @@
47
47
  </scm>
48
48
  <properties>
49
49
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
50
- <jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
51
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
50
+ <jruby.plugins.version>3.0.0</jruby.plugins.version>
51
+ <mavengem.wagon.version>2.0.0</mavengem.wagon.version>
52
52
  </properties>
53
53
  <dependencies>
54
54
  <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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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-SNAPSHOT</jruby.plugins.version>
34
- <mavengem.wagon.version>2.0.0-SNAPSHOT</mavengem.wagon.version>
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>
data/spec/jarfile_spec.rb CHANGED
@@ -38,7 +38,7 @@ describe Maven::Tools::Jarfile do
38
38
 
39
39
  it 'generates lockfile' do
40
40
  subject.generate_lockfile(%w( a b c d e f ruby.bundler:bla))
41
- File.read(jfile_lock).must_equal <<-EOF
41
+ _(File.read(jfile_lock)).must_equal <<-EOF
42
42
  a
43
43
  b
44
44
  c
@@ -55,10 +55,10 @@ a:b:pom:3
55
55
  a:c:jar:1
56
56
  EOF
57
57
  end
58
- subject.locked.must_equal ["a:b:pom:3", "a:c:jar:1"]
59
- subject.locked?("a:b:pom:321").must_equal true
60
- subject.locked?("a:b:jar:321").must_equal true
61
- subject.locked?("a:d:jar:432").must_equal false
58
+ _(subject.locked).must_equal ["a:b:pom:3", "a:c:jar:1"]
59
+ _(subject.locked?("a:b:pom:321")).must_equal true
60
+ _(subject.locked?("a:b:jar:321")).must_equal true
61
+ _(subject.locked?("a:d:jar:432")).must_equal false
62
62
  end
63
63
 
64
64
  it 'populate repositories' do
@@ -70,11 +70,11 @@ source "http://example.org/repo/3"
70
70
  EOF
71
71
  end
72
72
  subject.populate_unlocked container
73
- container.repositories.size.must_equal 3
74
- container.artifacts.size.must_equal 0
75
- container.repositories[0].must_equal "first"
76
- container.repositories[1].must_equal "second"
77
- container.repositories[2].must_equal "http://example.org/repo/3"
73
+ _(container.repositories.size).must_equal 3
74
+ _(container.artifacts.size).must_equal 0
75
+ _(container.repositories[0]).must_equal "first"
76
+ _(container.repositories[1]).must_equal "second"
77
+ _(container.repositories[2]).must_equal "http://example.org/repo/3"
78
78
  end
79
79
 
80
80
  it 'populate artifacts without locked' do
@@ -85,10 +85,10 @@ pom 'x:y', '987'
85
85
  EOF
86
86
  end
87
87
  subject.populate_unlocked container
88
- container.repositories.size.must_equal 0
89
- container.artifacts.size.must_equal 2
90
- container.artifacts[0].to_s.must_equal "a:b:jar:123"
91
- container.artifacts[1].to_s.must_equal "x:y:pom:987"
88
+ _(container.repositories.size).must_equal 0
89
+ _(container.artifacts.size).must_equal 2
90
+ _(container.artifacts[0].to_s).must_equal "a:b:jar:123"
91
+ _(container.artifacts[1].to_s).must_equal "x:y:pom:987"
92
92
  end
93
93
 
94
94
  it 'populate artifacts with locked' do
@@ -105,9 +105,9 @@ EOF
105
105
  end
106
106
 
107
107
  subject.populate_unlocked container
108
- container.repositories.size.must_equal 0
109
- container.artifacts.size.must_equal 1
110
- container.artifacts[0].to_s.must_equal "x:y:pom:987"
108
+ _(container.repositories.size).must_equal 0
109
+ _(container.artifacts.size).must_equal 1
110
+ _(container.artifacts[0].to_s).must_equal "x:y:pom:987"
111
111
  end
112
112
 
113
113
  it 'populate locked artifacts' do
@@ -118,8 +118,8 @@ EOF
118
118
  end
119
119
 
120
120
  subject.populate_locked container
121
- container.repositories.size.must_equal 0
122
- container.artifacts.size.must_equal 1
123
- container.artifacts[0].to_s.must_equal "a:b:jar:432"
121
+ _(container.repositories.size).must_equal 0
122
+ _(container.artifacts.size).must_equal 1
123
+ _(container.artifacts[0].to_s).must_equal "a:b:jar:432"
124
124
  end
125
125
  end
@@ -265,7 +265,7 @@ plugin 'org.codehaus.mojo:exec-maven-plugin' do
265
265
  end
266
266
 
267
267
  plugin_management do
268
- jruby_plugin( :gem, '3.0.0-SNAPSHOT', :scope => :compile,
268
+ jruby_plugin( :gem, '3.0.0', :scope => :compile,
269
269
  :gems => {
270
270
  'thread_safe' => '0.3.3',
271
271
  'jdbc-mysql' => '5.1.30'
data/spec/pom.xml CHANGED
@@ -317,7 +317,7 @@
317
317
  <plugin>
318
318
  <groupId>org.jruby.maven</groupId>
319
319
  <artifactId>gem-maven-plugin</artifactId>
320
- <version>3.0.0-SNAPSHOT</version>
320
+ <version>3.0.0</version>
321
321
  <configuration>
322
322
  <scope>compile</scope>
323
323
  <gems>
@@ -207,7 +207,7 @@ project 'my name', 'example.com' do
207
207
  end
208
208
 
209
209
  overrides do
210
- jruby_plugin( :gem, '3.0.0-SNAPSHOT', :scope => :compile,
210
+ jruby_plugin( :gem, '3.0.0', :scope => :compile,
211
211
  :gems => {
212
212
  'thread_safe' => '0.3.3',
213
213
  'jdbc-mysql' => '5.1.30'
@@ -227,7 +227,7 @@ project :name => 'my name', :url => 'example.com' do
227
227
  end
228
228
 
229
229
  plugin_management do
230
- jruby_plugin( :gem, '3.0.0-SNAPSHOT', :scope => :compile,
230
+ jruby_plugin( :gem, '3.0.0', :scope => :compile,
231
231
  :gems => {
232
232
  'thread_safe' => '0.3.3',
233
233
  'jdbc-mysql' => '5.1.30'
@@ -307,7 +307,7 @@ project do
307
307
 
308
308
  plugin_management do
309
309
  plugins do
310
- jruby_plugin( :gem, '3.0.0-SNAPSHOT') do
310
+ jruby_plugin( :gem, '3.0.0') do
311
311
  configuration( :scope => :compile,
312
312
  :gems => {
313
313
  'thread_safe' => '0.3.3',
data/spec/pom_spec.rb CHANGED
@@ -9,7 +9,7 @@ describe Maven::Tools::POM do
9
9
  it "should convert #{dir}" do
10
10
  pom = Maven::Tools::POM.new( dir )
11
11
  file = File.join( dir, 'pom.xml' )
12
- file = File.join( File.dirname( dir ), 'pom.xml' ) unless File.exists? file
12
+ file = File.join( File.dirname( dir ), 'pom.xml' ) unless File.exist? file
13
13
  pom_xml = File.read( file )
14
14
  pom_xml.sub!( /<!--(.|\n)*-->\n/, '' )
15
15
  pom_xml.sub!( /<?.*?>\n/, '' )
@@ -18,7 +18,7 @@ describe Maven::Tools::POM do
18
18
  pom_xml.gsub!( /tesla-polyglot/, 'polyglot' )
19
19
  pom_xml.gsub!( /${tesla.version}/, Maven::Tools::VERSIONS[ :polyglot_version ] )
20
20
 
21
- pom.to_s.must_equal pom_xml
21
+ _(pom.to_s).must_equal pom_xml
22
22
  end
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maven-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Meier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-09 00:00:00.000000000 Z
11
+ date: 2024-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement