cloudformation-tool 1.0.7 → 1.0.9

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
  SHA256:
3
- metadata.gz: 2b99b1f321479bddd8e2636e8cf7e006fee1890f8430fa18e232b0c5b1a9c9a3
4
- data.tar.gz: 2bb1cc15544fda9fccecdd809f97ea584d8f39dfe3f4c0b1c6131a3fdd04a531
3
+ metadata.gz: 5b44f3ef0d04f6c9f0329d1e081a529ce1cfdd3e8b2da7c85be51b224957faae
4
+ data.tar.gz: d43a5b5968ae31fd7b3969a45a3c09814f91dcbcc6e39e9a6fb3b30444d9a031
5
5
  SHA512:
6
- metadata.gz: 4d1ca8842c33a4cb4728e7c1a2da353f8d5592395e6b22ee20592ce1f7aeb61019ef4624aa0e1c2f40d2a6505425284d808ca5261540d77704e541ae18aaa4dd
7
- data.tar.gz: 880331aef31b095560be0f1c0f7cbcd8bf40eebc128a4833e9c14e9c7cde7c52e63045b7e62198c650c6073bdaa61ff65d17da0f900671e5f2cd49849cc48164
6
+ metadata.gz: 062c2685822c31422a64356af5b2e4197d3436401d94528c0cede97ab94774c565c83da36937fb532c2133fd3a67fa6cb5c7d248b7ad89a622a5f05794e6731c
7
+ data.tar.gz: 79c31fdf1bc03b52a0864ee4f9cfe325a2036800bae3cae2e473d8b67f7ad64373d2720c0849518c38e3403662dc7129a32312dbb5aecf22e0356770bcb28927
@@ -27,7 +27,7 @@ module CloudFormationTool
27
27
  end
28
28
  end
29
29
  ts.each(&:join)
30
- puts ts.collect { |t| t.value.join "\n" }
30
+ puts ts.select{ |t| t.value.length > 0 }.collect { |t| t.value.join "\n" }
31
31
  end
32
32
 
33
33
  end
@@ -61,7 +61,7 @@ module CloudFormationTool
61
61
  case response
62
62
  when Net::HTTPSuccess then
63
63
  url = nil
64
- http.finish if check_cached(response['ETag'])
64
+ break if check_cached(response['ETag']) # dont read the body if its already cached
65
65
  when Net::HTTPRedirection then
66
66
  location = response['location']
67
67
  debug "Cache check redirected to #{location}"
@@ -69,7 +69,6 @@ module CloudFormationTool
69
69
  response.body
70
70
  url = URI(location)
71
71
  else
72
- error "arg err"
73
72
  raise ArgumentError, "Error getting response: #{response}"
74
73
  end
75
74
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel