kumogata 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +3 -3
- data/lib/kumogata/client.rb +9 -3
- data/lib/kumogata/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODhkMTUzNDVjOWU3YjNjMjNmZjFjMDQ5MDQ1ZGJmOWI5Y2MzMmQ4Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDRhOWNlNzJiYzRhMTQyZDIwNmNkM2NjMTZiNTY0YmM3MTNlOWJmYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjM3OWIzZTBjOWY3MjZlNzhmYWVjYTU4MmE1ODYxNGQ1NGVhM2ZkODhkNDQz
|
10
|
+
YjUyZmU1N2I1NWQ0NmVkZjE4MTJjYmRmYmYyMGM2ODA2MTNiYzgxOGMzMTQ0
|
11
|
+
NzFhZjhjZGU3NmI0M2MxMjViNmMzZjdiZmVlNzY0MzczNjBmMWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzgyMjRmMTIwZjJmZGI1ZjJhMmQ5NjBhYzM5NzNjNTQ0MmJkMjE4NzliYmE0
|
14
|
+
YTRkZGVhMWJhMzUyNDc2NjdkNDdjNzA1NTVjZWJhYjVmMGU4ODhhNWFlZGM5
|
15
|
+
OGUyODE1ODdiNTJiYmUxM2Y3ZmZjYTYyNWE5YTc4M2Q2Yjc3YjU=
|
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Kumogata is a tool for [AWS CloudFormation](https://aws.amazon.com/cloudformation/).
|
4
4
|
|
5
|
-
[![Gem Version](https://badge.fury.io/rb/kumogata.png?
|
6
|
-
[![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/kumogata.png?201403031537)](http://badge.fury.io/rb/kumogata)
|
6
|
+
[![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?201403031537)](https://drone.io/github.com/winebarrel/kumogata/latest)
|
7
7
|
|
8
8
|
It can define a template in Ruby DSL, such as:
|
9
9
|
|
@@ -138,7 +138,7 @@ end
|
|
138
138
|
{
|
139
139
|
"Ref": "AWS::StackId"
|
140
140
|
},
|
141
|
-
"-r myEC2Instance --region ",
|
141
|
+
" -r myEC2Instance --region ",
|
142
142
|
{
|
143
143
|
"Ref": "AWS::Region"
|
144
144
|
},
|
data/lib/kumogata/client.rb
CHANGED
@@ -180,17 +180,23 @@ class Kumogata::Client
|
|
180
180
|
data = data.flatten.select {|i| not i.nil? }
|
181
181
|
|
182
182
|
if options[:strip]
|
183
|
+
prev_not_str = false
|
184
|
+
|
183
185
|
data = data.map do |item|
|
184
186
|
if item.kind_of?(String)
|
185
|
-
item.split("\n").map {|i| i.gsub(/\A\s+/, "") }.join("\n")
|
187
|
+
item = item.split("\n").map {|i| i.gsub(/\A\s+/, "") }.join("\n")
|
188
|
+
item = " " + item if prev_not_str
|
189
|
+
prev_not_str = false
|
190
|
+
item
|
186
191
|
else
|
192
|
+
prev_not_str = true
|
187
193
|
item
|
188
194
|
end
|
189
195
|
end
|
190
196
|
end
|
191
197
|
|
192
|
-
if data.last.kind_of?(String) and data.last == ""
|
193
|
-
data.last
|
198
|
+
if data.last.kind_of?(String) and data.last.strip == ""
|
199
|
+
data.last.replace("\n")
|
194
200
|
end
|
195
201
|
|
196
202
|
unless data.last.kind_of?(String) and data.last =~ /\n\Z/
|
data/lib/kumogata/version.rb
CHANGED