archive-zip 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HACKING +25 -42
- data/NEWS +25 -0
- data/README +2 -2
- data/Rakefile +202 -0
- data/TODO +5 -0
- data/default.mspec +8 -0
- data/lib/archive/support/binary_stringio.rb +23 -0
- data/lib/archive/support/integer.rb +13 -0
- data/lib/archive/support/io-like.rb +3 -1
- data/lib/archive/support/ioextensions.rb +16 -0
- data/lib/archive/support/iowindow.rb +10 -18
- data/lib/archive/support/time.rb +2 -0
- data/lib/archive/support/zlib.rb +298 -71
- data/lib/archive/zip.rb +161 -139
- data/lib/archive/zip/codec.rb +2 -0
- data/lib/archive/zip/codec/deflate.rb +59 -11
- data/lib/archive/zip/codec/null_encryption.rb +75 -14
- data/lib/archive/zip/codec/store.rb +75 -26
- data/lib/archive/zip/codec/traditional_encryption.rb +146 -35
- data/lib/archive/zip/data_descriptor.rb +6 -4
- data/lib/archive/zip/entry.rb +184 -132
- data/lib/archive/zip/error.rb +2 -0
- data/lib/archive/zip/extra_field.rb +20 -6
- data/lib/archive/zip/extra_field/extended_timestamp.rb +141 -60
- data/lib/archive/zip/extra_field/raw.rb +70 -12
- data/lib/archive/zip/extra_field/unix.rb +58 -16
- data/lib/archive/zip/version.rb +6 -0
- data/spec/archive/zip/codec/deflate/compress/checksum_spec.rb +42 -0
- data/spec/archive/zip/codec/deflate/compress/close_spec.rb +44 -0
- data/spec/archive/zip/codec/deflate/compress/crc32_spec.rb +21 -0
- data/spec/archive/zip/codec/deflate/compress/data_descriptor_spec.rb +67 -0
- data/spec/archive/zip/codec/deflate/compress/new_spec.rb +37 -0
- data/spec/archive/zip/codec/deflate/compress/open_spec.rb +46 -0
- data/spec/archive/zip/codec/deflate/compress/write_spec.rb +109 -0
- data/spec/archive/zip/codec/deflate/decompress/checksum_spec.rb +18 -0
- data/spec/archive/zip/codec/deflate/decompress/close_spec.rb +33 -0
- data/spec/archive/zip/codec/deflate/decompress/crc32_spec.rb +18 -0
- data/spec/archive/zip/codec/deflate/decompress/data_descriptor_spec.rb +67 -0
- data/spec/archive/zip/codec/deflate/decompress/new_spec.rb +14 -0
- data/spec/archive/zip/codec/deflate/decompress/open_spec.rb +27 -0
- data/spec/archive/zip/codec/deflate/fixtures/classes.rb +25 -0
- data/spec/archive/zip/codec/deflate/fixtures/compressed_file.bin +1 -0
- data/spec/archive/zip/codec/deflate/fixtures/compressed_file_nocomp.bin +0 -0
- data/spec/archive/zip/codec/deflate/fixtures/raw_file.txt +10 -0
- data/spec/archive/zip/codec/null_encryption/decrypt/close_spec.rb +33 -0
- data/spec/archive/zip/codec/null_encryption/decrypt/new_spec.rb +14 -0
- data/spec/archive/zip/codec/null_encryption/decrypt/open_spec.rb +27 -0
- data/spec/archive/zip/codec/null_encryption/decrypt/read_spec.rb +24 -0
- data/spec/archive/zip/codec/null_encryption/decrypt/rewind_spec.rb +25 -0
- data/spec/archive/zip/codec/null_encryption/decrypt/seek_spec.rb +57 -0
- data/spec/archive/zip/codec/null_encryption/decrypt/tell_spec.rb +21 -0
- data/spec/archive/zip/codec/null_encryption/encrypt/close_spec.rb +33 -0
- data/spec/archive/zip/codec/null_encryption/encrypt/new_spec.rb +14 -0
- data/spec/archive/zip/codec/null_encryption/encrypt/open_spec.rb +27 -0
- data/spec/archive/zip/codec/null_encryption/encrypt/rewind_spec.rb +26 -0
- data/spec/archive/zip/codec/null_encryption/encrypt/seek_spec.rb +50 -0
- data/spec/archive/zip/codec/null_encryption/encrypt/tell_spec.rb +29 -0
- data/spec/archive/zip/codec/null_encryption/encrypt/write_spec.rb +29 -0
- data/spec/archive/zip/codec/null_encryption/fixtures/classes.rb +12 -0
- data/spec/archive/zip/codec/null_encryption/fixtures/raw_file.txt +10 -0
- data/spec/archive/zip/codec/store/compress/close_spec.rb +33 -0
- data/spec/archive/zip/codec/store/compress/data_descriptor_spec.rb +68 -0
- data/spec/archive/zip/codec/store/compress/new_spec.rb +14 -0
- data/spec/archive/zip/codec/store/compress/open_spec.rb +27 -0
- data/spec/archive/zip/codec/store/compress/rewind_spec.rb +26 -0
- data/spec/archive/zip/codec/store/compress/seek_spec.rb +50 -0
- data/spec/archive/zip/codec/store/compress/tell_spec.rb +29 -0
- data/spec/archive/zip/codec/store/compress/write_spec.rb +29 -0
- data/spec/archive/zip/codec/store/decompress/close_spec.rb +33 -0
- data/spec/archive/zip/codec/store/decompress/data_descriptor_spec.rb +68 -0
- data/spec/archive/zip/codec/store/decompress/new_spec.rb +14 -0
- data/spec/archive/zip/codec/store/decompress/open_spec.rb +27 -0
- data/spec/archive/zip/codec/store/decompress/read_spec.rb +24 -0
- data/spec/archive/zip/codec/store/decompress/rewind_spec.rb +25 -0
- data/spec/archive/zip/codec/store/decompress/seek_spec.rb +57 -0
- data/spec/archive/zip/codec/store/decompress/tell_spec.rb +21 -0
- data/spec/archive/zip/codec/store/fixtures/classes.rb +12 -0
- data/spec/archive/zip/codec/store/fixtures/raw_file.txt +10 -0
- data/spec/archive/zip/codec/traditional_encryption/decrypt/close_spec.rb +64 -0
- data/spec/archive/zip/codec/traditional_encryption/decrypt/new_spec.rb +18 -0
- data/spec/archive/zip/codec/traditional_encryption/decrypt/open_spec.rb +39 -0
- data/spec/archive/zip/codec/traditional_encryption/decrypt/read_spec.rb +126 -0
- data/spec/archive/zip/codec/traditional_encryption/decrypt/rewind_spec.rb +38 -0
- data/spec/archive/zip/codec/traditional_encryption/decrypt/seek_spec.rb +82 -0
- data/spec/archive/zip/codec/traditional_encryption/decrypt/tell_spec.rb +25 -0
- data/spec/archive/zip/codec/traditional_encryption/encrypt/close_spec.rb +64 -0
- data/spec/archive/zip/codec/traditional_encryption/encrypt/new_spec.rb +18 -0
- data/spec/archive/zip/codec/traditional_encryption/encrypt/open_spec.rb +39 -0
- data/spec/archive/zip/codec/traditional_encryption/encrypt/rewind_spec.rb +41 -0
- data/spec/archive/zip/codec/traditional_encryption/encrypt/seek_spec.rb +75 -0
- data/spec/archive/zip/codec/traditional_encryption/encrypt/tell_spec.rb +42 -0
- data/spec/archive/zip/codec/traditional_encryption/encrypt/write_spec.rb +127 -0
- data/spec/archive/zip/codec/traditional_encryption/fixtures/classes.rb +27 -0
- data/spec/archive/zip/codec/traditional_encryption/fixtures/encrypted_file.bin +0 -0
- data/spec/archive/zip/codec/traditional_encryption/fixtures/raw_file.txt +10 -0
- data/spec/binary_stringio/new_spec.rb +34 -0
- data/spec/binary_stringio/set_encoding_spec.rb +14 -0
- data/spec/ioextensions/read_exactly_spec.rb +50 -0
- data/spec/zlib/fixtures/classes.rb +65 -0
- data/spec/zlib/fixtures/compressed_file.bin +1 -0
- data/spec/zlib/fixtures/compressed_file_gzip.bin +0 -0
- data/spec/zlib/fixtures/compressed_file_huffman.bin +2 -0
- data/spec/zlib/fixtures/compressed_file_minmem.bin +0 -0
- data/spec/zlib/fixtures/compressed_file_minwin.bin +1 -0
- data/spec/zlib/fixtures/compressed_file_nocomp.bin +0 -0
- data/spec/zlib/fixtures/compressed_file_raw.bin +1 -0
- data/spec/zlib/fixtures/raw_file.txt +10 -0
- data/spec/zlib/zreader/checksum_spec.rb +40 -0
- data/spec/zlib/zreader/close_spec.rb +14 -0
- data/spec/zlib/zreader/compressed_size_spec.rb +18 -0
- data/spec/zlib/zreader/new_spec.rb +41 -0
- data/spec/zlib/zreader/open_spec.rb +49 -0
- data/spec/zlib/zreader/read_spec.rb +47 -0
- data/spec/zlib/zreader/rewind_spec.rb +23 -0
- data/spec/zlib/zreader/seek_spec.rb +55 -0
- data/spec/zlib/zreader/tell_spec.rb +21 -0
- data/spec/zlib/zreader/uncompressed_size_spec.rb +18 -0
- data/spec/zlib/zwriter/checksum_spec.rb +41 -0
- data/spec/zlib/zwriter/close_spec.rb +14 -0
- data/spec/zlib/zwriter/compressed_size_spec.rb +19 -0
- data/spec/zlib/zwriter/new_spec.rb +64 -0
- data/spec/zlib/zwriter/open_spec.rb +68 -0
- data/spec/zlib/zwriter/rewind_spec.rb +26 -0
- data/spec/zlib/zwriter/seek_spec.rb +54 -0
- data/spec/zlib/zwriter/tell_spec.rb +29 -0
- data/spec/zlib/zwriter/uncompressed_size_spec.rb +19 -0
- data/spec/zlib/zwriter/write_spec.rb +28 -0
- data/spec_helper.rb +49 -0
- metadata +296 -74
- data/MANIFEST +0 -27
- data/lib/archive/support/io.rb +0 -14
- data/lib/archive/support/stringio.rb +0 -22
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
require File.dirname(__FILE__) + '/../../../spec_helper'
|
4
|
+
require File.dirname(__FILE__) + '/../fixtures/classes'
|
5
|
+
require 'archive/support/zlib'
|
6
|
+
require 'archive/support/binary_stringio'
|
7
|
+
|
8
|
+
describe "Zlib::ZWriter#uncompressed_size" do
|
9
|
+
it "returns the number of bytes of uncompressed data" do
|
10
|
+
compressed_data = BinaryStringIO.new
|
11
|
+
closed_zw = Zlib::ZWriter.open(compressed_data, nil, -15) do |zw|
|
12
|
+
zw.sync = true
|
13
|
+
zw.write(ZlibSpecs.test_data)
|
14
|
+
zw.uncompressed_size.should == 235
|
15
|
+
zw
|
16
|
+
end
|
17
|
+
closed_zw.uncompressed_size.should == 235
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
require File.dirname(__FILE__) + '/../../../spec_helper'
|
4
|
+
require File.dirname(__FILE__) + '/../fixtures/classes'
|
5
|
+
require 'archive/support/zlib'
|
6
|
+
require 'archive/support/binary_stringio'
|
7
|
+
|
8
|
+
describe "Zlib::ZWriter#write" do
|
9
|
+
it "calls the write method of the delegate" do
|
10
|
+
delegate = mock('delegate')
|
11
|
+
# RSpec's mocking facility supposedly supports this, but MSpec's does not as
|
12
|
+
# of version 1.5.10.
|
13
|
+
#delegate.should_receive(:write).with(an_instance_of(String)).at_least(:once).and_return { |s| s.length }
|
14
|
+
# Use the following instead for now.
|
15
|
+
delegate.should_receive(:write).at_least(:once).and_return(1)
|
16
|
+
Zlib::ZWriter.open(delegate) do |zw|
|
17
|
+
zw.write(ZlibSpecs.test_data)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
it "compresses data" do
|
22
|
+
compressed_data = BinaryStringIO.new
|
23
|
+
Zlib::ZWriter.open(compressed_data) do |zw|
|
24
|
+
zw.write(ZlibSpecs.test_data)
|
25
|
+
end
|
26
|
+
compressed_data.string.should == ZlibSpecs.compressed_data
|
27
|
+
end
|
28
|
+
end
|
data/spec_helper.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# Add the lib directory for this module to the search path.
|
3
|
+
$: << File.join(File.dirname(__FILE__), 'lib')
|
4
|
+
|
5
|
+
unless ENV['MSPEC_RUNNER']
|
6
|
+
begin
|
7
|
+
require 'mspec/version'
|
8
|
+
require 'mspec/helpers'
|
9
|
+
require 'mspec/guards'
|
10
|
+
require 'mspec/runner/shared'
|
11
|
+
require 'mspec/matchers/complain'
|
12
|
+
|
13
|
+
# Code to setup HOME directory correctly on Windows
|
14
|
+
# This duplicates Ruby 1.9 semantics for defining HOME
|
15
|
+
platform_is :windows do
|
16
|
+
if ENV['HOME']
|
17
|
+
ENV['HOME'] = ENV['HOME'].tr '\\', '/'
|
18
|
+
elsif ENV['HOMEDIR'] && ENV['HOMEDRIVE']
|
19
|
+
ENV['HOME'] = File.join(ENV['HOMEDRIVE'], ENV['HOMEDIR'])
|
20
|
+
elsif ENV['HOMEDIR']
|
21
|
+
ENV['HOME'] = ENV['HOMEDIR']
|
22
|
+
elsif ENV['HOMEDRIVE']
|
23
|
+
ENV['HOME'] = ENV['HOMEDRIVE']
|
24
|
+
elsif ENV['USERPROFILE']
|
25
|
+
ENV['HOME'] = ENV['USERPROFILE']
|
26
|
+
else
|
27
|
+
puts "No suitable HOME environment found. This means that all of"
|
28
|
+
puts "HOME, HOMEDIR, HOMEDRIVE, and USERPROFILE are not set"
|
29
|
+
exit 1
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
TOLERANCE = 0.00003 unless Object.const_defined?(:TOLERANCE)
|
34
|
+
rescue LoadError
|
35
|
+
puts "Please install the MSpec gem to run the specs."
|
36
|
+
exit 1
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
minimum_version = "1.5.17"
|
41
|
+
unless MSpec::VERSION >= minimum_version
|
42
|
+
puts "Please install MSpec version >= #{minimum_version} to run the specs"
|
43
|
+
exit 1
|
44
|
+
end
|
45
|
+
|
46
|
+
# Set a flag when encodings are supported.
|
47
|
+
MSpec.enable_feature :encoding if Object.const_defined?(:Encoding)
|
48
|
+
|
49
|
+
$VERBOSE = nil unless ENV['OUTPUT_WARNINGS']
|
metadata
CHANGED
@@ -1,99 +1,321 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: archive-zip
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Jeremy Bopp
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-08-30 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: io-like
|
16
|
+
requirement: &19530420 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.3.0
|
17
22
|
type: :runtime
|
18
|
-
|
19
|
-
version_requirements:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *19530420
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &19529560 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.9.0
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *19529560
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: mspec
|
38
|
+
requirement: &19528860 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.5.12
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *19528860
|
47
|
+
description: ! 'Archive::Zip provides a simple Ruby-esque interface to creating, extracting,
|
48
|
+
and
|
28
49
|
|
29
|
-
|
50
|
+
updating ZIP archives. This implementation is 100% Ruby and loosely modeled on
|
30
51
|
|
31
|
-
|
52
|
+
the archive creation and extraction capabilities of InfoZip''s zip and unzip
|
53
|
+
|
54
|
+
tools.
|
55
|
+
|
56
|
+
'
|
57
|
+
email:
|
58
|
+
- jeremy@bopp.net
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
32
63
|
- CONTRIBUTORS
|
33
|
-
- HACKING
|
34
|
-
- LICENSE
|
35
64
|
- GPL
|
65
|
+
- HACKING
|
36
66
|
- LEGAL
|
67
|
+
- LICENSE
|
37
68
|
- NEWS
|
69
|
+
- Rakefile
|
38
70
|
- README
|
39
|
-
|
40
|
-
- lib/archive/
|
41
|
-
- lib/archive/support/io.rb
|
42
|
-
- lib/archive/support/iowindow.rb
|
43
|
-
- lib/archive/support/stringio.rb
|
44
|
-
- lib/archive/support/time.rb
|
45
|
-
- lib/archive/support/zlib.rb
|
46
|
-
- lib/archive/zip/codec/deflate.rb
|
47
|
-
- lib/archive/zip/codec/null_encryption.rb
|
48
|
-
- lib/archive/zip/codec/store.rb
|
49
|
-
- lib/archive/zip/codec/traditional_encryption.rb
|
71
|
+
- TODO
|
72
|
+
- lib/archive/zip/extra_field.rb
|
50
73
|
- lib/archive/zip/codec.rb
|
51
|
-
- lib/archive/zip/data_descriptor.rb
|
52
|
-
- lib/archive/zip/entry.rb
|
53
|
-
- lib/archive/zip/error.rb
|
54
|
-
- lib/archive/zip/extra_field/extended_timestamp.rb
|
55
74
|
- lib/archive/zip/extra_field/raw.rb
|
75
|
+
- lib/archive/zip/extra_field/extended_timestamp.rb
|
56
76
|
- lib/archive/zip/extra_field/unix.rb
|
57
|
-
- lib/archive/zip/
|
77
|
+
- lib/archive/zip/entry.rb
|
78
|
+
- lib/archive/zip/codec/store.rb
|
79
|
+
- lib/archive/zip/codec/traditional_encryption.rb
|
80
|
+
- lib/archive/zip/codec/null_encryption.rb
|
81
|
+
- lib/archive/zip/codec/deflate.rb
|
82
|
+
- lib/archive/zip/version.rb
|
83
|
+
- lib/archive/zip/error.rb
|
84
|
+
- lib/archive/zip/data_descriptor.rb
|
85
|
+
- lib/archive/support/ioextensions.rb
|
86
|
+
- lib/archive/support/integer.rb
|
87
|
+
- lib/archive/support/time.rb
|
88
|
+
- lib/archive/support/iowindow.rb
|
89
|
+
- lib/archive/support/binary_stringio.rb
|
90
|
+
- lib/archive/support/io-like.rb
|
91
|
+
- lib/archive/support/zlib.rb
|
58
92
|
- lib/archive/zip.rb
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
67
|
-
|
68
|
-
|
93
|
+
- default.mspec
|
94
|
+
- spec_helper.rb
|
95
|
+
- spec/ioextensions/read_exactly_spec.rb
|
96
|
+
- spec/zlib/zreader/compressed_size_spec.rb
|
97
|
+
- spec/zlib/zreader/new_spec.rb
|
98
|
+
- spec/zlib/zreader/close_spec.rb
|
99
|
+
- spec/zlib/zreader/uncompressed_size_spec.rb
|
100
|
+
- spec/zlib/zreader/open_spec.rb
|
101
|
+
- spec/zlib/zreader/rewind_spec.rb
|
102
|
+
- spec/zlib/zreader/read_spec.rb
|
103
|
+
- spec/zlib/zreader/checksum_spec.rb
|
104
|
+
- spec/zlib/zreader/tell_spec.rb
|
105
|
+
- spec/zlib/zreader/seek_spec.rb
|
106
|
+
- spec/zlib/fixtures/classes.rb
|
107
|
+
- spec/zlib/fixtures/compressed_file_minmem.bin
|
108
|
+
- spec/zlib/fixtures/compressed_file_gzip.bin
|
109
|
+
- spec/zlib/fixtures/compressed_file_raw.bin
|
110
|
+
- spec/zlib/fixtures/compressed_file_minwin.bin
|
111
|
+
- spec/zlib/fixtures/compressed_file_nocomp.bin
|
112
|
+
- spec/zlib/fixtures/compressed_file.bin
|
113
|
+
- spec/zlib/fixtures/compressed_file_huffman.bin
|
114
|
+
- spec/zlib/fixtures/raw_file.txt
|
115
|
+
- spec/zlib/zwriter/write_spec.rb
|
116
|
+
- spec/zlib/zwriter/compressed_size_spec.rb
|
117
|
+
- spec/zlib/zwriter/new_spec.rb
|
118
|
+
- spec/zlib/zwriter/close_spec.rb
|
119
|
+
- spec/zlib/zwriter/uncompressed_size_spec.rb
|
120
|
+
- spec/zlib/zwriter/open_spec.rb
|
121
|
+
- spec/zlib/zwriter/rewind_spec.rb
|
122
|
+
- spec/zlib/zwriter/checksum_spec.rb
|
123
|
+
- spec/zlib/zwriter/tell_spec.rb
|
124
|
+
- spec/zlib/zwriter/seek_spec.rb
|
125
|
+
- spec/binary_stringio/new_spec.rb
|
126
|
+
- spec/binary_stringio/set_encoding_spec.rb
|
127
|
+
- spec/archive/zip/codec/store/fixtures/classes.rb
|
128
|
+
- spec/archive/zip/codec/store/fixtures/raw_file.txt
|
129
|
+
- spec/archive/zip/codec/store/compress/write_spec.rb
|
130
|
+
- spec/archive/zip/codec/store/compress/new_spec.rb
|
131
|
+
- spec/archive/zip/codec/store/compress/close_spec.rb
|
132
|
+
- spec/archive/zip/codec/store/compress/open_spec.rb
|
133
|
+
- spec/archive/zip/codec/store/compress/rewind_spec.rb
|
134
|
+
- spec/archive/zip/codec/store/compress/data_descriptor_spec.rb
|
135
|
+
- spec/archive/zip/codec/store/compress/tell_spec.rb
|
136
|
+
- spec/archive/zip/codec/store/compress/seek_spec.rb
|
137
|
+
- spec/archive/zip/codec/store/decompress/new_spec.rb
|
138
|
+
- spec/archive/zip/codec/store/decompress/close_spec.rb
|
139
|
+
- spec/archive/zip/codec/store/decompress/open_spec.rb
|
140
|
+
- spec/archive/zip/codec/store/decompress/rewind_spec.rb
|
141
|
+
- spec/archive/zip/codec/store/decompress/read_spec.rb
|
142
|
+
- spec/archive/zip/codec/store/decompress/data_descriptor_spec.rb
|
143
|
+
- spec/archive/zip/codec/store/decompress/tell_spec.rb
|
144
|
+
- spec/archive/zip/codec/store/decompress/seek_spec.rb
|
145
|
+
- spec/archive/zip/codec/deflate/fixtures/classes.rb
|
146
|
+
- spec/archive/zip/codec/deflate/fixtures/compressed_file_nocomp.bin
|
147
|
+
- spec/archive/zip/codec/deflate/fixtures/compressed_file.bin
|
148
|
+
- spec/archive/zip/codec/deflate/fixtures/raw_file.txt
|
149
|
+
- spec/archive/zip/codec/deflate/compress/write_spec.rb
|
150
|
+
- spec/archive/zip/codec/deflate/compress/new_spec.rb
|
151
|
+
- spec/archive/zip/codec/deflate/compress/close_spec.rb
|
152
|
+
- spec/archive/zip/codec/deflate/compress/crc32_spec.rb
|
153
|
+
- spec/archive/zip/codec/deflate/compress/open_spec.rb
|
154
|
+
- spec/archive/zip/codec/deflate/compress/data_descriptor_spec.rb
|
155
|
+
- spec/archive/zip/codec/deflate/compress/checksum_spec.rb
|
156
|
+
- spec/archive/zip/codec/deflate/decompress/new_spec.rb
|
157
|
+
- spec/archive/zip/codec/deflate/decompress/close_spec.rb
|
158
|
+
- spec/archive/zip/codec/deflate/decompress/crc32_spec.rb
|
159
|
+
- spec/archive/zip/codec/deflate/decompress/open_spec.rb
|
160
|
+
- spec/archive/zip/codec/deflate/decompress/data_descriptor_spec.rb
|
161
|
+
- spec/archive/zip/codec/deflate/decompress/checksum_spec.rb
|
162
|
+
- spec/archive/zip/codec/null_encryption/fixtures/classes.rb
|
163
|
+
- spec/archive/zip/codec/null_encryption/fixtures/raw_file.txt
|
164
|
+
- spec/archive/zip/codec/null_encryption/encrypt/write_spec.rb
|
165
|
+
- spec/archive/zip/codec/null_encryption/encrypt/new_spec.rb
|
166
|
+
- spec/archive/zip/codec/null_encryption/encrypt/close_spec.rb
|
167
|
+
- spec/archive/zip/codec/null_encryption/encrypt/open_spec.rb
|
168
|
+
- spec/archive/zip/codec/null_encryption/encrypt/rewind_spec.rb
|
169
|
+
- spec/archive/zip/codec/null_encryption/encrypt/tell_spec.rb
|
170
|
+
- spec/archive/zip/codec/null_encryption/encrypt/seek_spec.rb
|
171
|
+
- spec/archive/zip/codec/null_encryption/decrypt/new_spec.rb
|
172
|
+
- spec/archive/zip/codec/null_encryption/decrypt/close_spec.rb
|
173
|
+
- spec/archive/zip/codec/null_encryption/decrypt/open_spec.rb
|
174
|
+
- spec/archive/zip/codec/null_encryption/decrypt/rewind_spec.rb
|
175
|
+
- spec/archive/zip/codec/null_encryption/decrypt/read_spec.rb
|
176
|
+
- spec/archive/zip/codec/null_encryption/decrypt/tell_spec.rb
|
177
|
+
- spec/archive/zip/codec/null_encryption/decrypt/seek_spec.rb
|
178
|
+
- spec/archive/zip/codec/traditional_encryption/fixtures/classes.rb
|
179
|
+
- spec/archive/zip/codec/traditional_encryption/fixtures/encrypted_file.bin
|
180
|
+
- spec/archive/zip/codec/traditional_encryption/fixtures/raw_file.txt
|
181
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/write_spec.rb
|
182
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/new_spec.rb
|
183
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/close_spec.rb
|
184
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/open_spec.rb
|
185
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/rewind_spec.rb
|
186
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/tell_spec.rb
|
187
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/seek_spec.rb
|
188
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/new_spec.rb
|
189
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/close_spec.rb
|
190
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/open_spec.rb
|
191
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/rewind_spec.rb
|
192
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/read_spec.rb
|
193
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/tell_spec.rb
|
194
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/seek_spec.rb
|
195
|
+
homepage: http://github.com/javanthropus/archive-zip
|
196
|
+
licenses: []
|
69
197
|
post_install_message:
|
70
|
-
rdoc_options:
|
71
|
-
|
72
|
-
- Archive::Zip Documentation
|
73
|
-
- --charset
|
74
|
-
- utf-8
|
75
|
-
- --line-numbers
|
76
|
-
- --inline-source
|
77
|
-
require_paths:
|
198
|
+
rdoc_options: []
|
199
|
+
require_paths:
|
78
200
|
- lib
|
79
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
201
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
none: false
|
203
|
+
requirements:
|
204
|
+
- - ! '>='
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
none: false
|
209
|
+
requirements:
|
210
|
+
- - ! '>='
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
91
213
|
requirements: []
|
92
|
-
|
93
214
|
rubyforge_project: archive-zip
|
94
|
-
rubygems_version: 1.
|
215
|
+
rubygems_version: 1.8.8
|
95
216
|
signing_key:
|
96
|
-
specification_version:
|
217
|
+
specification_version: 3
|
97
218
|
summary: Simple, extensible, pure Ruby ZIP archive support.
|
98
|
-
test_files:
|
99
|
-
|
219
|
+
test_files:
|
220
|
+
- default.mspec
|
221
|
+
- spec_helper.rb
|
222
|
+
- spec/ioextensions/read_exactly_spec.rb
|
223
|
+
- spec/zlib/zreader/compressed_size_spec.rb
|
224
|
+
- spec/zlib/zreader/new_spec.rb
|
225
|
+
- spec/zlib/zreader/close_spec.rb
|
226
|
+
- spec/zlib/zreader/uncompressed_size_spec.rb
|
227
|
+
- spec/zlib/zreader/open_spec.rb
|
228
|
+
- spec/zlib/zreader/rewind_spec.rb
|
229
|
+
- spec/zlib/zreader/read_spec.rb
|
230
|
+
- spec/zlib/zreader/checksum_spec.rb
|
231
|
+
- spec/zlib/zreader/tell_spec.rb
|
232
|
+
- spec/zlib/zreader/seek_spec.rb
|
233
|
+
- spec/zlib/fixtures/classes.rb
|
234
|
+
- spec/zlib/fixtures/compressed_file_minmem.bin
|
235
|
+
- spec/zlib/fixtures/compressed_file_gzip.bin
|
236
|
+
- spec/zlib/fixtures/compressed_file_raw.bin
|
237
|
+
- spec/zlib/fixtures/compressed_file_minwin.bin
|
238
|
+
- spec/zlib/fixtures/compressed_file_nocomp.bin
|
239
|
+
- spec/zlib/fixtures/compressed_file.bin
|
240
|
+
- spec/zlib/fixtures/compressed_file_huffman.bin
|
241
|
+
- spec/zlib/fixtures/raw_file.txt
|
242
|
+
- spec/zlib/zwriter/write_spec.rb
|
243
|
+
- spec/zlib/zwriter/compressed_size_spec.rb
|
244
|
+
- spec/zlib/zwriter/new_spec.rb
|
245
|
+
- spec/zlib/zwriter/close_spec.rb
|
246
|
+
- spec/zlib/zwriter/uncompressed_size_spec.rb
|
247
|
+
- spec/zlib/zwriter/open_spec.rb
|
248
|
+
- spec/zlib/zwriter/rewind_spec.rb
|
249
|
+
- spec/zlib/zwriter/checksum_spec.rb
|
250
|
+
- spec/zlib/zwriter/tell_spec.rb
|
251
|
+
- spec/zlib/zwriter/seek_spec.rb
|
252
|
+
- spec/binary_stringio/new_spec.rb
|
253
|
+
- spec/binary_stringio/set_encoding_spec.rb
|
254
|
+
- spec/archive/zip/codec/store/fixtures/classes.rb
|
255
|
+
- spec/archive/zip/codec/store/fixtures/raw_file.txt
|
256
|
+
- spec/archive/zip/codec/store/compress/write_spec.rb
|
257
|
+
- spec/archive/zip/codec/store/compress/new_spec.rb
|
258
|
+
- spec/archive/zip/codec/store/compress/close_spec.rb
|
259
|
+
- spec/archive/zip/codec/store/compress/open_spec.rb
|
260
|
+
- spec/archive/zip/codec/store/compress/rewind_spec.rb
|
261
|
+
- spec/archive/zip/codec/store/compress/data_descriptor_spec.rb
|
262
|
+
- spec/archive/zip/codec/store/compress/tell_spec.rb
|
263
|
+
- spec/archive/zip/codec/store/compress/seek_spec.rb
|
264
|
+
- spec/archive/zip/codec/store/decompress/new_spec.rb
|
265
|
+
- spec/archive/zip/codec/store/decompress/close_spec.rb
|
266
|
+
- spec/archive/zip/codec/store/decompress/open_spec.rb
|
267
|
+
- spec/archive/zip/codec/store/decompress/rewind_spec.rb
|
268
|
+
- spec/archive/zip/codec/store/decompress/read_spec.rb
|
269
|
+
- spec/archive/zip/codec/store/decompress/data_descriptor_spec.rb
|
270
|
+
- spec/archive/zip/codec/store/decompress/tell_spec.rb
|
271
|
+
- spec/archive/zip/codec/store/decompress/seek_spec.rb
|
272
|
+
- spec/archive/zip/codec/deflate/fixtures/classes.rb
|
273
|
+
- spec/archive/zip/codec/deflate/fixtures/compressed_file_nocomp.bin
|
274
|
+
- spec/archive/zip/codec/deflate/fixtures/compressed_file.bin
|
275
|
+
- spec/archive/zip/codec/deflate/fixtures/raw_file.txt
|
276
|
+
- spec/archive/zip/codec/deflate/compress/write_spec.rb
|
277
|
+
- spec/archive/zip/codec/deflate/compress/new_spec.rb
|
278
|
+
- spec/archive/zip/codec/deflate/compress/close_spec.rb
|
279
|
+
- spec/archive/zip/codec/deflate/compress/crc32_spec.rb
|
280
|
+
- spec/archive/zip/codec/deflate/compress/open_spec.rb
|
281
|
+
- spec/archive/zip/codec/deflate/compress/data_descriptor_spec.rb
|
282
|
+
- spec/archive/zip/codec/deflate/compress/checksum_spec.rb
|
283
|
+
- spec/archive/zip/codec/deflate/decompress/new_spec.rb
|
284
|
+
- spec/archive/zip/codec/deflate/decompress/close_spec.rb
|
285
|
+
- spec/archive/zip/codec/deflate/decompress/crc32_spec.rb
|
286
|
+
- spec/archive/zip/codec/deflate/decompress/open_spec.rb
|
287
|
+
- spec/archive/zip/codec/deflate/decompress/data_descriptor_spec.rb
|
288
|
+
- spec/archive/zip/codec/deflate/decompress/checksum_spec.rb
|
289
|
+
- spec/archive/zip/codec/null_encryption/fixtures/classes.rb
|
290
|
+
- spec/archive/zip/codec/null_encryption/fixtures/raw_file.txt
|
291
|
+
- spec/archive/zip/codec/null_encryption/encrypt/write_spec.rb
|
292
|
+
- spec/archive/zip/codec/null_encryption/encrypt/new_spec.rb
|
293
|
+
- spec/archive/zip/codec/null_encryption/encrypt/close_spec.rb
|
294
|
+
- spec/archive/zip/codec/null_encryption/encrypt/open_spec.rb
|
295
|
+
- spec/archive/zip/codec/null_encryption/encrypt/rewind_spec.rb
|
296
|
+
- spec/archive/zip/codec/null_encryption/encrypt/tell_spec.rb
|
297
|
+
- spec/archive/zip/codec/null_encryption/encrypt/seek_spec.rb
|
298
|
+
- spec/archive/zip/codec/null_encryption/decrypt/new_spec.rb
|
299
|
+
- spec/archive/zip/codec/null_encryption/decrypt/close_spec.rb
|
300
|
+
- spec/archive/zip/codec/null_encryption/decrypt/open_spec.rb
|
301
|
+
- spec/archive/zip/codec/null_encryption/decrypt/rewind_spec.rb
|
302
|
+
- spec/archive/zip/codec/null_encryption/decrypt/read_spec.rb
|
303
|
+
- spec/archive/zip/codec/null_encryption/decrypt/tell_spec.rb
|
304
|
+
- spec/archive/zip/codec/null_encryption/decrypt/seek_spec.rb
|
305
|
+
- spec/archive/zip/codec/traditional_encryption/fixtures/classes.rb
|
306
|
+
- spec/archive/zip/codec/traditional_encryption/fixtures/encrypted_file.bin
|
307
|
+
- spec/archive/zip/codec/traditional_encryption/fixtures/raw_file.txt
|
308
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/write_spec.rb
|
309
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/new_spec.rb
|
310
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/close_spec.rb
|
311
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/open_spec.rb
|
312
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/rewind_spec.rb
|
313
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/tell_spec.rb
|
314
|
+
- spec/archive/zip/codec/traditional_encryption/encrypt/seek_spec.rb
|
315
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/new_spec.rb
|
316
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/close_spec.rb
|
317
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/open_spec.rb
|
318
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/rewind_spec.rb
|
319
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/read_spec.rb
|
320
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/tell_spec.rb
|
321
|
+
- spec/archive/zip/codec/traditional_encryption/decrypt/seek_spec.rb
|