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 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
@@ -1,3 +1,6 @@
1
+ == 0.1.1 / 2011-04-11
2
+ * Fix loading of library
3
+
1
4
  == 0.1.0 / 2011-04-11
2
5
 
3
6
  * 1 major enhancement
File without changes
@@ -56,5 +56,9 @@ module Archive
56
56
 
57
57
  end # module Archive
58
58
 
59
- Archive.require_all_libs_relative_to(__FILE__)
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
 
@@ -12,7 +12,7 @@ module Archive
12
12
 
13
13
  module C
14
14
  def self.attach_function_maybe *args
15
- attach_function *args
15
+ attach_function(*args)
16
16
  rescue FFI::NotFoundError
17
17
  end
18
18
 
@@ -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(File.dirname(__FILE__), 'stat.rb')
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(File.dirname(__FILE__), 'stat.rb')
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
@@ -1,9 +1,5 @@
1
1
  module Archive
2
2
 
3
- # TODO: Remove this forward-declaration
4
- class BaseArchive
5
- end
6
-
7
3
  class Reader < BaseArchive
8
4
 
9
5
  private_class_method :new
@@ -1,9 +1,5 @@
1
1
  module Archive
2
2
 
3
- # TODO: Remove this forward-declaration
4
- class BaseArchive
5
- end
6
-
7
3
  class Writer < BaseArchive
8
4
 
9
5
  private_class_method :new
data/test.tgz ADDED
Binary file
@@ -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.0
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.0
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 Z
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.7.2
90
+ rubygems_version: 1.6.2
87
91
  signing_key:
88
92
  specification_version: 3
89
93
  summary: An ffi binding to libarchive.