terraform_landscape 0.0.1 → 0.1.0

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: 3adeba30b54a83c182ee6956d97f42e16fe1bb14
4
- data.tar.gz: ab302a4d55105e6a0a3bc70e31c497e64dc3b489
3
+ metadata.gz: f8cb77102d5ee6a38ba30d4e10210b6d6280d152
4
+ data.tar.gz: 5a6c9c4899c6ac6a8a91a1bc1f1781a4149681ee
5
5
  SHA512:
6
- metadata.gz: 065d407040083b704ddef29a67080db8b618f557ed498c9623ff26ced98ddbee28538fad417253370155d904974e06abea1a5d1741acaee63e1d6b15f7ceed44
7
- data.tar.gz: 7602f283d8a02775dc4e07c5b93fd6c5763cc4e1d5f939fae3d1c042f47d0e3c387f48a2d3e472c9cb1d7610595f46829953f60bb7a356a9fbbfaaa28f2d4e72
6
+ metadata.gz: 36644116b7a8f3a27a2011bb5ccca12eb1461ed1102dee2a33b7b4af06323ab45e4685ec48d7ea728e5ef0fe9dfac833f98b0fcc33c332b3969009f1c3d2fb77
7
+ data.tar.gz: 3e2629b749c139b95ffce1fc42cd86b47e0c7810edc08134842d70a5e2c5c1be47d63ac27fe866de4de9ce6a7f3baaa188ff30bb9247d8012482d1e14a0024f2
@@ -36,6 +36,11 @@ module TerraformLandscape
36
36
  # Remove preface
37
37
  if (match = scrubbed_output.match(/^Path:[^\n]+/))
38
38
  scrubbed_output = scrubbed_output[match.end(0)..-1]
39
+ elsif (match = scrubbed_output.match(/^(~|\+|\-)/))
40
+ scrubbed_output = scrubbed_output[match.begin(0)..-1]
41
+ elsif scrubbed_output.match(/^No changes/)
42
+ @output.puts 'No changes'
43
+ return
39
44
  else
40
45
  raise ParseError, 'Output does not contain proper preface'
41
46
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module TerraformLandscape
5
- VERSION = '0.0.1'.freeze
5
+ VERSION = '0.1.0'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraform_landscape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coinbase
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-28 00:00:00.000000000 Z
12
+ date: 2017-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize