ffi-libarchive 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.bnsignore +20 -0
- data/History.txt +3 -0
- data/bin/ffi-libarchive-ruby +0 -0
- data/lib/ffi-libarchive.rb +5 -1
- data/lib/ffi-libarchive/archive.rb +1 -1
- data/lib/ffi-libarchive/entry.rb +2 -2
- data/lib/ffi-libarchive/reader.rb +0 -4
- data/lib/ffi-libarchive/writer.rb +0 -4
- data/test.tgz +0 -0
- data/test/sets/ts_write.rb +0 -10
- data/version.txt +1 -1
- metadata +7 -3
data/.bnsignore
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# The list of files that should be ignored by Mr Bones.
|
2
|
+
# Lines that start with '#' are comments.
|
3
|
+
#
|
4
|
+
# A .gitignore file can be used instead by setting it as the ignore
|
5
|
+
# file in your Rakefile:
|
6
|
+
#
|
7
|
+
# Bones {
|
8
|
+
# ignore_file '.gitignore'
|
9
|
+
# }
|
10
|
+
#
|
11
|
+
# For a project with a C extension, the following would be a good set of
|
12
|
+
# exclude patterns (uncomment them if you want to use them):
|
13
|
+
# *.[oa]
|
14
|
+
# *~
|
15
|
+
_darcs
|
16
|
+
announcement.txt
|
17
|
+
coverage
|
18
|
+
doc
|
19
|
+
pkg
|
20
|
+
*.rbc
|
data/History.txt
CHANGED
data/bin/ffi-libarchive-ruby
CHANGED
File without changes
|
data/lib/ffi-libarchive.rb
CHANGED
@@ -56,5 +56,9 @@ module Archive
|
|
56
56
|
|
57
57
|
end # module Archive
|
58
58
|
|
59
|
-
|
59
|
+
require File.join(Archive::LIBPATH, "ffi-libarchive", "archive")
|
60
|
+
require File.join(Archive::LIBPATH, "ffi-libarchive", "reader")
|
61
|
+
require File.join(Archive::LIBPATH, "ffi-libarchive", "writer")
|
62
|
+
require File.join(Archive::LIBPATH, "ffi-libarchive", "entry")
|
63
|
+
|
60
64
|
|
data/lib/ffi-libarchive/entry.rb
CHANGED
@@ -179,7 +179,7 @@ module Archive
|
|
179
179
|
def copy_lstat filename
|
180
180
|
# TODO get this work without ffi-inliner
|
181
181
|
begin
|
182
|
-
require File.join(
|
182
|
+
require File.join(Archive::LIBPATH, "ffi-libarchive", "stat")
|
183
183
|
rescue => e
|
184
184
|
raise "ffi-inliner build for copy_stat failed:\n#{e}"
|
185
185
|
end
|
@@ -204,7 +204,7 @@ module Archive
|
|
204
204
|
def copy_stat filename
|
205
205
|
# TODO get this work without ffi-inliner
|
206
206
|
begin
|
207
|
-
require File.join(
|
207
|
+
require File.join(Archive::LIBPATH, "ffi-libarchive", "stat")
|
208
208
|
rescue => e
|
209
209
|
raise "ffi-inliner build for copy_stat failed:\n#{e}"
|
210
210
|
end
|
data/test.tgz
ADDED
Binary file
|
data/test/sets/ts_write.rb
CHANGED
@@ -44,16 +44,6 @@ class TS_WriteArchive < Test::Unit::TestCase
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
def test_end_to_end_write_read_tar_gz
|
48
|
-
Dir.mktmpdir do |dir|
|
49
|
-
Archive.write_open_filename(dir + '/test.tar.gz', :gzip, :tar) do |ar|
|
50
|
-
write_content(ar)
|
51
|
-
end
|
52
|
-
|
53
|
-
verify_content(dir + '/test.tar.gz')
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
47
|
private
|
58
48
|
|
59
49
|
def write_content(ar)
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ffi-libarchive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Frank Fischer
|
@@ -10,7 +10,8 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-11 00:00:00
|
13
|
+
date: 2011-04-11 00:00:00 +02:00
|
14
|
+
default_executable:
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: ffi
|
@@ -44,6 +45,7 @@ extra_rdoc_files:
|
|
44
45
|
- History.txt
|
45
46
|
- bin/ffi-libarchive-ruby
|
46
47
|
files:
|
48
|
+
- .bnsignore
|
47
49
|
- History.txt
|
48
50
|
- README.md
|
49
51
|
- Rakefile
|
@@ -54,11 +56,13 @@ files:
|
|
54
56
|
- lib/ffi-libarchive/reader.rb
|
55
57
|
- lib/ffi-libarchive/stat.rb
|
56
58
|
- lib/ffi-libarchive/writer.rb
|
59
|
+
- test.tgz
|
57
60
|
- test/data/test.tar.gz
|
58
61
|
- test/sets/ts_read.rb
|
59
62
|
- test/sets/ts_write.rb
|
60
63
|
- test/test_ffi-libarchive.rb
|
61
64
|
- version.txt
|
65
|
+
has_rdoc: true
|
62
66
|
homepage: http://darcsden.com/lyro/ffi-libarchive
|
63
67
|
licenses: []
|
64
68
|
|
@@ -83,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
87
|
requirements: []
|
84
88
|
|
85
89
|
rubyforge_project: ffi-libarchive
|
86
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 1.6.2
|
87
91
|
signing_key:
|
88
92
|
specification_version: 3
|
89
93
|
summary: An ffi binding to libarchive.
|