sparkle_formation 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 607eb52a5d461c5cf623e017888bb5dc113a3c7e
4
- data.tar.gz: 45401a5dabb03744b24777538a9548a8ea0e06f0
3
+ metadata.gz: 616be38c8c1a38f987e2a586840a9d249539fed4
4
+ data.tar.gz: d9548f0abf97deee0fd3c3aa2429b4d726bb5262
5
5
  SHA512:
6
- metadata.gz: 565402fe9c3256b0ddcd028c4a1244350796d46d951c97d214f2d97ee7d532709b05654fb26f4a3b503e7316577d7745258f5944d7c2a07b6c1f362c838c6176
7
- data.tar.gz: fe0d0a5f94ddaf1b5eac0a68840b980fb82990ccb388630ed9723c4e4ea10e9e88810767128b974824d28014e6289f06033c7628c213e1d5155e79dadc8f94ed
6
+ metadata.gz: 359abe032cb6e4d4c149cab74294413ee7700f4e38f3e31f724ceffd536c4a1133b1db2dc2028fcc4d1bc9828944ee6d5bcc1bc6faa37f123191299fe642d0e0
7
+ data.tar.gz: 1bf779e94bd5cfccc61f0d446cbab685b67868d6faac31d6af354a8db7d27269ab7d4923811cf95e557d6305881af28336ddcacf40ed86928709d9cb8bc5e02d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v1.1.2
2
+ * Inject compile time state into outputs only if data set
3
+
1
4
  ## v1.1.0
2
5
  * Add support for compile time parameters
3
6
  * Fix usage of deprecated `SparkleFormation.insert` method
@@ -48,26 +48,33 @@ in which the keys are parameter names, and their respective values are a `Hash`
48
48
  defining options for the parameter. The available items within the option
49
49
  `Hash` for compile time parameters:
50
50
 
51
- * `:type` - Data type of parameter
52
- * Required: yes
53
- * Valid: `:number`, `:string`
54
- * Default: none
55
- * `:description` - Description of the parameter
56
- * Required: no
57
- * Valid: `String`
58
- * Default: none
59
- * `:default` - Default value for parameter
60
- * Required: no
61
- * Valid: `String`, `Integer`
62
- * Default: none
63
- * `:multiple` - Accept multiple values
64
- * Required: no
65
- * Valid: `TrueClass`, `FalseClass`
66
- * Default: `false`
67
- * `:prompt_when_nested` - Prompt for value when template is nested
68
- * Required: no
69
- * Valid: `TrueClass`, `FalseClass`
70
- * Default: `true`
51
+
52
+ | Option | Attribute | Value
53
+ |-----------------------|-------------|-----------------------------------------
54
+ | `:type` | Description | Data type of parameter
55
+ | | Required | yes
56
+ | | Valid | `:number`, `:string`
57
+ | | Default | none
58
+ |-----------------------|-------------|-----------------------------------------
59
+ | `:description` | Description | Description of the parameter
60
+ | | Required | no
61
+ | | Valid | `String`
62
+ | | Default | none
63
+ |-----------------------|-------------|-----------------------------------------
64
+ | `:default` | Description | Default value for parameter
65
+ | | Required | no
66
+ | | Valid | `String`, `Integer`
67
+ | | Default | none
68
+ |-----------------------|-------------|-----------------------------------------
69
+ | `:multiple` | Description | Accept multiple values
70
+ | | Required | no
71
+ | | Valid | `TrueClass`, `FalseClass`
72
+ | | Default | `false`
73
+ |-----------------------|-------------|-----------------------------------------
74
+ | `:prompt_when_nested` | Description | Prompt for value when template is nested
75
+ | | Required | no
76
+ | | Valid | `TrueClass`, `FalseClass`
77
+ | | Default | `true`
71
78
 
72
79
  ##### Multiple value support
73
80
 
@@ -179,4 +186,4 @@ In this example the `:root` template is providing the compile time parameter `:n
179
186
  explicitly to the `:node_generator` template. Due to the compile time parameter option
180
187
  `:prompt_when_nested` being set to false, when the `:root` template is compiled, no prompt
181
188
  will be received for the `:number_of_nodes` compile time parameter. However, if the
182
- `:node_generator` template is compiled directly, the prompt will be received.
189
+ `:node_generator` template is compiled directly, the prompt will be received.
@@ -510,7 +510,7 @@ class SparkleFormation
510
510
  end
511
511
  self.class.build(compiled, &override[:block])
512
512
  end
513
- if(compile_state)
513
+ if(compile_state && !compile_state.empty?)
514
514
  compiled.outputs.compile_state.value MultiJson.dump(compile_state)
515
515
  end
516
516
  compiled
@@ -1,4 +1,4 @@
1
1
  class SparkleFormation
2
2
  # Current library version
3
- VERSION = Gem::Version.new('1.1.0')
3
+ VERSION = Gem::Version.new('1.1.2')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkle_formation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct