ruby-terraform 1.6.0.pre.1 → 1.6.0.pre.4

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: ade7989e4320d556292b8ad138c0e42e38628d9e449168e5cc268e577ff48f9d
4
- data.tar.gz: '0465179ec03a7bbb1cd3c2a6225742364fafec63b38acef88bde00947da90d5e'
3
+ metadata.gz: 60699ba291eef1e9640cc60eb4bef3ed3d19ac4ef859a81de74bc9e033406ae1
4
+ data.tar.gz: 642b930d19c2d345c0ebba747597b390da429289267a8590e69e66106e61f80b
5
5
  SHA512:
6
- metadata.gz: f4c59962d2ab62e912ed953b07bfbd8098445c5d78f692099ee258000a94dfab4feaebeaf0f3e7c92b1abbc8b41f6dc536baa953f5fb34dfdb30a938e208300a
7
- data.tar.gz: ef55eff9c144e412d23b2429fa3a8de292e74d230b2c31f2d66eaad95957517e3d8a44856f48144c0975e2b2b883468ce3ca0a5edc5bcf23311c706239e76de6
6
+ metadata.gz: '06485a26e0869ef712a86a298d18766e791e85d2ea62ed58f5e55a37ab1010ac53ad42cbbda8e9a64fc066cad6cbb9cd2ee2764dee42bafeea5aa24252c68331'
7
+ data.tar.gz: 5c0e88105d41f49586afd63b1c306991eaa7735563c8e292182bfb05230c9b29558be711532945ee8de13a6fdce26e80dc1da551871bb421f3f331b128883dc0
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (1.6.0.pre.1)
4
+ ruby-terraform (1.6.0.pre.4)
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
@@ -27,9 +27,13 @@ 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
+ # @param [Hash<String, Object>] invocation_options Additional options
31
+ # controlling the invocation of the command.
32
+ # @option invocation_options [Hash<String, String>] :environment A map
33
+ # of environment variables to expose at command invocation time.
34
+ def execute(parameters = {}, invocation_options = {})
31
35
  do_before(parameters)
32
- build_and_execute_command(parameters)
36
+ build_and_execute_command(parameters, invocation_options)
33
37
  do_after(parameters)
34
38
  rescue Open4::SpawnError
35
39
  message = "Failed while running '#{command_name}'."
@@ -41,8 +45,8 @@ module RubyTerraform
41
45
 
42
46
  attr_reader :binary, :logger, :stdin, :stdout, :stderr
43
47
 
44
- def build_and_execute_command(parameters)
45
- command = build_command(parameters)
48
+ def build_and_execute_command(parameters, invocation_options)
49
+ command = build_command(parameters, invocation_options)
46
50
 
47
51
  logger.debug("Running '#{command}'.")
48
52
  command.execute(
@@ -62,11 +66,13 @@ module RubyTerraform
62
66
 
63
67
  private
64
68
 
65
- def build_command(parameters)
69
+ def build_command(parameters, invocation_options)
66
70
  parameters = resolve_parameters(parameters)
71
+ environment = invocation_options[:environment] || {}
67
72
 
68
73
  Lino::CommandLineBuilder
69
74
  .for_command(@binary)
75
+ .with_environment_variables(environment)
70
76
  .with_options_after_subcommands
71
77
  .with_option_separator('=')
72
78
  .with_appliables(@options.resolve(options, parameters))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyTerraform
4
- VERSION = '1.6.0.pre.1'
4
+ VERSION = '1.6.0.pre.4'
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.6.0.pre.1
4
+ version: 1.6.0.pre.4
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