libarchive-ruby 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/ext/archive.cpp +4 -0
- data/ext/extconf.rb +5 -1
- metadata +6 -5
data/README.rdoc
CHANGED
@@ -13,7 +13,7 @@ know more? Keep reading!
|
|
13
13
|
|
14
14
|
In order to successfully install libarchive-ruby, you need the following:
|
15
15
|
|
16
|
-
* Ruby >= 1.
|
16
|
+
* Ruby >= 1.8.7
|
17
17
|
* A C++ compiler (we use the {GNU project's}[http://www.gnu.org] <tt>g++</tt>)
|
18
18
|
* libarchive (we tested with 2.8.4)
|
19
19
|
|
data/ext/archive.cpp
CHANGED
@@ -30,6 +30,10 @@ with libarchive-ruby; if not, write to the Free Software Foundation, Inc.,
|
|
30
30
|
|
31
31
|
//TODO: handle string IO as archive Archive.new(stringio)
|
32
32
|
|
33
|
+
#ifndef rb_proc_arity
|
34
|
+
#define rb_proc_arity(obj) 2
|
35
|
+
#endif
|
36
|
+
|
33
37
|
|
34
38
|
VALUE rb_cArchive,rb_eArchiveError,rb_eArchiveErrorFormat,rb_eArchiveErrorCompression;
|
35
39
|
|
data/ext/extconf.rb
CHANGED
@@ -32,7 +32,11 @@ find_header("archive.h")
|
|
32
32
|
$CFLAGS += " -Wall"
|
33
33
|
|
34
34
|
unless have_func("rb_string_value_cstr","ruby.h")
|
35
|
-
abort("missing VALUE to char convert!")
|
35
|
+
abort("missing VALUE to char* convert!")
|
36
36
|
end
|
37
|
+
unless have_macro("RETURN_ENUMERATOR","ruby.h")
|
38
|
+
abort("missing the return Enumerator macro.")
|
39
|
+
end
|
40
|
+
have_func("rb_proc_arity","ruby.h")
|
37
41
|
|
38
42
|
create_makefile("archive")
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Hanmac
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-05-
|
17
|
+
date: 2011-05-26 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -55,8 +55,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
segments:
|
57
57
|
- 1
|
58
|
-
-
|
59
|
-
|
58
|
+
- 8
|
59
|
+
- 7
|
60
|
+
version: 1.8.7
|
60
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
62
|
none: false
|
62
63
|
requirements:
|