mixlib-archive 1.0.1 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5b836a606a39c40788fc54fb673b0c5788a2a129e30f3e83d7d7c67ad69ecb6
4
- data.tar.gz: d56a2122d4328da518ed7cae58410d37c9364c9f1a1129ef327adc64a68a7924
3
+ metadata.gz: 044cadddda0adfaf4c67efc46395ba2eb4acb4d094d998c3840c6e96118e427c
4
+ data.tar.gz: ffd5dd9e5fb6baa92e387712ac51c1ccd243da136b38a93dbc6d89706dbee870
5
5
  SHA512:
6
- metadata.gz: 3fe3bf7c7bcd397cb813272a9a62cf5c53affc2b7591704248c4d12a9c48ea6187189ab415816ea7bd56042e52f67179eb2c3a90558ed480afb0aad50a677a6c
7
- data.tar.gz: 9c6d31f210bd9be1336871cb11896e3f7d58c56a4cf59322575a06e5cb904197dd6c166f290f9bac2d1d28bfdd1a881dfbb5569dc0e089387b1e9e82da750f6f
6
+ metadata.gz: 6c78f92bc285494f0a287d223b8130dfd023b17af7bc41a0664af980ecea938f898e6d0f5bc5f88ee653e769a470c2a98eb8513b269306faa140c7101ad4d288
7
+ data.tar.gz: 00ea334196fa34c4b14b5fadfc79291fb284d4304ccc7eb34220c7fbdfb45d0bc0289d67468672b15f92053963ddfb2a50488480dbc651856e66b8f20a3da0c8
@@ -1,5 +1,5 @@
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
4
  require "find"
5
5
 
@@ -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,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Archive
3
- VERSION = "1.0.1".freeze
3
+ VERSION = "1.0.5".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: 1.0.1
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-log
@@ -55,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
- rubyforge_project:
59
- rubygems_version: 2.7.6
58
+ rubygems_version: 3.0.3
60
59
  signing_key:
61
60
  specification_version: 4
62
61
  summary: A simple interface to various archive formats