zipruby 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of zipruby might be problematic. Click here for more details.

metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-02 00:00:00 +09:00
12
+ date: 2009-04-19 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -22,11 +22,9 @@ extensions:
22
22
  extra_rdoc_files:
23
23
  - README.txt
24
24
  - zipruby.c
25
+ - LICENSE.libzip
25
26
  files:
26
27
  - ext/extconf.rb
27
- - ext/libzip.mswin32.patch
28
- - ext/libzip.vcproj
29
- - ext/libzip.vcproj.LENOVO-72DB7FA8.sugawara.user
30
28
  - ext/mkstemp.c
31
29
  - ext/tmpfile.c
32
30
  - ext/tmpfile.h
@@ -99,6 +97,7 @@ files:
99
97
  - ext/zip_unchange_data.c
100
98
  - README.txt
101
99
  - zipruby.c
100
+ - LICENSE.libzip
102
101
  has_rdoc: true
103
102
  homepage: http://zipruby.rubyforge.org
104
103
  post_install_message:
@@ -122,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
121
  requirements: []
123
122
 
124
123
  rubyforge_project: zipruby
125
- rubygems_version: 1.1.1
124
+ rubygems_version: 1.3.1
126
125
  signing_key:
127
126
  specification_version: 2
128
127
  summary: Ruby bindings for libzip.
