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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f27e73f0d87bcdd02d6ac3dc46f50458ad2a315
4
- data.tar.gz: 2b12c4aedd8b1afcc3f5dee285339264eb1d8e68
3
+ metadata.gz: b750e1a95af6fe1d7e31cba7df155f145988d12c
4
+ data.tar.gz: 29771d92dab94acde14863208a8fd0fed1a41283
5
5
  SHA512:
6
- metadata.gz: 3ea1554560fa1fbea94725b073ac4dc82681db0b8c307aee392ba2698075d6d2085b2fe706f87eaae1c4201a68380529665279e91fb2875147bf3e04f0b74c64
7
- data.tar.gz: 756eba360b0a4dbd21546a19d9c20cfdb1e118c4a6b0777e1156d93d01ef2920535252b7ad67d59378c8fa5dfedda87534a52f3ca003215761399769a7134f2e
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*/, '')
@@ -373,7 +373,7 @@ module Maven
373
373
  spec_file = ::File.read( f )
374
374
  begin
375
375
  spec = Gem::Specification.from_yaml( spec_file )
376
- rescue
376
+ rescue Exception
377
377
  FileUtils.cd( basedir ) do
378
378
  # TODO jruby java user.dir
379
379
  spec = eval( spec_file, nil, f )
@@ -20,6 +20,6 @@
20
20
  #
21
21
  module Maven
22
22
  module Tools
23
- VERSION = '1.0.3'.freeze
23
+ VERSION = '1.0.4'.freeze
24
24
  end
25
25
  end
@@ -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.3
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-07-29 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus