story-gen 0.0.5 → 0.0.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.
Files changed (2) hide show
  1. data/lib/story/compile.rb +1 -1
  2. metadata +2 -2
data/lib/story/compile.rb CHANGED
@@ -272,7 +272,7 @@ class Story
272
272
 
273
273
  def to_code
274
274
  code << "(begin\n" <<
275
- statements.map { |statement| statement.to_code << "\n" }.reduce(:<<) <<
275
+ (statements.map { |statement| statement.to_code << "\n" }.reduce(:<<) || "") <<
276
276
  "end)"
277
277
  end
278
278
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: story-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-02 00:00:00.000000000 Z
12
+ date: 2016-02-04 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Generate stories from descriptions based on Facts!
15
15
  email: various.furriness@gmail.com