mixlib-archive 0.4.13 → 0.4.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -10
- data/Gemfile +15 -0
- data/VERSION +1 -1
- data/appveyor.yml +31 -0
- data/distro/ruby_bin_folder/libarchive.dll +0 -0
- data/distro/ruby_bin_folder/liblzma-5.dll +0 -0
- data/distro/ruby_bin_folder/libxml2-2.dll +0 -0
- data/lib/mixlib/archive.rb +5 -1
- data/lib/mixlib/archive/tar.rb +1 -1
- data/lib/mixlib/archive/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80c0094c2194ff48fd6b36fffd034dd4989fa31eb061c4aa077a541e054f9598
|
4
|
+
data.tar.gz: 4076566b1233034d6288c80891fbfac843ca211a290b6d7b0f8b77fcda51e035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8ee1157b34e5e32a8ff3de85fd528355e6f59b8e1c81a159369b908af68cda1af726bcef985bc597ed25a3b7b64eab6c371e0e9667df0818ddfb6e7fd7dd8e7
|
7
|
+
data.tar.gz: 81938535bd96f3069255a63cbf99c05df33bc442f196447ed61001786ce6d57799d972c49a4636337645a70c4d161adf53bac05b78b6f523c8cb98c86efea9ef
|
data/CHANGELOG.md
CHANGED
@@ -1,30 +1,37 @@
|
|
1
1
|
<!-- usage documentation: http://expeditor-docs.es.chef.io/configuration/changelog/ -->
|
2
2
|
# Change Log
|
3
3
|
|
4
|
-
<!-- latest_release 0.4.
|
5
|
-
## [v0.4.
|
4
|
+
<!-- latest_release 0.4.16 -->
|
5
|
+
## [v0.4.16](https://github.com/chef/mixlib-archive/tree/v0.4.16) (2018-08-28)
|
6
6
|
|
7
7
|
#### Merged Pull Requests
|
8
|
-
-
|
8
|
+
- Fix read_tar_magic to properly return an array when a file has less than 264 characters [#30](https://github.com/chef/mixlib-archive/pull/30) ([bdwyertech](https://github.com/bdwyertech))
|
9
9
|
<!-- latest_release -->
|
10
10
|
|
11
|
-
<!-- release_rollup since=0.4.
|
11
|
+
<!-- release_rollup since=0.4.13 -->
|
12
12
|
### Changes not yet released to rubygems.org
|
13
13
|
|
14
14
|
#### Merged Pull Requests
|
15
|
-
-
|
16
|
-
-
|
17
|
-
-
|
18
|
-
- Move deps to the Gemfile and expand Rake tasks [#25](https://github.com/chef/mixlib-archive/pull/25) ([tas50](https://github.com/tas50)) <!-- 0.4.10 -->
|
19
|
-
- add codeowners [#24](https://github.com/chef/mixlib-archive/pull/24) ([thommay](https://github.com/thommay)) <!-- 0.4.9 -->
|
15
|
+
- Fix read_tar_magic to properly return an array when a file has less than 264 characters [#30](https://github.com/chef/mixlib-archive/pull/30) ([bdwyertech](https://github.com/bdwyertech)) <!-- 0.4.16 -->
|
16
|
+
- Fix mixlib-archive on Windows, add Appveyor [#31](https://github.com/chef/mixlib-archive/pull/31) ([stuartpreston](https://github.com/stuartpreston)) <!-- 0.4.15 -->
|
17
|
+
- Ensure that paths like foo..bar.baz aren't ignored [#9](https://github.com/chef/mixlib-archive/pull/9) ([thommay](https://github.com/thommay)) <!-- 0.4.14 -->
|
20
18
|
<!-- release_rollup -->
|
21
19
|
|
22
20
|
<!-- latest_stable_release -->
|
21
|
+
## [v0.4.13](https://github.com/chef/mixlib-archive/tree/v0.4.13) (2018-08-03)
|
22
|
+
|
23
|
+
#### Merged Pull Requests
|
24
|
+
- add codeowners [#24](https://github.com/chef/mixlib-archive/pull/24) ([thommay](https://github.com/thommay))
|
25
|
+
- Move deps to the Gemfile and expand Rake tasks [#25](https://github.com/chef/mixlib-archive/pull/25) ([tas50](https://github.com/tas50))
|
26
|
+
- Add github issue template & standardize expeditor config [#26](https://github.com/chef/mixlib-archive/pull/26) ([tas50](https://github.com/tas50))
|
27
|
+
- Update codeowners and add PR template [#27](https://github.com/chef/mixlib-archive/pull/27) ([tas50](https://github.com/tas50))
|
28
|
+
- bugfix to make dir.chdir threadsafe [#29](https://github.com/chef/mixlib-archive/pull/29) ([stevenoneill](https://github.com/stevenoneill))
|
29
|
+
<!-- latest_stable_release -->
|
30
|
+
|
23
31
|
## [v0.4.8](https://github.com/chef/mixlib-archive/tree/v0.4.8) (2018-06-21)
|
24
32
|
|
25
33
|
#### Merged Pull Requests
|
26
34
|
- Use the correct entry size for content with multi-byte characters. [#23](https://github.com/chef/mixlib-archive/pull/23) ([coderanger](https://github.com/coderanger))
|
27
|
-
<!-- latest_stable_release -->
|
28
35
|
|
29
36
|
## [v0.4.7](https://github.com/chef/mixlib-archive/tree/v0.4.7) (2018-06-07)
|
30
37
|
|
data/Gemfile
CHANGED
@@ -28,3 +28,18 @@ instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
|
|
28
28
|
# If you want to load debugging tools into the bundle exec sandbox,
|
29
29
|
# add these additional dependencies into Gemfile.local
|
30
30
|
eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
|
31
|
+
|
32
|
+
# These lines added for Windows (x64) development only.
|
33
|
+
# For ffi-libarchive to function during development on Windows we need the
|
34
|
+
# binaries in the RbConfig::CONFIG["bindir"]
|
35
|
+
#
|
36
|
+
# We copy (and overwrite) these files every time "bundle <exec|install>" is
|
37
|
+
# executed, just in case they have changed.
|
38
|
+
if RUBY_PLATFORM =~ /mswin|mingw|windows/
|
39
|
+
instance_eval do
|
40
|
+
ruby_exe_dir = RbConfig::CONFIG["bindir"]
|
41
|
+
assemblies = Dir.glob(File.expand_path("distro/ruby_bin_folder", Dir.pwd) + "/*.dll")
|
42
|
+
FileUtils.cp_r assemblies, ruby_exe_dir, verbose: false unless ENV["_BUNDLER_LIBARCHIVE_DLLS_COPIED"]
|
43
|
+
ENV["_BUNDLER_LIBARCHIVE_DLLS_COPIED"] = "1"
|
44
|
+
end
|
45
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.16
|
data/appveyor.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
version: "master-{build}"
|
2
|
+
|
3
|
+
os: Visual Studio 2017
|
4
|
+
platform:
|
5
|
+
- x64
|
6
|
+
|
7
|
+
environment:
|
8
|
+
matrix:
|
9
|
+
- ruby_version: "25-x64"
|
10
|
+
|
11
|
+
clone_folder: c:\projects\mixlib-archive
|
12
|
+
clone_depth: 1
|
13
|
+
skip_tags: true
|
14
|
+
branches:
|
15
|
+
only:
|
16
|
+
- master
|
17
|
+
|
18
|
+
install:
|
19
|
+
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
20
|
+
- echo %PATH%
|
21
|
+
- ruby --version
|
22
|
+
- gem --version
|
23
|
+
- gem update --system
|
24
|
+
- gem install bundler --quiet --no-ri --no-rdoc
|
25
|
+
- bundler --version
|
26
|
+
|
27
|
+
build_script:
|
28
|
+
- bundle install
|
29
|
+
|
30
|
+
test_script:
|
31
|
+
- bundle exec rake
|
Binary file
|
Binary file
|
Binary file
|
data/lib/mixlib/archive.rb
CHANGED
@@ -40,7 +40,7 @@ module Mixlib
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def extract(destination, perms: true, ignore: [])
|
43
|
-
ignore = [/^\.$/, /\.{2}/] + Array(ignore)
|
43
|
+
ignore = [/^\.$/, /\.{2}#{path_separator}/] + Array(ignore)
|
44
44
|
|
45
45
|
create_and_empty(destination)
|
46
46
|
|
@@ -49,6 +49,10 @@ module Mixlib
|
|
49
49
|
|
50
50
|
private
|
51
51
|
|
52
|
+
def path_separator
|
53
|
+
File::SEPARATOR
|
54
|
+
end
|
55
|
+
|
52
56
|
def create_and_empty(destination)
|
53
57
|
FileUtils.mkdir_p(destination)
|
54
58
|
if @empty
|
data/lib/mixlib/archive/tar.rb
CHANGED
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.
|
4
|
+
version: 0.4.16
|
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: 2018-08-
|
11
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-log
|
@@ -45,6 +45,10 @@ files:
|
|
45
45
|
- README.md
|
46
46
|
- Rakefile
|
47
47
|
- VERSION
|
48
|
+
- appveyor.yml
|
49
|
+
- distro/ruby_bin_folder/libarchive.dll
|
50
|
+
- distro/ruby_bin_folder/liblzma-5.dll
|
51
|
+
- distro/ruby_bin_folder/libxml2-2.dll
|
48
52
|
- lib/mixlib/archive.rb
|
49
53
|
- lib/mixlib/archive/lib_archive.rb
|
50
54
|
- lib/mixlib/archive/tar.rb
|