sparkle_formation 3.0.2 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/compile-time-parameters.md +30 -0
- data/lib/sparkle_formation/sparkle_formation.rb +7 -1
- data/lib/sparkle_formation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d4dd10e3c4157ec1c461dcbd63ab595ee0b939d
|
4
|
+
data.tar.gz: 4968514c36ae6a230b406fdadbf43196d991c8b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c80d65c292f19f5cf4cf8c003fe799544e6c2cd51209d2f2f7bda1e45408f087ecb936b47dc26b64cfe9cdbadd61a95fc4557641d15d84c39c5c162f4b99f14
|
7
|
+
data.tar.gz: 8743188a274a414b1426afb53a381772a82a7083e872de990147f2e20aa802e4ec2ffdd0a625a6516696900c21f663c7c6b91ab826b7c38e2e25e4db6d799323
|
data/CHANGELOG.md
CHANGED
@@ -75,6 +75,36 @@ defining options for the parameter. The available items within the option
|
|
75
75
|
| | Required | no
|
76
76
|
| | Valid | `TrueClass`, `FalseClass`
|
77
77
|
| | Default | `true`
|
78
|
+
|-----------------------|-------------|-----------------------------------------
|
79
|
+
| `:allowed_values` | Description | List of allowed values
|
80
|
+
| | Required | no
|
81
|
+
| | Valid | `Array`
|
82
|
+
| | Default | none
|
83
|
+
|-----------------------|-------------|-----------------------------------------
|
84
|
+
| `:allowed_pattern` | Description | Require pattern value must match
|
85
|
+
| | Required | no
|
86
|
+
| | Valid | `String`
|
87
|
+
| | Default | none
|
88
|
+
|-----------------------|-------------|-----------------------------------------
|
89
|
+
| `:min_size` | Description | Minimum size of value
|
90
|
+
| | Required | no
|
91
|
+
| | Valid | `Numeric`
|
92
|
+
| | Default | none
|
93
|
+
|-----------------------|-------------|-----------------------------------------
|
94
|
+
| `:max_size` | Description | Maximum size of value
|
95
|
+
| | Required | no
|
96
|
+
| | Valid | `Numeric`
|
97
|
+
| | Default | none
|
98
|
+
|-----------------------|-------------|-----------------------------------------
|
99
|
+
| `:min_length` | Description | Minimum length of value
|
100
|
+
| | Required | no
|
101
|
+
| | Valid | `Numeric`
|
102
|
+
| | Default | none
|
103
|
+
|-----------------------|-------------|-----------------------------------------
|
104
|
+
| `:max_length` | Description | Maximum length of value
|
105
|
+
| | Required | no
|
106
|
+
| | Valid | `Numeric`
|
107
|
+
| | Default | none
|
78
108
|
|
79
109
|
##### Multiple value support
|
80
110
|
|
@@ -579,7 +579,13 @@ class SparkleFormation
|
|
579
579
|
root == self
|
580
580
|
end
|
581
581
|
|
582
|
-
|
582
|
+
# Attributes allowed for generation parameter definitions
|
583
|
+
ALLOWED_GENERATION_PARAMETERS = [
|
584
|
+
'type', 'default', 'description', 'multiple', 'prompt_when_nested',
|
585
|
+
'allowed_values', 'allowed_pattern', 'max_length', 'min_length',
|
586
|
+
'max_value', 'min_value'
|
587
|
+
]
|
588
|
+
# Allowed data types for parameters
|
583
589
|
VALID_GENERATION_PARAMETER_TYPES = ['String', 'Number']
|
584
590
|
|
585
591
|
# Get or set the compile time parameter setting block. If a get
|
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: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attribute_struct
|