maven-tools 1.1.1 → 1.1.2

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: c32acffef9376f1171e88e5911f3532ecd7734e1
4
- data.tar.gz: 0f9b0bfbed8988dd8ed890f1c831114d266e8571
3
+ metadata.gz: b0e19d1a856b4e631741ad0ce39566eccc749c75
4
+ data.tar.gz: 583cc562022e0749ecf88e3c83ac49359becf447
5
5
  SHA512:
6
- metadata.gz: 719386a880d77b8d9c502144e180636334838b241ad48a79480a2021ede72235c02bdca8781f2803ef76c6dd515c73a490bbd15020be88a192e65af041770291
7
- data.tar.gz: d291a79cdc88771a91ab6bed322d10225b89c91156912e017590393d7d7637db3bc50cc51093a7ab8a3fbc3116fee81ad1c9581fc0d33f5800a21e3e5df53ac0
6
+ metadata.gz: f5f29ed74b6375ec904aa5ff99baaba6936f5005bc5b7df8ff067b87747168a2c4094aa0daedce75c41daa4afbd2cb36bba225364ef1fa9a0410b093e62e20c2
7
+ data.tar.gz: 608aeec206313fc9c7117703311ea47072e588ad7cca1f7895156e45b50d320a27cfd4e4919ca6fcdba72163ed641347f9d0bbfce3d1eed101ac4fe666fc5f49
@@ -150,13 +150,13 @@ 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 '>' until proper mapping is implemented
154
+ # see https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
153
155
  elsif arg =~ /!=/
154
156
  val = arg.sub(/!=\s*/, '')
155
157
  ["(#{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
158
- elsif arg =~ /[!>]/
159
- val = arg.sub(/[!>]\s*/, '')
158
+ elsif arg =~ /[>]/
159
+ val = arg.sub(/[>]\s*/, '')
160
160
  ["(#{snapshot_version(val)}", (nil || high)]
161
161
  elsif arg =~ /</
162
162
  val = arg.sub(/<\s*/, '')
@@ -139,7 +139,7 @@ module Maven
139
139
 
140
140
  def other_deps( spec )
141
141
  spec.requirements.each do |req|
142
- req.sub!( /#.*^/, '' )
142
+ req = req.sub( /#.*^/, '' )
143
143
  method = req.sub(/\s.*$/, '' ).to_sym
144
144
  line = req.sub(/^[^\s]*\s/, '' )
145
145
  if respond_to? method
@@ -20,6 +20,6 @@
20
20
  #
21
21
  module Maven
22
22
  module Tools
23
- VERSION = '1.1.1'.freeze
23
+ VERSION = '1.1.2'.freeze
24
24
  end
25
25
  end
@@ -28,8 +28,6 @@ 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
32
- Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '!1' ).to_s.must_equal 'rubygems:asd:gem:(1,)'
33
31
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '!=1' ).to_s.must_equal 'rubygems:asd:gem:(1,)'
34
32
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '<2', '>1' ).to_s.must_equal 'rubygems:asd:gem:(1,2)'
35
33
  Maven::Tools::Artifact.from( :gem, 'rubygems:asd', '<=2', '>1' ).to_s.must_equal 'rubygems:asd:gem:(1,2]'
@@ -43,8 +41,6 @@ describe Maven::Tools::Artifact do
43
41
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<=1' ).to_s.must_equal 'org.something:asd:jar:[0,1]'
44
42
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,)'
45
43
  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
47
- Maven::Tools::Artifact.from( :jar, 'org.something:asd', '!1' ).to_s.must_equal 'org.something:asd:jar:(1,)'
48
44
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '!=1' ).to_s.must_equal 'org.something:asd:jar:(1,)'
49
45
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<2', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,2)'
50
46
  Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<=2', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,2]'
@@ -10,8 +10,6 @@ describe Maven::Tools::Coordinate do
10
10
 
11
11
  it 'should convert ruby version to maven version ranges' do
12
12
  subject.to_version.must_equal "[0,)"
13
- subject.to_version('!2.3.4').must_equal "(2.3.4,)"
14
- subject.to_version('!2.3.4.rc').must_equal "(2.3.4.rc-SNAPSHOT,)"
15
13
  subject.to_version('!=2.3.4').must_equal "(2.3.4,)"
16
14
  subject.to_version('!=2.3.4.rc').must_equal "(2.3.4.rc-SNAPSHOT,)"
17
15
  subject.to_version('=2.3.4').must_equal "[2.3.4,2.3.4.0.0.0.0.1)"
@@ -56,7 +54,6 @@ describe Maven::Tools::Coordinate do
56
54
  subject.to_coordinate('something "a:b"').must_be_nil
57
55
  subject.to_coordinate('#jar "a:b"').must_be_nil
58
56
  subject.to_coordinate('jar "a:b" # bla').must_equal "a:b:jar:[0,)"