@@ -1,113 +0,0 @@
1
- diff -ru libzip-0.8.orig/lib/mkstemp.c libzip-0.8/lib/mkstemp.c
2
- --- libzip-0.8.orig/lib/mkstemp.c 2007-05-16 10:41:34.000000000 +0900
3
- +++ libzip-0.8/lib/mkstemp.c 2008-04-22 23:14:12.140625000 +0900
4
- @@ -43,6 +43,15 @@
5
- #include <stdio.h>
6
- #include <stdlib.h>
7
-
8
- +#ifdef _WIN32
9
- +#include <io.h>
10
- +#include <process.h>
11
- +#define getpid() _getpid()
12
- +typedef int pid_t;
13
- +#define S_ISDIR(m) (((m) & (_S_IFMT)) == (_S_IFDIR))
14
- +#define open(p, f, m) _open((p), ((f) | _O_BINARY), _S_IREAD | _S_IWRITE)
15
- +#endif
16
- +
17
- int
18
- _zip_mkstemp(char *path)
19
- {
20
- diff -ru libzip-0.8.orig/lib/zip.h libzip-0.8/lib/zip.h
21
- --- libzip-0.8.orig/lib/zip.h 2007-06-05 00:21:20.000000000 +0900
22
- +++ libzip-0.8/lib/zip.h 2008-04-22 23:14:12.140625000 +0900
23
- @@ -46,6 +46,10 @@
24
- #include <stdio.h>
25
- #include <time.h>
26
-
27
- +#ifdef _WIN32
28
- +typedef int ssize_t;
29
- +#endif
30
- +
31
- /* flags for zip_open */
32
-
33
- #define ZIP_CREATE 1
34
- diff -ru libzip-0.8.orig/lib/zip_close.c libzip-0.8/lib/zip_close.c
35
- --- libzip-0.8.orig/lib/zip_close.c 2007-06-05 00:21:20.000000000 +0900
36
- +++ libzip-0.8/lib/zip_close.c 2008-04-22 23:15:48.203125000 +0900
37
- @@ -42,6 +42,13 @@
38
- #include <sys/types.h>
39
- #include <sys/stat.h>
40
-
41
- +#ifdef _WIN32
42
- +#include <windows.h>
43
- +#include <io.h>
44
- +#define close(f) _close(f)
45
- +#define rename(s, d) (MoveFileExA((s), (d), MOVEFILE_REPLACE_EXISTING) ? 0 : -1)
46
- +#endif
47
- +
48
- #include "zip.h"
49
- #include "zipint.h"
50
-
51
- @@ -65,7 +72,9 @@
52
- int i, j, error;
53
- char *temp;
54
- FILE *out;
55
- +#ifndef _WIN32
56
- mode_t mask;
57
- +#endif
58
- struct zip_cdir *cd;
59
- struct zip_dirent de;
60
- int reopen_on_error;
61
- @@ -242,9 +251,11 @@
62
- }
63
- return -1;
64
- }
65
- +#ifndef _WIN32
66
- mask = umask(0);
67
- umask(mask);
68
- chmod(za->zn, 0666&~mask);
69
- +#endif
70
-
71
- _zip_free(za);
72
- free(temp);
73
- diff -ru libzip-0.8.orig/lib/zip_error_to_str.c libzip-0.8/lib/zip_error_to_str.c
74
- --- libzip-0.8.orig/lib/zip_error_to_str.c 2007-05-16 10:41:34.000000000 +0900
75
- +++ libzip-0.8/lib/zip_error_to_str.c 2008-04-22 23:14:12.140625000 +0900
76
- @@ -40,6 +40,10 @@
77
- #include <stdlib.h>
78
- #include <string.h>
79
-
80
- +#ifdef _WIN32
81
- +#define snprintf _snprintf
82
- +#endif
83
- +
84
- #include "zip.h"
85
- #include "zipint.h"
86
-
87
- diff -ru libzip-0.8.orig/lib/zip_name_locate.c libzip-0.8/lib/zip_name_locate.c
88
- --- libzip-0.8.orig/lib/zip_name_locate.c 2007-06-05 00:21:21.000000000 +0900
89
- +++ libzip-0.8/lib/zip_name_locate.c 2008-04-22 23:14:12.156250000 +0900
90
- @@ -37,6 +37,10 @@
91
-
92
- #include <string.h>
93
-
94
- +#ifdef _WIN32
95
- +#define strcasecmp _stricmp
96
- +#endif
97
- +
98
- #include "zip.h"
99
- #include "zipint.h"
100
-
101
- diff -ru libzip-0.8.orig/lib/zipint.h libzip-0.8/lib/zipint.h
102
- --- libzip-0.8.orig/lib/zipint.h 2007-06-05 00:21:21.000000000 +0900
103
- +++ libzip-0.8/lib/zipint.h 2008-04-22 23:14:12.156250000 +0900
104
- @@ -39,7 +39,9 @@
105
- #include <zlib.h>
106
-
107
- #include "zip.h"
108
- +#ifndef _WIN32
109
- #include "config.h"
110
- +#endif
111
-
112
- #ifndef HAVE_MKSTEMP
113
- int _zip_mkstemp(char *);
data/ext/libzip.vcproj DELETED
@@ -1,312 +0,0 @@
1
- <?xml version="1.0" encoding="shift_jis"?>
2
- <VisualStudioProject
3
- ProjectType="Visual C++"
4
- Version="9.00"
5
- Name="libzip"
6
- ProjectGUID="{E34589B5-6623-49AE-AF73-8881E3C81946}"
7
- RootNamespace="libzip"
8
- Keyword="Win32Proj"
9
- TargetFrameworkVersion="196613"
10
- >
11
- <Platforms>
12
- <Platform
13
- Name="Win32"
14
- />
15
- </Platforms>
16
- <ToolFiles>
17
- </ToolFiles>
18
- <Configurations>
19
- <Configuration
20
- Name="Release|Win32"
21
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
22
- IntermediateDirectory="$(ConfigurationName)"
23
- ConfigurationType="4"
24
- CharacterSet="1"
25
- WholeProgramOptimization="1"
26
- >
27
- <Tool
28
- Name="VCPreBuildEventTool"
29
- />
30
- <Tool
31
- Name="VCCustomBuildTool"
32
- />
33
- <Tool
34
- Name="VCXMLDataGeneratorTool"
35
- />
36
- <Tool
37
- Name="VCWebServiceProxyGeneratorTool"
38
- />
39
- <Tool
40
- Name="VCMIDLTool"
41
- />
42
- <Tool
43
- Name="VCCLCompilerTool"
44
- Optimization="2"
45
- EnableIntrinsicFunctions="true"
46
- AdditionalIncludeDirectories="&quot;C:\usr\local\zlib123-dll\include&quot;"
47
- PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
48
- RuntimeLibrary="0"
49
- EnableFunctionLevelLinking="true"
50
- UsePrecompiledHeader="0"
51
- WarningLevel="3"
52
- DebugInformationFormat="3"
53
- DisableSpecificWarnings="4018;4996"
54
- />
55
- <Tool
56
- Name="VCManagedResourceCompilerTool"
57
- />
58
- <Tool
59
- Name="VCResourceCompilerTool"
60
- />
61
- <Tool
62
- Name="VCPreLinkEventTool"
63
- />
64
- <Tool
65
- Name="VCLibrarianTool"
66
- AdditionalDependencies="zdll.lib"
67
- AdditionalLibraryDirectories="&quot;C:\usr\local\zlib123-dll\lib&quot;"
68
- />
69
- <Tool
70
- Name="VCALinkTool"
71
- />
72
- <Tool
73
- Name="VCXDCMakeTool"
74
- />
75
- <Tool
76
- Name="VCBscMakeTool"
77
- />
78
- <Tool
79
- Name="VCFxCopTool"
80
- />
81
- <Tool
82
- Name="VCPostBuildEventTool"
83
- />
84
- </Configuration>
85
- </Configurations>
86
- <References>
87
- </References>
88
- <Files>
89
- <File
90
- RelativePath=".\libzip.mswin32.patch"
91
- >
92
- </File>
93
- <File
94
- RelativePath=".\mkstemp.c"
95
- >
96
- </File>
97
- <File
98
- RelativePath=".\zip.h"
99
- >
100
- </File>
101
- <File
102
- RelativePath=".\zip_add.c"
103
- >
104
- </File>
105
- <File
106
- RelativePath=".\zip_add_dir.c"
107
- >
108
- </File>
109
- <File
110
- RelativePath=".\zip_close.c"
111
- >
112
- </File>
113
- <File
114
- RelativePath=".\zip_crypt.c"
115
- >
116
- </File>
117
- <File
118
- RelativePath=".\zip_delete.c"
119
- >
120
- </File>
121
- <File
122
- RelativePath=".\zip_dirent.c"
123
- >
124
- </File>
125
- <File
126
- RelativePath=".\zip_entry_free.c"
127
- >
128
- </File>
129
- <File
130
- RelativePath=".\zip_entry_new.c"
131
- >
132
- </File>
133
- <File
134
- RelativePath=".\zip_err_str.c"
135
- >
136
- </File>
137
- <File
138
- RelativePath=".\zip_error.c"
139
- >
140
- </File>
141
- <File
142
- RelativePath=".\zip_error_clear.c"
143
- >
144
- </File>
145
- <File
146
- RelativePath=".\zip_error_get.c"
147
- >
148
- </File>
149
- <File
150
- RelativePath=".\zip_error_get_sys_type.c"
151
- >
152
- </File>
153
- <File
154
- RelativePath=".\zip_error_strerror.c"
155
- >
156
- </File>
157
- <File
158
- RelativePath=".\zip_error_to_str.c"
159
- >
160
- </File>
161
- <File
162
- RelativePath=".\zip_fclose.c"
163
- >
164
- </File>
165
- <File
166
- RelativePath=".\zip_file_error_clear.c"
167
- >
168
- </File>
169
- <File
170
- RelativePath=".\zip_file_error_get.c"
171
- >
172
- </File>
173
- <File
174
- RelativePath=".\zip_file_get_offset.c"
175
- >
176
- </File>
177
- <File
178
- RelativePath=".\zip_file_strerror.c"
179
- >
180
- </File>
181
- <File
182
- RelativePath=".\zip_fopen.c"
183
- >
184
- </File>
185
- <File
186
- RelativePath=".\zip_fopen_index.c"
187
- >
188
- </File>
189
- <File
190
- RelativePath=".\zip_fread.c"
191
- >
192
- </File>
193
- <File
194
- RelativePath=".\zip_free.c"
195
- >
196
- </File>
197
- <File
198
- RelativePath=".\zip_get_archive_comment.c"
199
- >
200
- </File>
201
- <File
202
- RelativePath=".\zip_get_file_comment.c"
203
- >
204
- </File>
205
- <File
206
- RelativePath=".\zip_get_name.c"
207
- >
208
- </File>
209
- <File
210
- RelativePath=".\zip_get_num_files.c"
211
- >
212
- </File>
213
- <File
214
- RelativePath=".\zip_memdup.c"
215
- >
216
- </File>
217
- <File
218
- RelativePath=".\zip_name_locate.c"
219
- >
220
- </File>
221
- <File
222
- RelativePath=".\zip_new.c"
223
- >
224
- </File>
225
- <File
226
- RelativePath=".\zip_open.c"
227
- >
228
- </File>
229
- <File
230
- RelativePath=".\zip_rename.c"
231
- >
232
- </File>
233
- <File
234
- RelativePath=".\zip_replace.c"
235
- >
236
- </File>
237
- <File
238
- RelativePath=".\zip_set_archive_comment.c"
239
- >
240
- </File>
241
- <File
242
- RelativePath=".\zip_set_file_comment.c"
243
- >
244
- </File>
245
- <File
246
- RelativePath=".\zip_set_name.c"
247
- >
248
- </File>
249
- <File
250
- RelativePath=".\zip_source_buffer.c"
251
- >
252
- </File>
253
- <File
254
- RelativePath=".\zip_source_file.c"
255
- >
256
- </File>
257
- <File
258
- RelativePath=".\zip_source_filep.c"
259
- >
260
- </File>
261
- <File
262
- RelativePath=".\zip_source_free.c"
263
- >
264
- </File>
265
- <File
266
- RelativePath=".\zip_source_function.c"
267
- >
268
- </File>
269
- <File
270
- RelativePath=".\zip_source_zip.c"
271
- >
272
- </File>
273
- <File
274
- RelativePath=".\zip_stat.c"
275
- >
276
- </File>
277
- <File
278
- RelativePath=".\zip_stat_index.c"
279
- >
280
- </File>
281
- <File
282
- RelativePath=".\zip_stat_init.c"
283
- >
284
- </File>
285
- <File
286
- RelativePath=".\zip_strerror.c"
287
- >
288
- </File>
289
- <File
290
- RelativePath=".\zip_unchange.c"
291
- >
292
- </File>
293
- <File
294
- RelativePath=".\zip_unchange_all.c"
295
- >
296
- </File>
297
- <File
298
- RelativePath=".\zip_unchange_archive.c"
299
- >
300
- </File>
301
- <File
302
- RelativePath=".\zip_unchange_data.c"
303
- >
304
- </File>
305
- <File
306
- RelativePath=".\zipint.h"
307
- >
308
- </File>
309
- </Files>
310
- <Globals>
311
- </Globals>
312
- </VisualStudioProject>
@@ -1,37 +0,0 @@
1
- <?xml version="1.0" encoding="shift_jis"?>
2
- <VisualStudioUserFile
3
- ProjectType="Visual C++"
4
- Version="9.00"
5
- ShowAllFiles="false"
6
- >
7
- <Configurations>
8
- <Configuration
9
- Name="Release|Win32"
10
- >
11
- <DebugSettings
12
- Command=""
13
- WorkingDirectory=""
14
- CommandArguments=""
15
- Attach="false"
16
- DebuggerType="3"
17
- Remote="1"
18
- RemoteMachine="LENOVO-72DB7FA8"
19
- RemoteCommand=""
20
- HttpUrl=""
21
- PDBPath=""
22
- SQLDebugging=""
23
- Environment=""
24
- EnvironmentMerge="true"
25
- DebuggerFlavor=""
26
- MPIRunCommand=""
27
- MPIRunArguments=""
28
- MPIRunWorkingDirectory=""
29
- ApplicationCommand=""
30
- ApplicationArguments=""
31
- ShimCommand=""
32
- MPIAcceptMode=""
33
- MPIAcceptFilter=""
34
- />
35
- </Configuration>
36
- </Configurations>
37
- </VisualStudioUserFile>