maven-tools 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b742974a17c7cd3cf45392fb776a41f74df4304d
4
- data.tar.gz: 8b014df2f65e5a2286401d83b0f31929d645efbe
3
+ metadata.gz: c32acffef9376f1171e88e5911f3532ecd7734e1
4
+ data.tar.gz: 0f9b0bfbed8988dd8ed890f1c831114d266e8571
5
5
  SHA512:
6
- metadata.gz: 2e1768b75ab38044d80f763868564eacb509dac8422f3c106824ac1f8322b10c31ee426111e979893a8441bc50ab069584474a17f80074172e31151b15088971
7
- data.tar.gz: c7c08292545673cd50bfb639c9e96fa037ea77c7b8a5d7aafc5da768277a508ce2198da57832f6f659628b824fd472241db515df10881bb487951c2f764cd2bf
6
+ metadata.gz: 719386a880d77b8d9c502144e180636334838b241ad48a79480a2021ede72235c02bdca8781f2803ef76c6dd515c73a490bbd15020be88a192e65af041770291
7
+ data.tar.gz: d291a79cdc88771a91ab6bed322d10225b89c91156912e017590393d7d7637db3bc50cc51093a7ab8a3fbc3116fee81ad1c9581fc0d33f5800a21e3e5df53ac0
@@ -150,7 +150,11 @@ module Maven
150
150
  elsif arg =~ /<=/
151
151
  val = arg.sub(/<=\s*/, '')
152
152
  [(nil || low), "#{snapshot_version(val)}]"]
153
- # treat '!' the same way as '>' since maven can not describe such range
153
+ elsif arg =~ /!=/
154
+ val = arg.sub(/!=\s*/, '')
155
+ ["(#{snapshot_version(val)}", (nil || high)]
156
+ # treat '!' the same way as '>' since maven can not describe such range
157
+ # TODO ensure !1 is a legal rubygems constraint
154
158
  elsif arg =~ /[!>]/
155
159
  val = arg.sub(/[!>]\s*/, '')
156
160
  ["(#{snapshot_version(val)}", (nil || high)]
@@ -57,8 +57,7 @@ module Maven
57
57
  _deps( dep.type ) << "rubygems:#{dep.name}:#{to_version( *versions )}"
58
58
  end
59
59
  @spec.requirements.each do |req|
60
- req.sub!( /#.*^/, '' )
61
- coord = to_split_coordinate_with_scope( req )
60
+ coord = to_split_coordinate_with_scope(req.sub(/#.*^/, ''))
62
61
  if coord && coord.size > 1
63
62
  _deps( :java ) << coord
64
63
  end
@@ -20,6 +20,6 @@
20
20
  #
21
21
  module Maven
22
22
  module Tools
23
- VERSION = '1.1.0'.freeze
23
+ VERSION = '1.1.1'.freeze
24
24
  end
25
25
  end
@@ -28,7 +28,9 @@ describe Maven::Tools::Artifact do
28
28
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '<=1' ).to_s.must_equal 'rubygems:asd:gem:[0,1]'
29
29
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '>1' ).to_s.must_equal 'rubygems:asd:gem:(1,)'
30
30
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '<1' ).to_s.must_equal 'rubygems:asd:gem:[0,1)'
31
+ # not sure if this legal bundler/rubygems
31
32
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '!1' ).to_s.must_equal 'rubygems:asd:gem:(1,)'
33
+ Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '!=1' ).to_s.must_equal 'rubygems:asd:gem:(1,)'
32
34
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '<2', '>1' ).to_s.must_equal 'rubygems:asd:gem:(1,2)'
33
35
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '<=2', '>1' ).to_s.must_equal 'rubygems:asd:gem:(1,2]'
34
36
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '<2', '>=1' ).to_s.must_equal 'rubygems:asd:gem:[1,2)'
@@ -41,7 +43,9 @@ describe Maven::Tools::Artifact do
41
43
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<=1' ).to_s.must_equal 'org.something:asd:jar:[0,1]'
42
44
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,)'
43
45
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<1' ).to_s.must_equal 'org.something:asd:jar:[0,1)'
46
+ # not sure if this legal bundler/rubygems
44
47
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '!1' ).to_s.must_equal 'org.something:asd:jar:(1,)'
48
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '!=1' ).to_s.must_equal 'org.something:asd:jar:(1,)'
45
49
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<2', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,2)'
46
50
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<=2', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,2]'
47
51
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<2', '>=1' ).to_s.must_equal 'org.something:asd:jar:[1,2)'
@@ -12,6 +12,8 @@ describe Maven::Tools::Coordinate do
12
12
  subject.to_version.must_equal "[0,)"
