Commit 0265db9b authored by Rich's avatar Rich
Browse files

Use ruby-rubyzip rather than ruby-zip

parent 2c229c04
......@@ -3,13 +3,13 @@
_gemname=terraform-wrapper
pkgname=ruby-${_gemname}
pkgver=0.1.3
pkgver=0.2.0
pkgrel=1
pkgdesc="A ruby wrapper for managing Terraform binaries and remote state."
arch=(any)
url="https://gitlab.com/rlees85-ruby/terraform-wrapper/"
license=("MIT")
depends=("ruby" "ruby-rake" "ruby-zip")
depends=("ruby" "ruby-rake" "ruby-rubyzip")
source=("https://rubygems.org/downloads/${_gemname}-${pkgver}.gem")
noextract=("${_gemname}-${pkgver}.gem")
sha256sums=("d9276460c20033fddab87fb95fb9bea981282609c4cca434cd486539ef5d8aef")
......
......@@ -133,7 +133,7 @@ module TerraformWrapper
def extract(archive:, binary:, destination:)
logger.info("Extracting: #{archive}")
Zip::ZipFile.open(archive) do |zip|
Zip::File.open(archive) do |zip|
zip.each do |file|
zip.extract(file, destination) if file.name == binary
end
......
......@@ -4,7 +4,7 @@ module TerraformWrapper
###############################################################################
VERSION = "0.1.3"
VERSION = "0.2.0"
###############################################################################
......
......@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.add_dependency 'rake', '~> 13.0'
spec.add_dependency 'rubyzip', '~> 2.0'
spec.add_dependency 'rubyzip', '~> 2.3'
end
###############################################################################
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment