ruby-terraform 1.5.0 → 1.6.0.pre.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad4e5e0ec2f10785081a48749f8622d47fb0ff96f8e50dc12ae00434abb4adb9
4
- data.tar.gz: 23b9b9d7a9ae431c8111cd5732942f3e9dc5fc4e526cc2715babaf3b6378551c
3
+ metadata.gz: 4af0f6232109166c87d234705c76bb81eab0479d8871af95d8125e0ad045e021
4
+ data.tar.gz: b0ee899a8ab5eb3c40224ab3570f9474ec510375fda789421f030354eba5a7e3
5
5
  SHA512:
6
- metadata.gz: 66661db563b4447babbed30ddd0ad8cbeb10a449d39aedf00a4fd06634dfabba9066f8db5d8e18d32e1cf8d71ebe67769436b6768fbc90de9fd69d974f3168c0
7
- data.tar.gz: 650063fb1aa61c0082317cc680f68cf6a3f81ce114ad26e644f4d7b5a3b766a9897fe0c58b23e2aa5a8abb63fb35cf6a8c1097dbb4fe17f0accb576fa49ac7f7
6
+ metadata.gz: 261858053b59158f030f06686e19f9613d127cd485a7a2c95c0705645d1b84f5ca03f7287493f9d0c3a79913d199e0e3607dd3956361d034eae02cb1479a1101
7
+ data.tar.gz: '034098fd21a6a52dd341aaee30a39f66750444aead18d290237ac40288905b77282a1392fd3575f10c2c1341a05aea452e6c0a5bb1ab2c184ec94bac4a6161e0'
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (1.5.0)
4
+ ruby-terraform (1.6.0.pre.3)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.2.3)
11
+ activesupport (7.0.3)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -21,32 +21,13 @@ GEM
21
21
  concurrent-ruby (1.1.10)
22
22
  diff-lcs (1.5.0)
23
23
  docile (1.4.0)
24
- excon (0.92.0)
24
+ excon (0.92.3)
25
25
  faker (2.21.0)
26
26
  i18n (>= 1.8.11, < 2)
27
- faraday (1.10.0)
28
- faraday-em_http (~> 1.0)
29
- faraday-em_synchrony (~> 1.0)
30
- faraday-excon (~> 1.1)
31
- faraday-httpclient (~> 1.0)
32
- faraday-multipart (~> 1.0)
33
- faraday-net_http (~> 1.0)
34
- faraday-net_http_persistent (~> 1.0)
35
- faraday-patron (~> 1.0)
36
- faraday-rack (~> 1.0)
37
- faraday-retry (~> 1.0)
27
+ faraday (2.3.0)
28
+ faraday-net_http (~> 2.0)
38
29
  ruby2_keywords (>= 0.0.4)
39
- faraday-em_http (1.0.0)
40
- faraday-em_synchrony (1.0.0)
41
- faraday-excon (1.1.0)
42
- faraday-httpclient (1.0.1)
43
- faraday-multipart (1.0.3)
44
- multipart-post (>= 1.2, < 3)
45
- faraday-net_http (1.0.1)
46
- faraday-net_http_persistent (1.2.0)
47
- faraday-patron (1.0.0)
48
- faraday-rack (1.0.0)
49
- faraday-retry (1.0.3)
30
+ faraday-net_http (2.0.3)
50
31
  ffi (1.15.5)
51
32
  formatador (1.1.0)
52
33
  gem-release (2.2.2)
@@ -77,15 +58,14 @@ GEM
77
58
  rb-inotify (~> 0.9, >= 0.9.10)
78
59
  lumberjack (1.2.8)
79
60
  method_source (1.0.0)
80
- minitest (5.15.0)
81
- multipart-post (2.1.1)
61
+ minitest (5.16.1)
82
62
  nenv (0.3.0)
83
63
  notiffany (0.1.3)
84
64
  nenv (~> 0.1)
85
65
  shellany (~> 0.0)
