libarchive-ruby-fs 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/ext/rblibarchive/libarchive_entry.c +9 -9
- data/lib/libarchive-ruby-fs/version.rb +1 -1
- metadata +31 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec3a5f103bd985b220902f6c3ba10cd42b47324a
|
4
|
+
data.tar.gz: 73ab5d60a2d788ed0be1a6619783a1995693a7ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e324aa79ea7719499dc4b866f49a18a17a5462a15edfbd76e44ce6c9a1a8ae5892ae999d5709da4f3c29c148fae848ff2a63a9309ff5f8b2e2a4703010a0a950
|
7
|
+
data.tar.gz: 7bd835c6d8f7d69e458392efd88d56575f15948643e554d24858082ae26b53bcd0575028e29c85c24dbd13cb72f69715a7c57886d1586b374a352717220a9cef
|
@@ -217,7 +217,7 @@ static VALUE rb_libarchive_entry_fflags_text(VALUE self) {
|
|
217
217
|
Data_Get_Struct(self, struct rb_libarchive_entry_container, p);
|
218
218
|
Check_Entry(p);
|
219
219
|
fflags_text = archive_entry_fflags_text(p->ae);
|
220
|
-
return (fflags_text != NULL) ?
|
220
|
+
return (fflags_text != NULL) ? rb_locale_str_new_cstr(fflags_text) : Qnil;
|
221
221
|
}
|
222
222
|
|
223
223
|
/* */
|
@@ -235,7 +235,7 @@ static VALUE rb_libarchive_entry_gname(VALUE self) {
|
|
235
235
|
Data_Get_Struct(self, struct rb_libarchive_entry_container, p);
|
236
236
|
Check_Entry(p);
|
237
237
|
gname = archive_entry_gname(p->ae);
|
238
|
-
return (gname != NULL) ?
|
238
|
+
return (gname != NULL) ? rb_locale_str_new_cstr(gname) : Qnil;
|
239
239
|
}
|
240
240
|
|
241
241
|
/* */
|
@@ -245,7 +245,7 @@ static VALUE rb_libarchive_entry_hardlink(VALUE self) {
|
|
245
245
|
Data_Get_Struct(self, struct rb_libarchive_entry_container, p);
|
246
246
|
Check_Entry(p);
|
247
247
|
hardlink = archive_entry_hardlink(p->ae);
|
248
|
-
return (hardlink != NULL) ?
|
248
|
+
return (hardlink != NULL) ? rb_locale_str_new_cstr(hardlink) : Qnil;
|
249
249
|
}
|
250
250
|
|
251
251
|
/* */
|
@@ -301,7 +301,7 @@ static VALUE rb_libarchive_entry_pathname(VALUE self) {
|
|
301
301
|
Data_Get_Struct(self, struct rb_libarchive_entry_container, p);
|
302
302
|
Check_Entry(p);
|
303
303
|
pathname = archive_entry_pathname(p->ae);
|
304
|
-
return (pathname != NULL) ?
|
304
|
+
return (pathname != NULL) ? rb_locale_str_new_cstr(pathname) : Qnil;
|
305
305
|
}
|
306
306
|
|
307
307
|
/* */
|
@@ -336,7 +336,7 @@ static VALUE rb_libarchive_entry_sourcepath(VALUE self) {
|
|
336
336
|
Data_Get_Struct(self, struct rb_libarchive_entry_container, p);
|
337
337
|
Check_Entry(p);
|
338
338
|
sourcepath = archive_entry_sourcepath(p->ae);
|
339
|
-
return (sourcepath != NULL) ?
|
339
|
+
return (sourcepath != NULL) ? rb_locale_str_new_cstr(sourcepath) : Qnil;
|
340
340
|
}
|
341
341
|
#endif
|
342
342
|
|
@@ -364,7 +364,7 @@ static VALUE rb_libarchive_entry_strmode(VALUE self) {
|
|
364
364
|
Data_Get_Struct(self, struct rb_libarchive_entry_container, p);
|
365
365
|
Check_Entry(p);
|
366
366
|
strmode = archive_entry_strmode(p->ae);
|
367
|
-
return (strmode != NULL) ?
|
367
|
+
return (strmode != NULL) ? rb_locale_str_new_cstr(strmode) : Qnil;
|
368
368
|
}
|
369
369
|
#endif
|
370
370
|
|
@@ -375,7 +375,7 @@ static VALUE rb_libarchive_entry_symlink(VALUE self) {
|
|
375
375
|
Data_Get_Struct(self, struct rb_libarchive_entry_container, p);
|
376
376
|
Check_Entry(p);
|
377
377
|
symlink = archive_entry_symlink(p->ae);
|
378
|
-
return (symlink != NULL) ?
|
378
|
+
return (symlink != NULL) ? rb_locale_str_new_cstr(symlink) : Qnil;
|
379
379
|
}
|
380
380
|
|
381
381
|
/* */
|
@@ -393,7 +393,7 @@ static VALUE rb_libarchive_entry_uname(VALUE self) {
|
|
393
393
|
Data_Get_Struct(self, struct rb_libarchive_entry_container, p);
|
394
394
|
Check_Entry(p);
|
395
395
|
uname = archive_entry_uname(p->ae);
|
396
|
-
return (uname != NULL) ?
|
396
|
+
return (uname != NULL) ? rb_locale_str_new_cstr(uname) : Qnil;
|
397
397
|
}
|
398
398
|
|
399
399
|
/* */
|
@@ -902,7 +902,7 @@ static VALUE rb_libarchive_entry_xattr_next(VALUE self) {
|
|
902
902
|
if (archive_entry_xattr_next(p->ae, &name, &value, &size) != ARCHIVE_OK) {
|
903
903
|
return Qnil;
|
904
904
|
} else {
|
905
|
-
return rb_ary_new3(3,
|
905
|
+
return rb_ary_new3(3, rb_locale_str_new_cstr(name), rb_locale_str_new(value, size));
|
906
906
|
}
|
907
907
|
}
|
908
908
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libarchive-ruby-fs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winebarrel
|
@@ -9,22 +9,36 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
20
|
+
version: '0.9'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
27
|
+
version: '0.9'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: minitest
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '5.3'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '5.3'
|
28
42
|
description: Ruby bindings for Libarchive. Libarchive is a programming library that
|
29
43
|
can create and read several different streaming archive formats, including most
|
30
44
|
popular tar variants, several cpio formats, and both BSD and GNU ar variants.
|
@@ -34,21 +48,21 @@ extensions:
|
|
34
48
|
- ext/rblibarchive/extconf.rb
|
35
49
|
extra_rdoc_files: []
|
36
50
|
files:
|
37
|
-
- ext/rblibarchive/libarchive_internal.h
|
38
51
|
- ext/rblibarchive/archive_read_support_compression.c
|
39
52
|
- ext/rblibarchive/archive_read_support_compression.h
|
40
|
-
- ext/rblibarchive/libarchive_writer.c
|
41
|
-
- ext/rblibarchive/libarchive_archive.c
|
42
|
-
- ext/rblibarchive/archive_write_set_compression.h
|
43
|
-
- ext/rblibarchive/extconf.rb
|
44
|
-
- ext/rblibarchive/archive_write_open_rb_str.c
|
45
53
|
- ext/rblibarchive/archive_read_support_format.c
|
46
54
|
- ext/rblibarchive/archive_read_support_format.h
|
55
|
+
- ext/rblibarchive/archive_write_open_rb_str.c
|
56
|
+
- ext/rblibarchive/archive_write_open_rb_str.h
|
47
57
|
- ext/rblibarchive/archive_write_set_compression.c
|
48
|
-
- ext/rblibarchive/
|
58
|
+
- ext/rblibarchive/archive_write_set_compression.h
|
59
|
+
- ext/rblibarchive/extconf.rb
|
49
60
|
- ext/rblibarchive/libarchive.c
|
50
|
-
- ext/rblibarchive/
|
61
|
+
- ext/rblibarchive/libarchive_archive.c
|
62
|
+
- ext/rblibarchive/libarchive_entry.c
|
63
|
+
- ext/rblibarchive/libarchive_internal.h
|
51
64
|
- ext/rblibarchive/libarchive_reader.c
|
65
|
+
- ext/rblibarchive/libarchive_writer.c
|
52
66
|
- lib/libarchive-ruby-fs.rb
|
53
67
|
- lib/libarchive-ruby-fs/version.rb
|
54
68
|
homepage: http://libarchive.rubyforge.org
|
@@ -60,17 +74,17 @@ require_paths:
|
|
60
74
|
- lib
|
61
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
76
|
requirements:
|
63
|
-
- -
|
77
|
+
- - ">="
|
64
78
|
- !ruby/object:Gem::Version
|
65
79
|
version: '0'
|
66
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
81
|
requirements:
|
68
|
-
- -
|
82
|
+
- - ">="
|
69
83
|
- !ruby/object:Gem::Version
|
70
84
|
version: '0'
|
71
85
|
requirements: []
|
72
86
|
rubyforge_project:
|
73
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.2.2
|
74
88
|
signing_key:
|
75
89
|
specification_version: 4
|
76
90
|
summary: Ruby bindings for Libarchive.
|