saga 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{saga}
8
- s.version = "0.3.0"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Manfred Stienstra"]
@@ -1,22 +1,25 @@
1
1
  Requirements <%= title %>
2
+ <% unless authors.empty? %>
2
3
 
3
- <% authors.each do |author| %>
4
- - <%= format_author(author) %>
5
- <% end %>
4
+ <% authors.each do |author| -%>
5
+ - <%= format_author(author) -%>
6
+
7
+ <% end -%>
8
+ <% end -%>
6
9
 
7
10
  USER STORIES
8
- <% stories.each do |header, stories| %>
11
+ <% unless stories.keys.empty? -%>
9
12
 
10
- <%= "#{header}\n" if header %>
11
- <% stories.each do |story| %>
13
+ <% stories.each do |header, stories| -%>
14
+ <%= "\n#{header}\n\n" unless header.strip == '' -%>
15
+ <% stories.each do |story| -%>
12
16
  <%= format_story(story) %>
13
- <% end %>
14
- <% end %>
15
-
16
- <% definitions.each do |header, definitions| %>
17
-
18
- <%= "#{header}\n" if header %>
19
- <% definitions.each do |definition| %>
17
+ <% end -%>
18
+ <% end -%>
19
+ <% end -%>
20
+ <% definitions.each do |header, definitions| -%>
21
+ <%= "\n#{header}\n\n" unless header.strip == '' -%>
22
+ <% definitions.each do |definition| -%>
20
23
  <%= format_definition(definition) %>
21
24
  <% end %>
22
25
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manfred Stienstra