zipruby 0.2.9 → 0.3.0
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.
Potentially problematic release.
This version of zipruby might be problematic. Click here for more details.
- data/LICENSE.libzip +27 -0
- data/README.txt +3 -3
- data/ext/tmpfile.c +175 -173
- data/ext/tmpfile.h +9 -9
- data/ext/zip.h +1 -1
- data/ext/zip_error_to_str.c +2 -0
- data/ext/zipint.h +1 -1
- data/ext/zipruby.c +18 -18
- data/ext/zipruby.h +28 -25
- data/ext/zipruby_archive.c +1330 -1326
- data/ext/zipruby_archive.h +23 -23
- data/ext/zipruby_error.c +10 -10
- data/ext/zipruby_error.h +6 -6
- data/ext/zipruby_file.c +398 -404
- data/ext/zipruby_file.h +23 -23
- data/ext/zipruby_stat.c +164 -164
- data/ext/zipruby_stat.h +12 -12
- data/ext/zipruby_zip.c +38 -38
- data/ext/zipruby_zip.h +6 -6
- data/ext/zipruby_zip_source_proc.c +67 -67
- data/ext/zipruby_zip_source_proc.h +14 -14
- data/zipruby.c +2200 -2200
- metadata +5 -6
- data/ext/libzip.mswin32.patch +0 -113
- data/ext/libzip.vcproj +0 -312
- data/ext/libzip.vcproj.LENOVO-72DB7FA8.sugawara.user +0 -37
data/ext/zipruby_archive.h
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
#ifndef __ZIPRUBY_ARCHIVE_H__
|
2
|
-
#define __ZIPRUBY_ARCHIVE_H__
|
3
|
-
|
4
|
-
#include "zip.h"
|
5
|
-
#include "ruby.h"
|
6
|
-
|
7
|
-
struct zipruby_archive {
|
8
|
-
struct zip *archive;
|
9
|
-
VALUE path;
|
10
|
-
int flags;
|
11
|
-
char *tmpfilnam;
|
12
|
-
VALUE buffer;
|
13
|
-
};
|
14
|
-
|
15
|
-
void Init_zipruby_archive();
|
16
|
-
|
17
|
-
#define Check_Archive(p) do { \
|
18
|
-
if ((p)->archive == NULL || NIL_P((p)->path)) { \
|
19
|
-
rb_raise(rb_eRuntimeError, "invalid Zip::Archive"); \
|
20
|
-
} \
|
21
|
-
} while(0)
|
22
|
-
|
23
|
-
#endif
|
1
|
+
#ifndef __ZIPRUBY_ARCHIVE_H__
|
2
|
+
#define __ZIPRUBY_ARCHIVE_H__
|
3
|
+
|
4
|
+
#include "zip.h"
|
5
|
+
#include "ruby.h"
|
6
|
+
|
7
|
+
struct zipruby_archive {
|
8
|
+
struct zip *archive;
|
9
|
+
VALUE path;
|
10
|
+
int flags;
|
11
|
+
char *tmpfilnam;
|
12
|
+
VALUE buffer;
|
13
|
+
};
|
14
|
+
|
15
|
+
void Init_zipruby_archive();
|
16
|
+
|
17
|
+
#define Check_Archive(p) do { \
|
18
|
+
if ((p)->archive == NULL || NIL_P((p)->path)) { \
|
19
|
+
rb_raise(rb_eRuntimeError, "invalid Zip::Archive"); \
|
20
|
+
} \
|
21
|
+
} while(0)
|
22
|
+
|
23
|
+
#endif
|
data/ext/zipruby_error.c
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
#include "zipruby.h"
|
2
|
-
#include "zipruby_error.h"
|
3
|
-
#include "ruby.h"
|
4
|
-
|
5
|
-
extern VALUE Zip;
|
6
|
-
VALUE Error;
|
7
|
-
|
8
|
-
void Init_zipruby_error() {
|
9
|
-
Error = rb_define_class_under(Zip, "Error", rb_eStandardError);
|
10
|
-
}
|
1
|
+
#include "zipruby.h"
|
2
|
+
#include "zipruby_error.h"
|
3
|
+
#include "ruby.h"
|
4
|
+
|
5
|
+
extern VALUE Zip;
|
6
|
+
VALUE Error;
|
7
|
+
|
8
|
+
void Init_zipruby_error() {
|
9
|
+
Error = rb_define_class_under(Zip, "Error", rb_eStandardError);
|
10
|
+
}
|
data/ext/zipruby_error.h
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#ifndef __ZIPRUBY_ERROR_H__
|
2
|
-
#define __ZIPRUBY_ERROR_H__
|
3
|
-
|
4
|
-
void Init_zipruby_error();
|
5
|
-
|
6
|
-
#endif
|
1
|
+
#ifndef __ZIPRUBY_ERROR_H__
|
2
|
+
#define __ZIPRUBY_ERROR_H__
|
3
|
+
|
4
|
+
void Init_zipruby_error();
|
5
|
+
|
6
|
+
#endif
|