ffi-libarchive 0.4.2 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/ffi-libarchive/archive.rb +1 -1
- data/lib/ffi-libarchive/version.rb +1 -1
- data/test/sets/ts_read.rb +10 -11
- data/test/sets/ts_write.rb +10 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3adc120723c76032310ce14cb7f3baa719e4652611b1970dd0a6abfcba52c9
|
4
|
+
data.tar.gz: 90dcedb260ba9ec0747f34618d112e2118f10441e64cd11dad51ffdd084bdb62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c87837659aa48f7fae76486623e11ada02709d20ce550e48a95a64562a2184ec2607f5bbfc1518c4f8f0adc0a3ccce9ad3f2fc49246d5a9d603c40afeaa23c96
|
7
|
+
data.tar.gz: 9a760bec0f9bfd48e55fc8a06743e1cef832999f2a345e738a264ea2bcd9e1bbf2deb3f98c0fb98a141c3dab29862dd031a82527905104f45eea13b31bc949b2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.4
|
@@ -8,7 +8,7 @@ module Archive
|
|
8
8
|
end
|
9
9
|
|
10
10
|
extend FFI::Library
|
11
|
-
ffi_lib %w{libarchive.so.13 libarchive.13 libarchive.so libarchive archive}
|
11
|
+
ffi_lib %w{libarchive.so.13 libarchive.13 libarchive-13 libarchive.so libarchive archive}
|
12
12
|
|
13
13
|
attach_function :archive_version_number, [], :int
|
14
14
|
attach_function :archive_version_string, [], :string
|
data/test/sets/ts_read.rb
CHANGED
@@ -4,17 +4,16 @@ require "test/unit"
|
|
4
4
|
|
5
5
|
class TS_ReadArchive < Test::Unit::TestCase
|
6
6
|
|
7
|
-
CONTENT_SPEC =
|
8
|
-
[
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
]
|
7
|
+
CONTENT_SPEC = [
|
8
|
+
["test/", "directory", 0755, nil ],
|
9
|
+
["test/b/", "directory", 0755, nil ],
|
10
|
+
["test/b/c/", "directory", 0755, nil ],
|
11
|
+
["test/b/c/c.dat", "file", 0600, "\266\262\v_\266\243\305\3601\204\277\351\354\265\003\036\036\365f\377\210\205\032\222\346\370b\360u\032Y\301".b ],
|
12
|
+
["test/b/c/d/", "directory", 0711, nil ],
|
13
|
+
["test/b/c/d/d.dat", "symbolic_link", 0777, "../c.dat" ],
|
14
|
+
["test/b/b.dat", "file", 0640, "s&\245\354(M\331=\270\000!s\355\240\252\355'N\304\343\bY\317\t\274\210\3128\321\347\234!".b ],
|
15
|
+
["test/a.dat", "file", 0777, "\021\216\231Y\354\236\271\372\336\213\224R\211{D{\277\262\304\211xu\330\\\275@~\035\vSRM".b ]
|
16
|
+
].freeze
|
18
17
|
|
19
18
|
def setup
|
20
19
|
File.open("data/test.tar.gz", "rb") do |f|
|
data/test/sets/ts_write.rb
CHANGED
@@ -4,17 +4,16 @@ require "test/unit"
|
|
4
4
|
|
5
5
|
class TS_WriteArchive < Test::Unit::TestCase
|
6
6
|
|
7
|
-
CONTENT_SPEC =
|
8
|
-
[
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
]
|
7
|
+
CONTENT_SPEC = [
|
8
|
+
["test/", "directory", 0755, nil ],
|
9
|
+
["test/b/", "directory", 0755, nil ],
|
10
|
+
["test/b/c/", "directory", 0755, nil ],
|
11
|
+
["test/b/c/c.dat", "file", 0600, "\266\262\v_\266\243\305\3601\204\277\351\354\265\003\036\036\365f\377\210\205\032\222\346\370b\360u\032Y\301".b ],
|
12
|
+
["test/b/c/d/", "directory", 0711, nil ],
|
13
|
+
["test/b/c/d/d.dat", "symbolic_link", 0777, "../c.dat" ],
|
14
|
+
["test/b/b.dat", "file", 0640, "s&\245\354(M\331=\270\000!s\355\240\252\355'N\304\343\bY\317\t\274\210\3128\321\347\234!".b ],
|
15
|
+
["test/a.dat", "file", 0777, "\021\216\231Y\354\236\271\372\336\213\224R\211{D{\277\262\304\211xu\330\\\275@~\035\vSRM".b ]
|
16
|
+
].freeze
|
18
17
|
|
19
18
|
def test_end_to_end_write_read_tar_gz
|
20
19
|
Dir.mktmpdir do |dir|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-libarchive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bellone
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ffi
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.7.
|
117
|
+
rubygems_version: 2.7.7
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: A Ruby FFI binding to libarchive.
|