confetti 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.9.4)
4
+ confetti (0.9.5)
5
5
  mustache (~> 0.11.2)
6
6
 
7
7
  GEM
@@ -35,8 +35,8 @@ module Confetti
35
35
  new_parts = []
36
36
 
37
37
  segments.each do |seg|
38
- unless /\d+/ =~ seg
39
- seg.gsub!(/\w/, '')
38
+ unless /^\d+$/ =~ seg
39
+ seg.gsub!(/[^\d]/, '')
40
40
  seg = '0' if seg.length == 0
41
41
  end
42
42
 
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
@@ -35,5 +35,9 @@ describe Confetti::Template::VersionHelper do
35
35
  it "should switch letters out for numbers" do
36
36
  normalize_version('1.3.a').should == "1.3.0"
37
37
  end
38
+
39
+ it "should remove letters when they're in there" do
40
+ normalize_version('1.3.5a').should == "1.3.5"
41
+ end
38
42
  end
39
43
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 4
9
- version: 0.9.4
8
+ - 5
9
+ version: 0.9.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrew Lunny
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-09-11 00:00:00 -07:00
19
+ date: 2012-09-12 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency