archive-zip 0.1.1 → 0.2.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.
- data/MANIFEST +7 -6
- data/NEWS +17 -7
- data/README +22 -1
- data/lib/archive/zip.rb +105 -36
- data/lib/archive/zip/codec.rb +35 -14
- data/lib/archive/zip/codec/deflate.rb +34 -32
- data/lib/archive/zip/codec/null_encryption.rb +176 -0
- data/lib/archive/zip/codec/store.rb +46 -40
- data/lib/archive/zip/codec/traditional_encryption.rb +308 -0
- data/lib/archive/zip/{datadescriptor.rb → data_descriptor.rb} +8 -6
- data/lib/archive/zip/entry.rb +290 -135
- data/lib/archive/zip/{extrafield.rb → extra_field.rb} +3 -3
- data/lib/archive/zip/{extrafield/extendedtimestamp.rb → extra_field/extended_timestamp.rb} +0 -0
- data/lib/archive/zip/{extrafield → extra_field}/raw.rb +0 -0
- data/lib/archive/zip/{extrafield → extra_field}/unix.rb +0 -0
- metadata +9 -8
- data/test/test_archive.rb +0 -8
@@ -18,6 +18,6 @@ module Archive; class Zip
|
|
18
18
|
end; end
|
19
19
|
|
20
20
|
# Load the standard extra field classes.
|
21
|
-
require 'archive/zip/
|
22
|
-
require 'archive/zip/
|
23
|
-
require 'archive/zip/
|
21
|
+
require 'archive/zip/extra_field/extended_timestamp'
|
22
|
+
require 'archive/zip/extra_field/raw'
|
23
|
+
require 'archive/zip/extra_field/unix'
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archive-zip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Bopp
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-07
|
12
|
+
date: 2008-08-07 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -38,15 +38,17 @@ extra_rdoc_files:
|
|
38
38
|
- README
|
39
39
|
files:
|
40
40
|
- lib/archive/zip/codec.rb
|
41
|
-
- lib/archive/zip/extrafield/extendedtimestamp.rb
|
42
|
-
- lib/archive/zip/extrafield/unix.rb
|
43
|
-
- lib/archive/zip/extrafield/raw.rb
|
44
41
|
- lib/archive/zip/entry.rb
|
42
|
+
- lib/archive/zip/data_descriptor.rb
|
43
|
+
- lib/archive/zip/extra_field/extended_timestamp.rb
|
44
|
+
- lib/archive/zip/extra_field/unix.rb
|
45
|
+
- lib/archive/zip/extra_field/raw.rb
|
45
46
|
- lib/archive/zip/error.rb
|
46
|
-
- lib/archive/zip/
|
47
|
+
- lib/archive/zip/extra_field.rb
|
48
|
+
- lib/archive/zip/codec/null_encryption.rb
|
47
49
|
- lib/archive/zip/codec/store.rb
|
48
50
|
- lib/archive/zip/codec/deflate.rb
|
49
|
-
- lib/archive/zip/
|
51
|
+
- lib/archive/zip/codec/traditional_encryption.rb
|
50
52
|
- lib/archive/support/io.rb
|
51
53
|
- lib/archive/support/iowindow.rb
|
52
54
|
- lib/archive/support/zlib.rb
|
@@ -54,7 +56,6 @@ files:
|
|
54
56
|
- lib/archive/support/time.rb
|
55
57
|
- lib/archive/support/stringio.rb
|
56
58
|
- lib/archive/zip.rb
|
57
|
-
- test/test_archive.rb
|
58
59
|
- CONTRIBUTORS
|
59
60
|
- HACKING
|
60
61
|
- LICENSE
|
data/test/test_archive.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
require 'archive/zip'
|
2
|
-
|
3
|
-
FileUtils.rm_f('export.zip')
|
4
|
-
FileUtils.rm_rf('extract_test')
|
5
|
-
|
6
|
-
Archive::Zip.archive('export.zip', 'test/data/.', :symlinks => false)
|
7
|
-
#Archive::Zip.archive('export.zip', 'test/data/.', :symlinks => true, :exclude => lambda { |e| e.file? })
|
8
|
-
Archive::Zip.extract('export.zip', 'extract_test', :symlinks => true, :exclude => lambda { |e| e.symlink? })
|