sfn 0.4.6 → 0.4.8

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: 97a901a571bdcb4d14b0ecb86aef8201d610618e
4
- data.tar.gz: b33b39764c7081e9dc2f712fe7cd19a16d427f9a
3
+ metadata.gz: 45623d7f999bcca022aeaae870eafcb2a05955f1
4
+ data.tar.gz: 60091f0fab1592cbf8c0e0060dd54a50d5cc27eb
5
5
  SHA512:
6
- metadata.gz: 438b19d41a1456c4fcb4440964b02645db420bf6bc0016b305a895b2520d8df0bc5c966f3fad394afd2f8f59c9a5e17a8ed23ed36cc1a82635bfe7acf659853c
7
- data.tar.gz: 09358bb8f7e5532d21d8b847d6856ce48bff54432100d5ed16c220a73cb4c5d8db9950b7bd53ddf44a6e9d2c26a45bc6026b19faccd7efb5c07dc9c36f54584a
6
+ metadata.gz: 70c9bc915745b269cf258924d87434a57ff005b213985090c27894fdb5dc2da7446b31d515be4e0ebb8a50fc0e79cbbafabbc8e59d194df10f8248a0bcd34b3f
7
+ data.tar.gz: 186aabbadbad3e60cd9f9cfc829e86cc3f041c8b97124d3440333652adfb950795d3499ef1a32edd314e62f476c70de199bbc6852a96d2df50c59e5e01751fb0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v0.4.8
2
+ * Disable delimiter on `:multiple` options (must specify multiple flags)
3
+ * Update types allowed by inspect for instance failure option
4
+ * Parameter hash is now always fully set based on template parameters
5
+
1
6
  ## v0.4.6
2
7
  * Fix parameter generation from CLI
3
8
 
data/bin/sfn CHANGED
@@ -28,7 +28,10 @@ Bogo::Cli::Setup.define do
28
28
  on_name = info[:boolean] ? info[:long] : "#{info[:long]}="
29
29
  opts = Hash.new.tap do |o|
30
30
  o[:default] = info[:default] if info.has_key?(:default)
31
- o[:as] = Array if info[:multiple]
31
+ if(info[:multiple])
32
+ o[:as] = Array
33
+ o[:delimiter] = nil
34
+ end
32
35
  end
33
36
  on info[:short], on_name, info[:description], opts
34
37
  end
@@ -138,9 +138,7 @@ module Sfn
138
138
  end
139
139
  validation = Sfn::Utils::StackParameterValidator.validate(answer, v)
140
140
  if(validation == true)
141
- unless(answer == v['Default'])
142
- config[:parameters][k] = answer
143
- end
141
+ config[:parameters][k] = answer
144
142
  valid = true
145
143
  else
146
144
  validation.each do |validation_error|
@@ -15,7 +15,7 @@ module Sfn
15
15
  :description => 'Locate all instances and display addresses'
16
16
  )
17
17
  attribute(
18
- :instance_failure, String,
18
+ :instance_failure, [TrueClass, FalseClass],
19
19
  :description => 'Display log file error from failed not if possible',
20
20
  )
21
21
  attribute(
data/lib/sfn/config.rb CHANGED
@@ -32,7 +32,7 @@ module Sfn
32
32
  :coerce => proc{|v|
33
33
  case v
34
34
  when String
35
- Smash[v.split(',').map{|x| v.split(/[=:]/)}]
35
+ Smash[v.split(',').map{|x| v.split(/[=:]/, 2)}]
36
36
  when Hash
37
37
  v.to_smash
38
38
  else
data/lib/sfn/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Sfn
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.4.6')
3
+ VERSION = Gem::Version.new('0.4.8')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sfn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.8
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-06-09 00:00:00.000000000 Z
11
+ date: 2015-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo-cli