86
- octokit (4.22.0)
87
- faraday (>= 0.9)
88
- sawyer (~> 0.8.0, >= 0.5.3)
66
+ octokit (4.25.0)
67
+ faraday (>= 1, < 3)
68
+ sawyer (~> 0.9)
89
69
  open4 (1.3.4)
90
70
  parallel (1.22.1)
91
71
  parser (3.1.2.0)
@@ -93,7 +73,7 @@ GEM
93
73
  pry (0.14.1)
94
74
  coderay (~> 1.1)
95
75
  method_source (~> 1.0)
96
- public_suffix (4.0.6)
76
+ public_suffix (4.0.7)
97
77
  rainbow (3.1.1)
98
78
  rake (13.0.6)
99
79
  rake_circle_ci (0.9.0)
@@ -119,7 +99,7 @@ GEM
119
99
  rb-fsevent (0.11.1)
120
100
  rb-inotify (0.10.1)
121
101
  ffi (~> 1.0)
122
- regexp_parser (2.4.0)
102
+ regexp_parser (2.5.0)
123
103
  rexml (3.2.5)
124
104
  rspec (3.11.0)
125
105
  rspec-core (~> 3.11.0)
@@ -130,11 +110,11 @@ GEM
130
110
  rspec-expectations (3.11.0)
131
111
  diff-lcs (>= 1.2.0, < 2.0)
132
112
  rspec-support (~> 3.11.0)
133
- rspec-mocks (3.11.0)
113
+ rspec-mocks (3.11.1)
134
114
  diff-lcs (>= 1.2.0, < 2.0)
135
115
  rspec-support (~> 3.11.0)
136
116
  rspec-support (3.11.0)
137
- rubocop (1.30.0)
117
+ rubocop (1.31.0)
138
118
  parallel (~> 1.10)
139
119
  parser (>= 3.1.0.0)
140
120
  rainbow (>= 2.2.2, < 4.0)
@@ -147,15 +127,15 @@ GEM
147
127
  parser (>= 3.1.1.0)
148
128
  rubocop-rake (0.6.0)
149
129
  rubocop (~> 1.0)
150
- rubocop-rspec (2.9.0)
130
+ rubocop-rspec (2.11.1)
151
131
  rubocop (~> 1.19)
152
132
  ruby-progressbar (1.11.0)
153
133
  ruby2_keywords (0.0.5)
154
134
  ruby_gpg2 (0.8.0)
155
135
  lino (>= 1.5)
156
- sawyer (0.8.2)
136
+ sawyer (0.9.2)
157
137
  addressable (>= 2.3.5)
158
- faraday (> 0.8, < 2.0)
138
+ faraday (>= 0.17.3, < 3)
159
139
  shellany (0.0.1)
160
140
  simplecov (0.21.2)
161
141
  docile (~> 1.1)
@@ -167,9 +147,9 @@ GEM
167
147
  thor (1.2.1)
168
148
  tzinfo (2.0.4)
169
149
  concurrent-ruby (~> 1.0)
170
- unicode-display_width (2.1.0)
150
+ unicode-display_width (2.2.0)
171
151
  webrick (1.7.0)
172
- yard (0.9.27)
152
+ yard (0.9.28)
173
153
  webrick (~> 1.7.0)
174
154
 
175
155
  PLATFORMS
@@ -195,4 +175,4 @@ DEPENDENCIES
195
175
  yard
196
176
 
197
177
  BUNDLED WITH
198
- 2.3.14
178
+ 2.3.16
data/Rakefile CHANGED
@@ -58,7 +58,7 @@ namespace :library do
58
58
  task check: [:rubocop]
59
59
 
60
60
  desc 'Attempt to automatically fix issues with the library'
61
- task fix: [:'rubocop:auto_correct']
61
+ task fix: [:'rubocop:autocorrect']
62
62
  end
63
63
 
64
64
  namespace :documentation do