59
- subject.to_coordinate("pom 'b:c', '!2.3.4'").must_equal "b:c:pom:(2.3.4,)"
60
57
  subject.to_coordinate("pom 'b:c', '!=2.3.4'").must_equal "b:c:pom:(2.3.4,)"
61
58
  subject.to_coordinate('jar "c:d", "2.3.4"').must_equal "c:d:jar:2.3.4"
62
59
  subject.to_coordinate("jar 'd:e', '~>1.8.2'").must_equal "d:e:jar:[1.8.2,1.8.99999]"
@@ -70,7 +67,6 @@ describe Maven::Tools::Coordinate do
70
67
  subject.to_coordinate('something "a:b:jdk15"').must_be_nil
71
68
  subject.to_coordinate('#jar "a:b:jdk15"').must_be_nil
72
69
  subject.to_coordinate('jar "a:b:jdk15" # bla').must_equal "a:b:jar:jdk15:[0,)"
73
- subject.to_coordinate("pom 'b:c:jdk15', '!2.3.4'").must_equal "b:c:pom:jdk15:(2.3.4,)"
74
70
  subject.to_coordinate("pom 'b:c:jdk15', '!=2.3.4'").must_equal "b:c:pom:jdk15:(2.3.4,)"
75
71
  subject.to_coordinate('jar "c:d:jdk15", "2.3.4"').must_equal "c:d:jar:jdk15:2.3.4"
76
72
  subject.to_coordinate("jar 'd:e:jdk15', '~>1.8.2'").must_equal "d:e:jar:jdk15:[1.8.2,1.8.99999]"
metadata CHANGED
@@ -1,59 +1,58 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maven-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
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-03-29 00:00:00.000000000 Z
11
+ date: 2016-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: virtus
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
18
  version: '1.0'
20
- type: :runtime
19
+ name: virtus
21
20
  prerelease: false
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: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
32
  version: '10.0'
34
- type: :development
33
+ name: rake
35
34
  prerelease: false
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: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: minitest
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
46
  version: '5.3'
48
- type: :development
47
+ name: minitest
49
48
  prerelease: false
49
+ type: :development
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
56
- DSL for POM (Project Object Model from maven), pom generators, etc
55
+ description: adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc
57
56
  email:
58
57
  - m.kristian@web.de
59
58
  executables: []
@@ -318,7 +317,7 @@ homepage: http://github.com/torquebox/maven-tools
318
317
  licenses:
319
318
  - MIT
320
319
  metadata: {}
321
- post_install_message:
320
+ post_install_message:
322
321
  rdoc_options: []
323
322
  require_paths:
324
323
  - lib
@@ -333,14 +332,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
333
332
  - !ruby/object:Gem::Version
334
333
  version: '0'
335
334
  requirements: []
336
- rubyforge_project:
337
- rubygems_version: 2.4.5.1
338
- signing_key:
335
+ rubyforge_project:
336
+ rubygems_version: 2.4.8
337
+ signing_key:
339
338
  specification_version: 4
340
339
  summary: helpers for maven related tasks
341
340
  test_files:
342
341
  - spec/artifact_spec.rb
343
342
  - 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
344
347
  - spec/dsl/gemspec_spec.rb
345
348
  - spec/dsl/jarfile_lock_spec.rb
346
349
  - spec/dsl/profile_gemspec_spec.rb
@@ -351,13 +354,11 @@ test_files:
351
354
  - spec/gemfile_with_lock/bouncy-castle-version.rb
352
355
  - spec/gemfile_with_source/bouncy-castle-version.rb
353
356
  - spec/gemspec/bouncy-castle-version.rb
354
- - spec/gemspec_dependencies_spec.rb
355
357
  - spec/gemspec_in_profile/bouncy-castle-version.rb
356
358
  - spec/gemspec_include_jars/bouncy-castle-version.rb
357
359
  - spec/gemspec_with_extras/bouncy-castle-version.rb
358
360
  - spec/gemspec_with_jars_lock/bouncy-castle-version.rb
359
361
  - spec/gemspec_with_source/bouncy-castle-version.rb
360
- - spec/jarfile_spec.rb
361
362
  - spec/pom_from_jarfile/pom.rb
362
363
  - spec/pom_from_jarfile_and_empty_lock/pom.rb
363
364
  - spec/pom_from_jarfile_and_lock/pom.rb
@@ -369,9 +370,8 @@ test_files:
369
370
  - spec/pom_maven_alternative_style/pom.rb
370
371
  - spec/pom_maven_hash_style/pom.rb
371
372
  - spec/pom_maven_style/pom.rb
372
- - spec/pom_spec.rb
373
373
  - spec/pom_with_execute/pom.rb
374
- - spec/spec_helper.rb
374
+ - spec/pom.xml
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,7 +426,6 @@ 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
430
429
  - spec/pom_from_jarfile/pom.xml
431
430
  - spec/pom_from_jarfile_and_empty_lock/pom.xml
432
431
  - spec/pom_from_jarfile_and_lock/pom.xml