libarchive-ruby-swig 0.5.7 → 0.5.8
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.
@@ -284,7 +284,8 @@ class Entry
|
|
284
284
|
static VALUE c_archive = rb_define_module("Archive");
|
285
285
|
static VALUE e_archive =
|
286
286
|
rb_define_class_under(c_archive, "Error", rb_eStandardError);
|
287
|
-
|
287
|
+
static VALUE o_except = rb_exc_new2(e_archive, err.what());
|
288
|
+
rb_exc_raise(o_except);
|
288
289
|
}
|
289
290
|
}
|
290
291
|
#endif
|
@@ -20,8 +20,13 @@ if find_executable('g++')
|
|
20
20
|
$libs = append_library($libs, "stdc++")
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
swig = [ 'swig2', 'swig2.0', 'swig' ].select { |swig_name|
|
24
|
+
find_executable(swig_name) }.first
|
25
|
+
|
26
|
+
if swig
|
27
|
+
$stdout.write "Using '#{swig}' to generate wrapper code... "
|
24
28
|
`#{swig} -c++ -ruby -features autodoc=0 libarchive.i`
|
29
|
+
$stdout.write "done\n"
|
25
30
|
$distcleanfiles += [ 'libarchive_wrap.cxx', 'libarchive_wrap_doc.cxx' ]
|
26
31
|
else
|
27
32
|
$stderr.write "You need SWIG to compile this extension.\n"
|
@@ -37,7 +37,8 @@ class Reader
|
|
37
37
|
static VALUE c_archive = rb_define_module("Archive");
|
38
38
|
static VALUE e_archive =
|
39
39
|
rb_define_class_under(c_archive, "Error", rb_eStandardError);
|
40
|
-
|
40
|
+
static VALUE o_except = rb_exc_new2(e_archive, err.what());
|
41
|
+
rb_exc_raise(o_except);
|
41
42
|
}
|
42
43
|
}
|
43
44
|
#endif
|
@@ -68,7 +68,8 @@ class Writer
|
|
68
68
|
static VALUE c_archive = rb_define_module("Archive");
|
69
69
|
static VALUE e_archive =
|
70
70
|
rb_define_class_under(c_archive, "Error", rb_eStandardError);
|
71
|
-
|
71
|
+
static VALUE o_except = rb_exc_new2(e_archive, err.what());
|
72
|
+
rb_exc_raise(o_except);
|
72
73
|
}
|
73
74
|
}
|
74
75
|
#endif
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libarchive-ruby-swig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 8
|
10
|
+
version: 0.5.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Koch
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-05-09 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|