confetti 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.9.5)
4
+ confetti (0.9.6)
5
5
  mustache (~> 0.11.2)
6
6
 
7
7
  GEM
@@ -16,7 +16,7 @@ module Confetti
16
16
  elsif str.match /^([\d\w]+)[.]([\d\w]+)[.]([\d\w]+)$/
17
17
  deletter_version(str)
18
18
  else
19
- raise VersionError, "need a valid version number of the form 0.0.0"
19
+ default
20
20
  end
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
@@ -16,8 +16,8 @@ describe Confetti::Template::VersionHelper do
16
16
  normalize_version('').should == "0.0.1"
17
17
  end
18
18
 
19
- it "should raise an error if version_string isn't even close" do
20
- lambda { normalize_version('barbeque') }.should raise_error
19
+ it "should return the default if version_string isn't even close" do
20
+ normalize_version('BBQ').should == "0.0.1"
21
21
  end
22
22
 
23
23
  it "should add empty digits if str has one segment" do
@@ -88,9 +88,9 @@ describe Confetti::Template::WebosAppinfo do
88
88
  @template.version.should == "0.0.1"
89
89
  end
90
90
 
91
- it "should raise an error if version_string isn't even close" do
91
+ it "should return the default if version_string isn't even close" do
92
92
  @config.version_string = 'breakfast'
93
- lambda { @template.version }.should raise_error
93
+ @template.version.should == '0.0.1'
94
94
  end
95
95
 
96
96
  it "should add empty digits if string has one segment" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 5
9
- version: 0.9.5
8
+ - 6
9
+ version: 0.9.6
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-12 00:00:00 -07:00
19
+ date: 2012-09-18 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency