maven-tools 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maven/tools/coordinate.rb +1 -1
- data/lib/maven/tools/dsl.rb +1 -1
- data/lib/maven/tools/version.rb +1 -1
- data/spec/coordinate_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b750e1a95af6fe1d7e31cba7df155f145988d12c
|
4
|
+
data.tar.gz: 29771d92dab94acde14863208a8fd0fed1a41283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95e225b04bbd2626774f2cb0c7a198ed342b45b350d91d08b2247888154d32e60bc39de48bd479e211f5e667b65b4335004d8bd65c0b063de94a599d5d5dd89e
|
7
|
+
data.tar.gz: 231b1d90bc92d85169d89560f79baaf76afbc427db67b5bbdf39d35f5bfd6d7890493df9e5785f882952eda561083286c4b390c37f513207db04eda9bf09867b
|
@@ -142,7 +142,7 @@ module Maven
|
|
142
142
|
def convert(arg, low = nil, high = nil)
|
143
143
|
if arg =~ /~>/
|
144
144
|
val = arg.sub(/~>\s*/, '')
|
145
|
-
last = val.sub(/\.[0-9]*[a-z]+.*$/, '').sub(/\.[^.]+$/, '.99999')
|
145
|
+
last = val=~/\./ ? val.sub(/\.[0-9]*[a-z]+.*$/, '').sub(/\.[^.]+$/, '.99999') : '99999'
|
146
146
|
["[#{snapshot_version(val)}", "#{snapshot_version(last)}]"]
|
147
147
|
elsif arg =~ />=/
|
148
148
|
val = arg.sub(/>=\s*/, '')
|
data/lib/maven/tools/dsl.rb
CHANGED
data/lib/maven/tools/version.rb
CHANGED
data/spec/coordinate_spec.rb
CHANGED
@@ -19,6 +19,7 @@ describe Maven::Tools::Coordinate do
|
|
19
19
|
subject.to_version('~>1.8.2.beta123.12').must_equal "[1.8.2.beta123.12-SNAPSHOT,1.8.99999]"
|
20
20
|
subject.to_version('~>1.8.2.1beta').must_equal "[1.8.2.1beta-SNAPSHOT,1.8.99999]"
|
21
21
|
subject.to_version('~>1.8').must_equal "[1.8,1.99999]"
|
22
|
+
subject.to_version('~>0').must_equal "[0,99999]"
|
22
23
|
subject.to_version('>1.2').must_equal "(1.2,)"
|
23
24
|
subject.to_version('>1.2.GA').must_equal "(1.2.GA-SNAPSHOT,)"
|
24
25
|
subject.to_version('<1.2').must_equal "[0,1.2)"
|
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.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Meier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|