confetti 0.8.1 → 0.8.2

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.8.1)
4
+ confetti (0.8.2)
5
5
  mustache (~> 0.11.2)
6
6
 
7
7
  GEM
@@ -18,7 +18,7 @@ module Confetti
18
18
  end
19
19
 
20
20
  def author
21
- @config.author.name
21
+ @config.author.name ? @config.author.name[0..49] : ""
22
22
  end
23
23
 
24
24
  def guid
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
@@ -159,4 +159,22 @@ describe Confetti::Template::WindowsPhone7Manifest do
159
159
  @template.version.should == "2012.0.2.0"
160
160
  end
161
161
  end
162
+
163
+ describe "author" do
164
+ before do
165
+ @config = Confetti::Config.new "spec/fixtures/config.xml"
166
+ @template = @template_class.new(@config)
167
+ end
168
+
169
+ it "should return the Confetti Author name in the normal case" do
170
+ @template.author.should == "Andrew Lunny"
171
+ end
172
+
173
+ it "should truncate the field to 50 chars or less" do
174
+ me = "Andrew John Lunny, son of William and Vivian, brother of Hugo"
175
+ short = "Andrew John Lunny, son of William and Vivian, brot"
176
+ @config.author.name = me
177
+ @template.author.should == short
178
+ end
179
+ end
162
180
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 1
9
- version: 0.8.1
8
+ - 2
9
+ version: 0.8.2
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-06-16 00:00:00 -07:00
19
+ date: 2012-06-20 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency