terraform-wrapper 1.3.3 → 1.3.5

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: 22baabb5edc25221a988310ff2b77cf458770f3beb7cf6c7ca0fd684cfb6216e
4
- data.tar.gz: 14f265238e48f3069fb4420b49cd9a63860a0f39d965328488def9a9cf7e0ec9
3
+ metadata.gz: 396b440e7aa8c426cd54846db62df689f760cb48b6a7fabeb8c0e8d28a49c950
4
+ data.tar.gz: 845ed83f74fd667731939aacb62e461af6f90e33adadb55f0ef06ac2d826e1c0
5
5
  SHA512:
6
- metadata.gz: 04ac5b8332a7cb0cec87850e5d50a6ff31eff1aad2fc3adb36d9f63621fa3676e0a1b16fc79f3a254a5172237c25b34c4c545c4e3ad9a2fb22977b1017a1e9c4
7
- data.tar.gz: 9aa9ce6282ca86c37eb527cef526fb6749e6a449c18d5f241dbcf426a775b8c2e2d270beff010f6f32d61efc796584705212ce9e6da40b16478751d997d4a5a7
6
+ metadata.gz: 450d625fe1b8c81158295caffaa2098ecf11b20592fec7a5c46fa606e40b3af873f3a7b0976ea224eb4a461032c662511a4a057cda983dff84f2d70f494866e8
7
+ data.tar.gz: 6e3eec9c6b46eb9d624626abb502d17f6a29d46d3863ebec6090cdaa58a4920290729ce7291de46be8ed95767595655e489a929952de0834136e5c700361e4e9
@@ -60,7 +60,7 @@ module TerraformWrapper
60
60
  download(path: archive_path, uri: archive_uri) unless File.file?(archive_path)
61
61
  download(path: sums_path, uri: sums_uri) unless File.file?(sums_path)
62
62
  verify(file: archive_file, path: archive_path, sums: sums_path)
63
- extract(archive: archive_path, binary: archive_binary, destination: @binary.path)
63
+ extract(archive: archive_path, binary: archive_binary, destination: @binary.directory)
64
64
  ensure
65
65
  clean(archive: archive_path, sums: sums_path)
66
66
  end
@@ -133,14 +133,12 @@ module TerraformWrapper
133
133
  logger.info("Extracting: #{archive}")
134
134
 
135
135
  Zip::File.open(archive) do |zip|
136
- zip.each do |file|
137
- zip.extract(file, destination) if file.name == binary
136
+ begin
137
+ zip.extract(binary, destination_directory: destination)
138
+ rescue StandardError
139
+ logger.fatal("Extraction of Terraform binary: #{binary}, from archive: #{archive} has failed!")
138
140
  end
139
141
  end
140
-
141
- return if File.file?(destination)
142
-
143
- logger.fatal("Extraction of Terraform binary: #{binary}, from archive: #{archive} has failed!")
144
142
  end
145
143
 
146
144
  #########################################################################
@@ -3,7 +3,7 @@
3
3
  module TerraformWrapper
4
4
  #############################################################################
5
5
 
6
- VERSION = '1.3.3'
6
+ VERSION = '1.3.5'
7
7
 
8
8
  #############################################################################
9
9
  end
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.require_paths = ['lib']
36
36
 
37
37
  spec.add_dependency 'rake', '~> 13.0'
38
- spec.add_dependency 'rubyzip', '~> 2.3'
38
+ spec.add_dependency 'rubyzip', '~> 3.0'
39
39
 
40
40
  spec.add_development_dependency 'rspec', '~> 3.10'
41
41
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraform-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Lees
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-01-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rake
@@ -30,14 +29,14 @@ dependencies:
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: '2.3'
32
+ version: '3.0'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: '2.3'
39
+ version: '3.0'
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: rspec
43
42
  requirement: !ruby/object:Gem::Requirement
@@ -112,7 +111,6 @@ licenses:
112
111
  metadata:
113
112
  homepage_uri: https://gitlab.com/bitservices/ruby/terraform-wrapper/
114
113
  source_code_uri: https://gitlab.com/bitservices/ruby/terraform-wrapper/
115
- post_install_message:
116
114
  rdoc_options: []
117
115
  require_paths:
118
116
  - lib
@@ -127,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
125
  - !ruby/object:Gem::Version
128
126
  version: '0'
129
127
  requirements: []
130
- rubygems_version: 3.4.1
131
- signing_key:
128
+ rubygems_version: 3.6.9
132
129
  specification_version: 4
133
130
  summary: A ruby wrapper for managing Terraform binaries and remote state.
134
131
  test_files: []