13
13
  subject.to_version('!2.3.4').must_equal "(2.3.4,)"
14
14
  subject.to_version('!2.3.4.rc').must_equal "(2.3.4.rc-SNAPSHOT,)"
15
+ subject.to_version('!=2.3.4').must_equal "(2.3.4,)"
16
+ subject.to_version('!=2.3.4.rc').must_equal "(2.3.4.rc-SNAPSHOT,)"
15
17
  subject.to_version('=2.3.4').must_equal "[2.3.4,2.3.4.0.0.0.0.1)"
16
18
  subject.to_version('=2.3.4.alpha').must_equal "2.3.4.alpha"
17
19
  subject.to_version('~>1.8.2').must_equal "[1.8.2,1.8.99999]"
@@ -55,6 +57,7 @@ describe Maven::Tools::Coordinate do
55
57
  subject.to_coordinate('#jar "a:b"').must_be_nil
56
58
  subject.to_coordinate('jar "a:b" # bla').must_equal "a:b:jar:[0,)"
57
59
  subject.to_coordinate("pom 'b:c', '!2.3.4'").must_equal "b:c:pom:(2.3.4,)"
60
+ subject.to_coordinate("pom 'b:c', '!=2.3.4'").must_equal "b:c:pom:(2.3.4,)"
58
61
  subject.to_coordinate('jar "c:d", "2.3.4"').must_equal "c:d:jar:2.3.4"
59
62
  subject.to_coordinate("jar 'd:e', '~>1.8.2'").must_equal "d:e:jar:[1.8.2,1.8.99999]"
60
63
  subject.to_coordinate('pom "f:g", ">1.2", "<=2.0"').must_equal "f:g:pom:(1.2,2.0]"
@@ -68,6 +71,7 @@ describe Maven::Tools::Coordinate do
68
71
  subject.to_coordinate('#jar "a:b:jdk15"').must_be_nil
69
72
  subject.to_coordinate('jar "a:b:jdk15" # bla').must_equal "a:b:jar:jdk15:[0,)"
70
73
  subject.to_coordinate("pom 'b:c:jdk15', '!2.3.4'").must_equal "b:c:pom:jdk15:(2.3.4,)"
74
+ subject.to_coordinate("pom 'b:c:jdk15', '!=2.3.4'").must_equal "b:c:pom:jdk15:(2.3.4,)"
71
75
  subject.to_coordinate('jar "c:d:jdk15", "2.3.4"').must_equal "c:d:jar:jdk15:2.3.4"
72
76
  subject.to_coordinate("jar 'd:e:jdk15', '~>1.8.2'").must_equal "d:e:jar:jdk15:[1.8.2,1.8.99999]"
73
77
  subject.to_coordinate('pom "f:g:jdk15", ">1.2", "<=2.0"').must_equal "f:g:pom:jdk15:(1.2,2.0]"
metadata CHANGED
@@ -1,58 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maven-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Meier
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-03 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: virtus
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
19
  version: '1.0'
19
- name: virtus
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: rake
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: '10.0'
33
- name: rake
34
- prerelease: false
35
34
  type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: minitest
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
45
  - - "~>"
