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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6e627673d789906c84afe223d9f1623454b7f6b
4
- data.tar.gz: 71a21461d3bc55b00ac98fea678f5615cfdc8939
3
+ metadata.gz: 5d4dd10e3c4157ec1c461dcbd63ab595ee0b939d
4
+ data.tar.gz: 4968514c36ae6a230b406fdadbf43196d991c8b9
5
5
  SHA512:
6
- metadata.gz: 929f471f170ca381ee11173bd940b45590c24cbee440643df2be4ba3ea622c48ed1f1bc2d93c28c6c4e5fcbd701011beb5b8f73daa3c74ad7721d74b9b25abd6
7
- data.tar.gz: 63419b341f04915df5aaa84fa94e5fbb67c54889feb10b35a4869b29471752b09c505da512cb2faf063a195011500b0658eb07ac3f58d2776302a7d10b9a9493
6
+ metadata.gz: 4c80d65c292f19f5cf4cf8c003fe799544e6c2cd51209d2f2f7bda1e45408f087ecb936b47dc26b64cfe9cdbadd61a95fc4557641d15d84c39c5c162f4b99f14
7
+ data.tar.gz: 8743188a274a414b1426afb53a381772a82a7083e872de990147f2e20aa802e4ec2ffdd0a625a6516696900c21f663c7c6b91ab826b7c38e2e25e4db6d799323
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v3.0.4
2
+ * Extend allowed attributes for generation parameters (#173)
3
+
1
4
  # v3.0.2
2
5
  * Fix resource effect check when defaulted with boolean
3
6
 
@@ -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
- ALLOWED_GENERATION_PARAMETERS = ['type', 'default', 'description', 'multiple', 'prompt_when_nested']
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
@@ -1,5 +1,5 @@
1
1
  # Unicorns and rainbows
2
2
  class SparkleFormation
3
3
  # Current library version
4
- VERSION = Gem::Version.new('3.0.2')
4
+ VERSION = Gem::Version.new('3.0.4')
5
5
  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: 3.0.2
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-05 00:00:00.000000000 Z
11
+ date: 2016-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct