kumogata 0.1.0 → 0.1.1

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: 28f500bbe000bfcca855c3e8d44d60f2fbba233d
4
- data.tar.gz: 378508af2ad72d1911de56ed05f25a9672fa7b22
3
+ metadata.gz: 947bc579f201dfda38abb8996854b92fd80e558a
4
+ data.tar.gz: 97c93892827122b20a3cdb739842aeab9aef6934
5
5
  SHA512:
6
- metadata.gz: 4ddbe3c73b965c5d95a1439a15ab9da7d4862b6f1bdbe3b36aa0cc6fede3d3f61a801278fd14ff6ded443dc4dd9e2effa5f901989002f5af9b8c163bb98bd7d4
7
- data.tar.gz: 8eff8eb5fd29490c27a8521fa03bc961ef7eff06ec3162dea3b055cf43cb87298443baddac8ce57f30a5091bf36b140712abe5514d39c4356cfe0518eb95ce7e
6
+ metadata.gz: 3d791a48469552c5a5bde3dcf7cdb738ec86e484ae65cf713a81678e4e1a5cf2325c78ec678956da57550c3cf9ee2c4ad3e0391adaf2558f70ab13052b43b1cf
7
+ data.tar.gz: b2e53f42d81fded35dcb8b426ab93b725aa9059d22feba4789acc088062e42e031cbfb9c6713e0916ae58f05f99522648d942fb6c7b42717f2fb5c11f58c3a30
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Kumogata is a tool for AWS CroudFormation.
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/kumogata.png?201403021953)](http://badge.fury.io/rb/kumogata)
6
- [![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?201403021953)](https://drone.io/github.com/winebarrel/kumogata/latest)
5
+ [![Gem Version](https://badge.fury.io/rb/kumogata.png?201403022336)](http://badge.fury.io/rb/kumogata)
6
+ [![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?201403022336)](https://drone.io/github.com/winebarrel/kumogata/latest)
7
7
 
8
8
  It can define a template in Ruby DSL, such as:
9
9
 
data/kumogata.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'aws-sdk'
22
- spec.add_dependency 'dslh', '>= 0.2.1'
22
+ spec.add_dependency 'dslh', '>= 0.2.2'
23
23
  spec.add_dependency 'hashie'
24
24
  spec.add_dependency 'highline'
25
25
  spec.add_dependency 'json'
@@ -45,7 +45,7 @@ class Kumogata::Client
45
45
  end
46
46
 
47
47
  def delete(stack_name)
48
- if @options.force? or agree("Aare you sure you want to delete `#{stack_name}`? ".yellow)
48
+ if @options.force? or agree("Are you sure you want to delete `#{stack_name}`? ".yellow)
49
49
  delete_stack(stack_name)
50
50
  end
51
51
 
@@ -119,7 +119,15 @@ class Kumogata::Client
119
119
  end
120
120
  end
121
121
 
122
- Dslh.deval(template, :key_conv => key_conv, :exclude_key => exclude_key)
122
+ value_conv = proc do |v|
123
+ if v.kind_of?(String) and v =~ /\A(?:0|[1-9]\d*)\Z/
124
+ v.to_i
125
+ else
126
+ v
127
+ end
128
+ end
129
+
130
+ Dslh.deval(template, :key_conv => key_conv, :value_conv => value_conv, :exclude_key => exclude_key)
123
131
  end
124
132
 
125
133
  def define_template_func(scope)
@@ -1,3 +1,3 @@
1
1
  module Kumogata
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumogata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.1
33
+ version: 0.2.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.1
40
+ version: 0.2.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hashie
43
43
  requirement: !ruby/object:Gem::Requirement