@@ -47,10 +47,10 @@ module RubyTerraform
47
47
  # * +:refresh+: when +true+, updates state prior to checking for
48
48
  # differences; when +false+ uses locally available state; defaults to
49
49
  # +true+; this has no effect when +:plan+ is provided.
50
- # * +replace+: force replacement of a particular resource instance using
50
+ # * +:replace+: force replacement of a particular resource instance using
51
51
  # its resource address. If the apply would've normally produced an update
52
52
  # or no-op action for this instance, Terraform will replace it instead.
53
- # * +replaces+: an array of resource addresses to replace; if both
53
+ # * +:replaces+: an array of resource addresses to replace; if both
54
54
  # +replace+ and +replaces+ are provided, all resources will be replaced.
55
55
  # * +:state+: the path to the state file from which to read state and in
56
56
  # which to store state (unless +:state_out+ is specified); defaults to
@@ -27,9 +27,9 @@ module RubyTerraform
27
27
  # @param [Hash<String, Object>] parameters The parameters used to
28
28
  # invoke the command. See subclass documentation for details of
29
29
  # supported options.
30
- def execute(parameters = {})
30
+ def execute(parameters = {}, invocation_options = {})
31
31
  do_before(parameters)
32
- build_and_execute_command(parameters)
32
+ build_and_execute_command(parameters, invocation_options)
33
33
  do_after(parameters)
34
34
  rescue Open4::SpawnError
35
35
  message = "Failed while running '#{command_name}'."
@@ -41,8 +41,8 @@ module RubyTerraform
41
41
 
42
42
  attr_reader :binary, :logger, :stdin, :stdout, :stderr
43
43
 
44
- def build_and_execute_command(parameters)
45
- command = build_command(parameters)
44
+ def build_and_execute_command(parameters, invocation_options)
45
+ command = build_command(parameters, invocation_options)
46
46
 
47
47
  logger.debug("Running '#{command}'.")
48
48
  command.execute(
@@ -62,11 +62,13 @@ module RubyTerraform
62
62
 
63
63
  private
64
64
 
65
- def build_command(parameters)
65
+ def build_command(parameters, invocation_options)
66
66
  parameters = resolve_parameters(parameters)
67
+ environment = invocation_options[:environment] || {}
67
68
 
68
69
  Lino::CommandLineBuilder
69
70
  .for_command(@binary)
71
+ .with_environment_variables(environment)
70
72
  .with_options_after_subcommands
71
73
  .with_option_separator('=')
72
74
  .with_appliables(@options.resolve(options, parameters))
@@ -45,11 +45,11 @@ module RubyTerraform
45
45
  # * +:refresh+: when +true+, updates state prior to checking for
46
46
  # differences; when +false+ uses locally available state; defaults to
47
47
  # +true+; this has no effect when +:plan+ is provided.
48
- # * +replace+: force replacement of a particular resource instance using
48
+ # * +:replace+: force replacement of a particular resource instance using
49
49
  # its resource address. If the plan would've normally produced an update
50
50
  # or no-op action for this instance, Terraform will plan to replace it
51
51
  # instead.
52
- # * +replaces+: an array of resource addresses to replace; if both
52
+ # * +:replaces+: an array of resource addresses to replace; if both
53
53
  # +replace+ and +replaces+ are provided, all resources will be replaced.
54
54
  # * +:state+: the path to the state file from which to read state and in
55
55
  # which to store state (unless +:state_out+ is specified); defaults to
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyTerraform
4
- VERSION = '1.5.0'
4
+ VERSION = '1.6.0.pre.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct
@@ -351,9 +351,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
351
351
  version: '2.7'
352
352
  required_rubygems_version: !ruby/object:Gem::Requirement
353
353
  requirements:
354
- - - ">="
354
+ - - ">"
355
355
  - !ruby/object:Gem::Version
356
- version: '0'
356
+ version: 1.3.1
357
357
  requirements: []
358
358
  rubygems_version: 3.1.6
359
359
  signing_key: