terraform_landscape 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: 238ce061acc60e402752059e8db87f6948db29b0c88ef4865b4f67405de76d49
4
- data.tar.gz: 1a42681d106186e774a8a40d91eb7363b0076ee14de2b4bfe9263f28233024ee
3
+ metadata.gz: bd09d5f8db4155993cb141a7c3023a85ea510457a36c4eba4d7a0d87ed6aa4e5
4
+ data.tar.gz: 7148ea8dd0ea53ff57ab5625202c6326f4c464fdc9d6cd2d8ef9902104697803
5
5
  SHA512:
6
- metadata.gz: bfd3f019872030754bfd6a22876af12630ec0cab498d8d1d61c10f400eee9a5904fae8e6f53d0abb7411af3510f9211791bba469cfce41bae2c868564e05c6be
7
- data.tar.gz: 6c01e25f7987eda2c7d710a7509e1e09587f70a97cb6064f20dcbb10adabf350cedb2be6af58a58f3862d15b73a9856fbbdb890878a94192a0f149be2e4b2a09
6
+ metadata.gz: 5bda7f64b4916b216438f5f5b9affcf1f39d0052939eacf45cfca55faf7c2b5b71bb917637887e22b75e7cc3119d26b0a040f8d253b6342a274294a719c91c71
7
+ data.tar.gz: 433ad3a5df1022d2b8334a164334cfd0b44a3f627ea818ca37d130f6dbb4b8e30e452f03941fd054e7e8caccb378bc6387318939356320596966d482d2631f64
@@ -29,7 +29,9 @@ module TerraformLandscape
29
29
  end
30
30
  end
31
31
 
32
- apply = apply_prompt(buffer.string)
32
+ apply = apply_prompt(buffer.string.encode('UTF-8',
33
+ invalid: :replace,
34
+ replace: ''))
33
35
  done = true if apply
34
36
  end
35
37
  process_string(buffer.string)
@@ -59,8 +61,8 @@ module TerraformLandscape
59
61
  scrubbed_output = scrubbed_output[match.end(0)..-1]
60
62
  elsif (match = scrubbed_output.match(/^\s*(~|\+|\-)/))
61
63
  scrubbed_output = scrubbed_output[match.begin(0)..-1]
62
- elsif scrubbed_output =~ /^(No changes|This plan does nothing)/
63
- @output.puts 'No changes'
64
+ elsif scrubbed_output =~ /^(No changes\.|This plan does nothing)/
65
+ @output.puts 'No changes.'
64
66
  return
65
67
  else
66
68
  raise ParseError, 'Output does not contain proper preface'
@@ -85,7 +87,7 @@ module TerraformLandscape
85
87
 
86
88
  def apply_prompt(output)
87
89
  return unless output =~ /Enter a value:\s+$/
88
- output[/Do you want to perform these actions\?.*$/m, 0]
90
+ output[/Do you want to perform these actions.*$/m, 0]
89
91
  end
90
92
  end
91
93
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module TerraformLandscape
5
- VERSION = '0.2.0'.freeze
5
+ VERSION = '0.2.1'.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.2.0
4
+ version: 0.2.1
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: 2018-07-20 00:00:00.000000000 Z
12
+ date: 2018-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize