mixlib-archive 0.4.19-universal-mingw32 → 1.0.7-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixlib/archive.rb +5 -4
- data/lib/mixlib/archive/tar.rb +4 -3
- data/lib/mixlib/archive/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 223980b7e634fe427b9202c42991ae620470c8fb1a9d39b6d6bb3b7776c329ed
|
4
|
+
data.tar.gz: 9f1a4130384a817dfdccb50a66c68c9d34f1a30fd5827d3de3d3072e5eec3272
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc94a9b97948bf1061c2ce7650cd4fc3e6365105f92b0e2bf2763891769adaa64252ffae68bf02244292e3a797325934755a449031634336ae949242aaafc13
|
7
|
+
data.tar.gz: 39465e5808e18cbbb8c71e4475bf4b14d9ba3bde7e8c6721f9cc4b134bfa907e7fc6bdd92d7d54698504ec1fbcc58d13e1b68d62b6a51f61bd937d1bea8de547
|
data/lib/mixlib/archive.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require_relative "archive/tar"
|
2
|
+
require_relative "archive/version"
|
3
3
|
require "mixlib/log"
|
4
|
-
require "find"
|
4
|
+
require "find" unless defined?(Find.find)
|
5
5
|
|
6
6
|
module Mixlib
|
7
7
|
class Archive
|
@@ -21,7 +21,7 @@ module Mixlib
|
|
21
21
|
archive = File.expand_path(archive)
|
22
22
|
begin
|
23
23
|
# we prefer to use libarchive, which supports a great big pile o' stuff
|
24
|
-
|
24
|
+
require_relative "archive/lib_archive"
|
25
25
|
@archiver = Mixlib::Archive::LibArchive.new(archive)
|
26
26
|
rescue LoadError
|
27
27
|
# but if we can't use that, we'll fall back to ruby's native tar implementation
|
@@ -58,6 +58,7 @@ module Mixlib
|
|
58
58
|
if @empty
|
59
59
|
Dir.foreach(destination) do |entry|
|
60
60
|
next if entry == "." || entry == ".."
|
61
|
+
|
61
62
|
FileUtils.remove_entry_secure(File.join(destination, entry))
|
62
63
|
end
|
63
64
|
end
|
data/lib/mixlib/archive/tar.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require "rubygems/package"
|
2
|
-
require "tempfile"
|
3
|
-
require "zlib"
|
1
|
+
require "rubygems/package" unless defined?(Gem::Package)
|
2
|
+
require "tempfile" unless defined?(Tempfile)
|
3
|
+
require "zlib" unless defined?(Zlib)
|
4
4
|
|
5
5
|
module Mixlib
|
6
6
|
class Archive
|
@@ -72,6 +72,7 @@ module Mixlib
|
|
72
72
|
def create(files, gzip: false)
|
73
73
|
tgt_dir = File.dirname(archive)
|
74
74
|
target = Tempfile.new(File.basename(archive), tgt_dir)
|
75
|
+
target.binmode
|
75
76
|
|
76
77
|
Gem::Package::TarWriter.new(target) do |tar|
|
77
78
|
files.each do |fn|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixlib-archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: universal-mingw32
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-log
|
@@ -51,15 +51,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.4'
|
55
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
|
-
|
62
|
-
rubygems_version: 2.7.6
|
61
|
+
rubygems_version: 3.0.3
|
63
62
|
signing_key:
|
64
63
|
specification_version: 4
|
65
64
|
summary: A simple interface to various archive formats
|