terraform_landscape 0.3.3 → 0.3.4

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: ed97c9c256fbb685fcf5817eaef307037828f2368e44ad8a4ea2cfd079197bea
4
- data.tar.gz: d8472628aa77d68fc2f79437d3f8fae7aad60ca4fb3ad971fa7714bd1cedbe41
3
+ metadata.gz: d67a499f9c9745e1444129aee8abdbbead348f66374080896e8dc15fd411e90c
4
+ data.tar.gz: 9a54df826e4075b9faee8fe9de305f95265c480eafaa955a01470945073e073b
5
5
  SHA512:
6
- metadata.gz: f4a3b4c0ceca57406986b8282208b77378128d99fb24ec55da3cc5fd4b92c6449f9f6a1a5d06f251e3d4b02228f7cc45d3d256462177b760f6760b8165485d66
7
- data.tar.gz: 6d20d470aea66409a28500b50a47c180eb391b367b4dcf950362dc3b1019990af859f5867c0b487ed7b7e9e38ae06c47bbc09235b5af29cbbbbae116457a9ecf
6
+ metadata.gz: 3bd6351fd9ad2847f496546032d42d20dd2676865ba0dca5146a44ebf921815d70cb93ae550fb8ae67f97690c28e9d9206fc7fa5ddf2fa281ddd1c8e5e532399
7
+ data.tar.gz: 589ca816d9f1ba3144ffc1e22d43fde6e846732ffdef0f327d068a06f978deb6c4f02329cc44bab4c94da50b7baa27f8d8c2e8e334ed3bed9dfb94ae3156a66c
@@ -38,7 +38,7 @@ grammar TerraformPlan
38
38
  end
39
39
 
40
40
  rule resource_header
41
- _? change:('~' / '-/+' / '-' / '+' / '<=') _ type:[a-zA-Z0-9_-]+ '.' name:[\S]+ _ '(' reason1:[^)]+ ')' _ '(' reason2:[^)]+ ')' {
41
+ ws? change:('~' / '-/+' / '-' / '+' / '<=') ws type:[a-zA-Z0-9_-]+ '.' name:[\S]+ ws '(' reason1:[^)]+ ')' ws '(' reason2:[^)]+ ')' {
42
42
  def to_ast
43
43
  {
44
44
  change: change.text_value.to_sym,
@@ -50,7 +50,7 @@ grammar TerraformPlan
50
50
  end
51
51
  }
52
52
  /
53
- _? change:('~' / '-/+' / '-' / '+' / '<=') _ type:[a-zA-Z0-9_-]+ '.' name:[\S]+ _ '(' reason:[^)]+ ')' {
53
+ ws? change:('~' / '-/+' / '-' / '+' / '<=') ws type:[a-zA-Z0-9_-]+ '.' name:[\S]+ ws '(' reason:[^)]+ ')' {
54
54
  def to_ast
55
55
  {
56
56
  change: change.text_value.to_sym,
@@ -61,7 +61,7 @@ grammar TerraformPlan
61
61
  end
62
62
  }
63
63
  /
64
- _? change:('~' / '-/+' / '-' / '+' / '<=') _ type:[a-zA-Z0-9_-]+ '.' name:[\S]+ {
64
+ ws? change:('~' / '-/+' / '-' / '+' / '<=') ws type:[a-zA-Z0-9_-]+ '.' name:[\S]+ {
65
65
  def to_ast
66
66
  {
67
67
  change: change.text_value.to_sym,
@@ -73,13 +73,13 @@ grammar TerraformPlan
73
73
  end
74
74
 
75
75
  rule attribute_list
76
- _ item:attribute "\n" attrs:attribute_list {
76
+ ws item:attribute "\n" attrs:attribute_list {
77
77
  def to_ast
78
78
  item.to_ast.merge(attrs.to_ast)
79
79
  end
80
80
  }
81
81
  /
82
- _ item:attribute {
82
+ ws item:attribute {
83
83
  def to_ast
84
84
  item.to_ast
85
85
  end
@@ -87,7 +87,7 @@ grammar TerraformPlan
87
87
  end
88
88
 
89
89
  rule attribute
90
- attribute_name:(!': ' .)* ':' _? attribute_value:[^\n]+ {
90
+ attribute_name:(!': ' .)* ':' ws? attribute_value:[^\n]+ {
91
91
  def to_ast
92
92
  { attribute_name.text_value => sanitize_value_and_reason }
93
93
  end
@@ -115,7 +115,7 @@ grammar TerraformPlan
115
115
  }
116
116
  end
117
117
 
118
- rule _
118
+ rule ws
119
119
  [ ]+
120
120
  end
121
121
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module TerraformLandscape
5
- VERSION = '0.3.3'.freeze
5
+ VERSION = '0.3.4'.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.3.3
4
+ version: 0.3.4
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: 2020-02-14 00:00:00.000000000 Z
12
+ date: 2021-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.0.3
108
+ rubygems_version: 3.1.4
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Pretty-print Terraform plan output