mixlib-archive 0.4.19-universal-mingw32 → 1.0.7-universal-mingw32

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: eb1cdabe421e0eb1711a438f3930254e0a803ad542f2f9d5a4228a29f13f26b9
4
- data.tar.gz: bbbe19257011b09e1b0d20ef176ccd72ce4492d13e1c90e172c2cd2f864ef8e0
3
+ metadata.gz: 223980b7e634fe427b9202c42991ae620470c8fb1a9d39b6d6bb3b7776c329ed
4
+ data.tar.gz: 9f1a4130384a817dfdccb50a66c68c9d34f1a30fd5827d3de3d3072e5eec3272
5
5
  SHA512:
6
- metadata.gz: bf5d6e8fe601c5a675a4e4542f3828627f374206b136820322cbd12729a26b57cbf607418f8b52d3a06d050c95f3a2d000c3637ae0ce9db9da4a1b9063158055
7
- data.tar.gz: 10405c9fa90de4f5230906fd2d843fdc86e9bcc199ea02e0d2a8b02623e35d982ec7e1e8e58a6d785cddc3f06c8419fe38ca4db0a4e1679d0927d26d1d001bbf
6
+ metadata.gz: 1cc94a9b97948bf1061c2ce7650cd4fc3e6365105f92b0e2bf2763891769adaa64252ffae68bf02244292e3a797325934755a449031634336ae949242aaafc13
7
+ data.tar.gz: 39465e5808e18cbbb8c71e4475bf4b14d9ba3bde7e8c6721f9cc4b134bfa907e7fc6bdd92d7d54698504ec1fbcc58d13e1b68d62b6a51f61bd937d1bea8de547
@@ -1,7 +1,7 @@
1
- require "mixlib/archive/tar"
2
- require "mixlib/archive/version"
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
- require "mixlib/archive/lib_archive"
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
@@ -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|
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Archive
3
- VERSION = "0.4.19".freeze
3
+ VERSION = "1.0.7".freeze
4
4
  end
5
5
  end
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.19
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: 2018-12-12 00:00:00.000000000 Z
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: '0'
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
- rubyforge_project:
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