mixlib-archive 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +36 -0
- data/Gemfile +4 -0
- data/lib/mixlib/archive.rb +2 -0
- data/lib/mixlib/archive/tar.rb +4 -1
- data/lib/mixlib/archive/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62781fdd21bfcd44095a2ed1c6b018f55a02f316
|
4
|
+
data.tar.gz: ca7b4a40f837192ebae44f13a53c5bd6fa2b7e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74ed668e4a73abc0fba7c7bc2b9dc07efb41506c55c198f5df6131de0d0c74ae9f45d5e9903eb8a14a8177e9e61cdd3b01aad2d6f6b6d3f05484fee118248101
|
7
|
+
data.tar.gz: 5311c175ff2b59f0e1caf830649cb15c23070ebe8a0ed43088a22fbef0fee6ab11c53ddca6809bef2ea608025cf76ee47989af5c46c3c818cd80f3879a71a207
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v0.4.0](https://github.com/chef/mixlib-archive/tree/v0.4.0) (2017-02-02)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/chef/mixlib-archive/compare/v0.3.0...v0.4.0)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Ignore directory traversing file\_names in an tar [\#6](https://github.com/chef/mixlib-archive/pull/6) ([thommay](https://github.com/thommay))
|
10
|
+
|
11
|
+
## [v0.3.0](https://github.com/chef/mixlib-archive/tree/v0.3.0) (2017-01-19)
|
12
|
+
[Full Changelog](https://github.com/chef/mixlib-archive/compare/v0.2.0...v0.3.0)
|
13
|
+
|
14
|
+
**Merged pull requests:**
|
15
|
+
|
16
|
+
- Use Rake 11 [\#5](https://github.com/chef/mixlib-archive/pull/5) ([tas50](https://github.com/tas50))
|
17
|
+
- Create archives as well as extracting them [\#4](https://github.com/chef/mixlib-archive/pull/4) ([thommay](https://github.com/thommay))
|
18
|
+
|
19
|
+
## [v0.2.0](https://github.com/chef/mixlib-archive/tree/v0.2.0) (2016-07-05)
|
20
|
+
[Full Changelog](https://github.com/chef/mixlib-archive/compare/v0.1.0...v0.2.0)
|
21
|
+
|
22
|
+
**Merged pull requests:**
|
23
|
+
|
24
|
+
- Add logging [\#3](https://github.com/chef/mixlib-archive/pull/3) ([thommay](https://github.com/thommay))
|
25
|
+
- Make extraction safer [\#2](https://github.com/chef/mixlib-archive/pull/2) ([thommay](https://github.com/thommay))
|
26
|
+
|
27
|
+
## [v0.1.0](https://github.com/chef/mixlib-archive/tree/v0.1.0) (2016-05-09)
|
28
|
+
[Full Changelog](https://github.com/chef/mixlib-archive/compare/053f20d5455cc463251f91d1413b973232909dc2...v0.1.0)
|
29
|
+
|
30
|
+
**Merged pull requests:**
|
31
|
+
|
32
|
+
- Turns out some tar archives don't contain dirs [\#1](https://github.com/chef/mixlib-archive/pull/1) ([thommay](https://github.com/thommay))
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Gemfile
CHANGED
data/lib/mixlib/archive.rb
CHANGED
data/lib/mixlib/archive/tar.rb
CHANGED
@@ -29,7 +29,10 @@ module Mixlib
|
|
29
29
|
dest = File.join(destination, entry.read.strip)
|
30
30
|
next
|
31
31
|
end
|
32
|
-
|
32
|
+
if entry.full_name =~ ignore_re
|
33
|
+
Mixlib::Archive::Log.warn "ignoring entry #{entry.full_name}"
|
34
|
+
next
|
35
|
+
end
|
33
36
|
dest ||= File.join(destination, entry.full_name)
|
34
37
|
parent = File.dirname(dest)
|
35
38
|
FileUtils.mkdir_p(parent)
|
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: 0.4.0
|
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: 2017-
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- ".gitignore"
|
91
91
|
- ".rspec"
|
92
92
|
- ".travis.yml"
|
93
|
+
- CHANGELOG.md
|
93
94
|
- Gemfile
|
94
95
|
- LICENSE
|
95
96
|
- README.md
|