45
46
  - !ruby/object:Gem::Version
46
47
  version: '5.3'
47
- name: minitest
48
- prerelease: false
49
48
  type: :development
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.3'
55
- description: adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc
55
+ description: adds versions conversion from rubygems to maven and vice versa, ruby
56
+ DSL for POM (Project Object Model from maven), pom generators, etc
56
57
  email:
57
58
  - m.kristian@web.de
58
59
  executables: []
@@ -317,7 +318,7 @@ homepage: http://github.com/torquebox/maven-tools
317
318
  licenses:
318
319
  - MIT
319
320
  metadata: {}
320
- post_install_message:
321
+ post_install_message:
321
322
  rdoc_options: []
322
323
  require_paths:
323
324
  - lib
@@ -332,18 +333,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
332
333
  - !ruby/object:Gem::Version
333
334
  version: '0'
334
335
  requirements: []
335
- rubyforge_project:
336
- rubygems_version: 2.4.8
337
- signing_key:
336
+ rubyforge_project:
337
+ rubygems_version: 2.4.5.1
338
+ signing_key:
338
339
  specification_version: 4
339
340
  summary: helpers for maven related tasks
340
341
  test_files:
341
342
  - spec/artifact_spec.rb
342
343
  - spec/coordinate_spec.rb
343
- - spec/gemspec_dependencies_spec.rb
344
- - spec/jarfile_spec.rb
345
- - spec/pom_spec.rb
346
- - spec/spec_helper.rb
347
344
  - spec/dsl/gemspec_spec.rb
348
345
  - spec/dsl/jarfile_lock_spec.rb
349
346
  - spec/dsl/profile_gemspec_spec.rb
@@ -354,11 +351,13 @@ test_files:
354
351
  - spec/gemfile_with_lock/bouncy-castle-version.rb
355
352
  - spec/gemfile_with_source/bouncy-castle-version.rb
356
353
  - spec/gemspec/bouncy-castle-version.rb
354
+ - spec/gemspec_dependencies_spec.rb
357
355
  - spec/gemspec_in_profile/bouncy-castle-version.rb
358
356
  - spec/gemspec_include_jars/bouncy-castle-version.rb
359
357
  - spec/gemspec_with_extras/bouncy-castle-version.rb
360
358
  - spec/gemspec_with_jars_lock/bouncy-castle-version.rb
361
359
  - spec/gemspec_with_source/bouncy-castle-version.rb
360
+ - spec/jarfile_spec.rb
362
361
  - spec/pom_from_jarfile/pom.rb
363
362
  - spec/pom_from_jarfile_and_empty_lock/pom.rb
364
363
  - spec/pom_from_jarfile_and_lock/pom.rb
@@ -370,8 +369,9 @@ test_files:
370
369
  - spec/pom_maven_alternative_style/pom.rb
371
370
  - spec/pom_maven_hash_style/pom.rb
372
371
  - spec/pom_maven_style/pom.rb
372
+ - spec/pom_spec.rb
373
373
  - spec/pom_with_execute/pom.rb
374
- - spec/pom.xml
374
+ - spec/spec_helper.rb
375
375
  - spec/dsl/gemspec_spec/jars_and_poms.xml
376
376
  - spec/dsl/gemspec_spec/jars_and_poms_include_jars.xml
377
377
  - spec/dsl/gemspec_spec/maven-tools.xml
@@ -426,6 +426,7 @@ test_files:
426
426
  - spec/gemspec_with_source_and_no_jar/pom.xml
427
427
  - spec/mavenfile_jrubyJar/pom.xml
428
428
  - spec/mavenfile_jrubyWar/pom.xml
429
+ - spec/pom.xml
429
430
  - spec/pom_from_jarfile/pom.xml
430
431
  - spec/pom_from_jarfile_and_empty_lock/pom.xml
431
432
  - spec/pom_from_jarfile_and_lock/pom.xml