archive-zip 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/LICENSE +22 -57
  4. data/{NEWS → NEWS.md} +29 -16
  5. data/README.md +250 -0
  6. data/Rakefile +119 -76
  7. data/lib/archive/support/binary_stringio.rb +9 -2
  8. data/lib/archive/support/time.rb +2 -2
  9. data/lib/archive/zip.rb +1 -1
  10. data/lib/archive/zip/entry.rb +2 -2
  11. data/lib/archive/zip/version.rb +1 -1
  12. data/spec/archive/zip/archive_spec.rb +54 -0
  13. data/spec/archive/zip/codec/deflate/compress/checksum_spec.rb +8 -6
  14. data/spec/archive/zip/codec/deflate/compress/close_spec.rb +13 -12
  15. data/spec/archive/zip/codec/deflate/compress/crc32_spec.rb +6 -4
  16. data/spec/archive/zip/codec/deflate/compress/data_descriptor_spec.rb +17 -10
  17. data/spec/archive/zip/codec/deflate/compress/new_spec.rb +7 -5
  18. data/spec/archive/zip/codec/deflate/compress/open_spec.rb +9 -7
  19. data/spec/archive/zip/codec/deflate/compress/write_spec.rb +15 -15
  20. data/spec/archive/zip/codec/deflate/decompress/checksum_spec.rb +6 -4
  21. data/spec/archive/zip/codec/deflate/decompress/close_spec.rb +10 -9
  22. data/spec/archive/zip/codec/deflate/decompress/crc32_spec.rb +6 -4
  23. data/spec/archive/zip/codec/deflate/decompress/data_descriptor_spec.rb +17 -10
  24. data/spec/archive/zip/codec/deflate/decompress/new_spec.rb +5 -3
  25. data/spec/archive/zip/codec/deflate/decompress/open_spec.rb +7 -5
  26. data/spec/archive/zip/codec/null_encryption/decrypt/close_spec.rb +10 -9
  27. data/spec/archive/zip/codec/null_encryption/decrypt/new_spec.rb +6 -4
  28. data/spec/archive/zip/codec/null_encryption/decrypt/open_spec.rb +8 -6
  29. data/spec/archive/zip/codec/null_encryption/decrypt/read_spec.rb +8 -6
  30. data/spec/archive/zip/codec/null_encryption/decrypt/rewind_spec.rb +9 -7
  31. data/spec/archive/zip/codec/null_encryption/decrypt/seek_spec.rb +15 -13
  32. data/spec/archive/zip/codec/null_encryption/decrypt/tell_spec.rb +8 -6
  33. data/spec/archive/zip/codec/null_encryption/encrypt/close_spec.rb +10 -9
  34. data/spec/archive/zip/codec/null_encryption/encrypt/new_spec.rb +5 -3
  35. data/spec/archive/zip/codec/null_encryption/encrypt/open_spec.rb +9 -5
  36. data/spec/archive/zip/codec/null_encryption/encrypt/rewind_spec.rb +9 -7
  37. data/spec/archive/zip/codec/null_encryption/encrypt/seek_spec.rb +15 -13
  38. data/spec/archive/zip/codec/null_encryption/encrypt/tell_spec.rb +11 -9
  39. data/spec/archive/zip/codec/null_encryption/encrypt/write_spec.rb +12 -10
  40. data/spec/archive/zip/codec/store/compress/close_spec.rb +10 -9
  41. data/spec/archive/zip/codec/store/compress/data_descriptor_spec.rb +19 -10
  42. data/spec/archive/zip/codec/store/compress/new_spec.rb +5 -3
  43. data/spec/archive/zip/codec/store/compress/open_spec.rb +7 -5
  44. data/spec/archive/zip/codec/store/compress/rewind_spec.rb +9 -7
  45. data/spec/archive/zip/codec/store/compress/seek_spec.rb +15 -13
  46. data/spec/archive/zip/codec/store/compress/tell_spec.rb +11 -9
  47. data/spec/archive/zip/codec/store/compress/write_spec.rb +10 -10
  48. data/spec/archive/zip/codec/store/decompress/close_spec.rb +10 -9
  49. data/spec/archive/zip/codec/store/decompress/data_descriptor_spec.rb +17 -10
  50. data/spec/archive/zip/codec/store/decompress/new_spec.rb +5 -3
  51. data/spec/archive/zip/codec/store/decompress/open_spec.rb +7 -5
  52. data/spec/archive/zip/codec/store/decompress/read_spec.rb +8 -6
  53. data/spec/archive/zip/codec/store/decompress/rewind_spec.rb +9 -7
  54. data/spec/archive/zip/codec/store/decompress/seek_spec.rb +15 -13
  55. data/spec/archive/zip/codec/store/decompress/tell_spec.rb +8 -6
  56. data/spec/archive/zip/codec/traditional_encryption/decrypt/close_spec.rb +13 -24
  57. data/spec/archive/zip/codec/traditional_encryption/decrypt/new_spec.rb +6 -4
  58. data/spec/archive/zip/codec/traditional_encryption/decrypt/open_spec.rb +10 -6
  59. data/spec/archive/zip/codec/traditional_encryption/decrypt/read_spec.rb +12 -13
  60. data/spec/archive/zip/codec/traditional_encryption/decrypt/rewind_spec.rb +10 -12
  61. data/spec/archive/zip/codec/traditional_encryption/decrypt/seek_spec.rb +16 -18
  62. data/spec/archive/zip/codec/traditional_encryption/decrypt/tell_spec.rb +8 -6
  63. data/spec/archive/zip/codec/traditional_encryption/encrypt/close_spec.rb +13 -24
  64. data/spec/archive/zip/codec/traditional_encryption/encrypt/new_spec.rb +5 -3
  65. data/spec/archive/zip/codec/traditional_encryption/encrypt/open_spec.rb +7 -5
  66. data/spec/archive/zip/codec/traditional_encryption/encrypt/rewind_spec.rb +10 -12
  67. data/spec/archive/zip/codec/traditional_encryption/encrypt/seek_spec.rb +16 -18
  68. data/spec/archive/zip/codec/traditional_encryption/encrypt/tell_spec.rb +12 -14
  69. data/spec/archive/zip/codec/traditional_encryption/encrypt/write_spec.rb +8 -23
  70. data/spec/binary_stringio/new_spec.rb +18 -12
  71. data/spec/binary_stringio/set_encoding_spec.rb +10 -7
  72. data/spec/ioextensions/read_exactly_spec.rb +14 -12
  73. data/spec/zlib/zreader/checksum_spec.rb +10 -8
  74. data/spec/zlib/zreader/close_spec.rb +5 -3
  75. data/spec/zlib/zreader/compressed_size_spec.rb +6 -4
  76. data/spec/zlib/zreader/new_spec.rb +7 -5
  77. data/spec/zlib/zreader/open_spec.rb +9 -7
  78. data/spec/zlib/zreader/read_spec.rb +10 -8
  79. data/spec/zlib/zreader/rewind_spec.rb +7 -5
  80. data/spec/zlib/zreader/seek_spec.rb +13 -11
  81. data/spec/zlib/zreader/tell_spec.rb +8 -6
  82. data/spec/zlib/zreader/uncompressed_size_spec.rb +6 -4
  83. data/spec/zlib/zwriter/checksum_spec.rb +10 -8
  84. data/spec/zlib/zwriter/close_spec.rb +5 -3
  85. data/spec/zlib/zwriter/compressed_size_spec.rb +6 -4
  86. data/spec/zlib/zwriter/new_spec.rb +10 -8
  87. data/spec/zlib/zwriter/open_spec.rb +12 -10
  88. data/spec/zlib/zwriter/rewind_spec.rb +9 -7
  89. data/spec/zlib/zwriter/seek_spec.rb +15 -17
  90. data/spec/zlib/zwriter/tell_spec.rb +11 -9
  91. data/spec/zlib/zwriter/uncompressed_size_spec.rb +6 -4
  92. data/spec/zlib/zwriter/write_spec.rb +9 -9
  93. metadata +268 -217
  94. data/CONTRIBUTORS +0 -13
  95. data/GPL +0 -676
  96. data/HACKING +0 -105
  97. data/LEGAL +0 -8
  98. data/README +0 -151
  99. data/TODO +0 -5
  100. data/default.mspec +0 -8
  101. data/spec_helper.rb +0 -49
@@ -1,18 +1,18 @@
1
1
  # encoding: UTF-8
2
2
 
3
- require File.dirname(__FILE__) + '/../../../spec_helper'
4
- require File.dirname(__FILE__) + '/../fixtures/classes'
3
+ require 'minitest/autorun'
4
+
5
+ require File.expand_path('../../fixtures/classes', __FILE__)
6
+
5
7
  require 'archive/support/zlib'
6
8
  require 'archive/support/binary_stringio'
7
9
 
8
10
  describe "Zlib::ZWriter#write" do
9
11
  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)
12
+ delegate = MiniTest::Mock.new
13
+ delegate.expect(
14
+ :write, ZlibSpecs.compressed_data.size, [ZlibSpecs.compressed_data]
15
+ )
16
16
  Zlib::ZWriter.open(delegate) do |zw|
17
17
  zw.write(ZlibSpecs.test_data)
18
18
  end
@@ -23,6 +23,6 @@ describe "Zlib::ZWriter#write" do
23
23
  Zlib::ZWriter.open(compressed_data) do |zw|
24
24
  zw.write(ZlibSpecs.test_data)
25
25
  end
26
- compressed_data.string.should == ZlibSpecs.compressed_data
26
+ compressed_data.string.must_equal ZlibSpecs.compressed_data
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,57 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archive-zip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Bopp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-25 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: io-like
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.0
33
+ version: '10.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.9.0
40
+ version: '10.3'
41
41
  - !ruby/object:Gem::Dependency
42
- name: mspec
42
+ name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.5.12
47
+ version: '5.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.12
54
+ version: '5.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.8'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard-redcarpet-ext
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: github-markup
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: redcarpet
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.1'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.1'
55
111
  description: |
56
112
  Archive::Zip provides a simple Ruby-esque interface to creating, extracting, and
57
113
  updating ZIP archives. This implementation is 100% Ruby and loosely modeled on
@@ -63,140 +119,136 @@ executables: []
63
119
  extensions: []
64
120
  extra_rdoc_files: []
65
121
  files:
66
- - CONTRIBUTORS
67
- - GPL
68
- - HACKING
69
- - LEGAL
122
+ - ".yardopts"
70
123
  - LICENSE
71
- - NEWS
124
+ - NEWS.md
125
+ - README.md
72
126
  - Rakefile
73
- - README
74
- - TODO
75
- - lib/archive/zip/extra_field.rb
76
- - lib/archive/zip/codec.rb
77
- - lib/archive/zip/extra_field/raw.rb
78
- - lib/archive/zip/extra_field/extended_timestamp.rb
79
- - lib/archive/zip/extra_field/unix.rb
80
- - lib/archive/zip/entry.rb
81
- - lib/archive/zip/codec/store.rb
82
- - lib/archive/zip/codec/traditional_encryption.rb
83
- - lib/archive/zip/codec/null_encryption.rb
84
- - lib/archive/zip/codec/deflate.rb
85
- - lib/archive/zip/version.rb
86
- - lib/archive/zip/error.rb
87
- - lib/archive/zip/data_descriptor.rb
88
- - lib/archive/support/ioextensions.rb
89
- - lib/archive/support/integer.rb
90
- - lib/archive/support/time.rb
91
- - lib/archive/support/iowindow.rb
92
127
  - lib/archive/support/binary_stringio.rb
128
+ - lib/archive/support/integer.rb
93
129
  - lib/archive/support/io-like.rb
130
+ - lib/archive/support/ioextensions.rb
131
+ - lib/archive/support/iowindow.rb
132
+ - lib/archive/support/time.rb
94
133
  - lib/archive/support/zlib.rb
95
134
  - lib/archive/zip.rb
96
- - default.mspec
97
- - spec_helper.rb
98
- - spec/ioextensions/read_exactly_spec.rb
99
- - spec/zlib/zreader/compressed_size_spec.rb
100
- - spec/zlib/zreader/new_spec.rb
101
- - spec/zlib/zreader/close_spec.rb
102
- - spec/zlib/zreader/uncompressed_size_spec.rb
103
- - spec/zlib/zreader/open_spec.rb
104
- - spec/zlib/zreader/rewind_spec.rb
105
- - spec/zlib/zreader/read_spec.rb
106
- - spec/zlib/zreader/checksum_spec.rb
107
- - spec/zlib/zreader/tell_spec.rb
108
- - spec/zlib/zreader/seek_spec.rb
109
- - spec/zlib/fixtures/classes.rb
110
- - spec/zlib/fixtures/compressed_file_minmem.bin
111
- - spec/zlib/fixtures/compressed_file_gzip.bin
112
- - spec/zlib/fixtures/compressed_file_raw.bin
113
- - spec/zlib/fixtures/compressed_file_minwin.bin
114
- - spec/zlib/fixtures/compressed_file_nocomp.bin
115
- - spec/zlib/fixtures/compressed_file.bin
116
- - spec/zlib/fixtures/compressed_file_huffman.bin
117
- - spec/zlib/fixtures/raw_file.txt
118
- - spec/zlib/zwriter/write_spec.rb
119
- - spec/zlib/zwriter/compressed_size_spec.rb
120
- - spec/zlib/zwriter/new_spec.rb
121
- - spec/zlib/zwriter/close_spec.rb
122
- - spec/zlib/zwriter/uncompressed_size_spec.rb
123
- - spec/zlib/zwriter/open_spec.rb
124
- - spec/zlib/zwriter/rewind_spec.rb
125
- - spec/zlib/zwriter/checksum_spec.rb
126
- - spec/zlib/zwriter/tell_spec.rb
127
- - spec/zlib/zwriter/seek_spec.rb
128
- - spec/binary_stringio/new_spec.rb
129
- - spec/binary_stringio/set_encoding_spec.rb
130
- - spec/archive/zip/codec/store/fixtures/classes.rb
131
- - spec/archive/zip/codec/store/fixtures/raw_file.txt
132
- - spec/archive/zip/codec/store/compress/write_spec.rb
133
- - spec/archive/zip/codec/store/compress/new_spec.rb
134
- - spec/archive/zip/codec/store/compress/close_spec.rb
135
- - spec/archive/zip/codec/store/compress/open_spec.rb
136
- - spec/archive/zip/codec/store/compress/rewind_spec.rb
137
- - spec/archive/zip/codec/store/compress/data_descriptor_spec.rb
138
- - spec/archive/zip/codec/store/compress/tell_spec.rb
139
- - spec/archive/zip/codec/store/compress/seek_spec.rb
140
- - spec/archive/zip/codec/store/decompress/new_spec.rb
141
- - spec/archive/zip/codec/store/decompress/close_spec.rb
142
- - spec/archive/zip/codec/store/decompress/open_spec.rb
143
- - spec/archive/zip/codec/store/decompress/rewind_spec.rb
144
- - spec/archive/zip/codec/store/decompress/read_spec.rb
145
- - spec/archive/zip/codec/store/decompress/data_descriptor_spec.rb
146
- - spec/archive/zip/codec/store/decompress/tell_spec.rb
147
- - spec/archive/zip/codec/store/decompress/seek_spec.rb
148
- - spec/archive/zip/codec/deflate/fixtures/classes.rb
149
- - spec/archive/zip/codec/deflate/fixtures/compressed_file_nocomp.bin
150
- - spec/archive/zip/codec/deflate/fixtures/compressed_file.bin
151
- - spec/archive/zip/codec/deflate/fixtures/raw_file.txt
152
- - spec/archive/zip/codec/deflate/compress/write_spec.rb
153
- - spec/archive/zip/codec/deflate/compress/new_spec.rb
135
+ - lib/archive/zip/codec.rb
136
+ - lib/archive/zip/codec/deflate.rb
137
+ - lib/archive/zip/codec/null_encryption.rb
138
+ - lib/archive/zip/codec/store.rb
139
+ - lib/archive/zip/codec/traditional_encryption.rb
140
+ - lib/archive/zip/data_descriptor.rb
141
+ - lib/archive/zip/entry.rb
142
+ - lib/archive/zip/error.rb
143
+ - lib/archive/zip/extra_field.rb
144
+ - lib/archive/zip/extra_field/extended_timestamp.rb
145
+ - lib/archive/zip/extra_field/raw.rb
146
+ - lib/archive/zip/extra_field/unix.rb
147
+ - lib/archive/zip/version.rb
148
+ - spec/archive/zip/archive_spec.rb
149
+ - spec/archive/zip/codec/deflate/compress/checksum_spec.rb
154
150
  - spec/archive/zip/codec/deflate/compress/close_spec.rb
155
151
  - spec/archive/zip/codec/deflate/compress/crc32_spec.rb
156
- - spec/archive/zip/codec/deflate/compress/open_spec.rb
157
152
  - spec/archive/zip/codec/deflate/compress/data_descriptor_spec.rb
158
- - spec/archive/zip/codec/deflate/compress/checksum_spec.rb
159
- - spec/archive/zip/codec/deflate/decompress/new_spec.rb
153
+ - spec/archive/zip/codec/deflate/compress/new_spec.rb
154
+ - spec/archive/zip/codec/deflate/compress/open_spec.rb
155
+ - spec/archive/zip/codec/deflate/compress/write_spec.rb
156
+ - spec/archive/zip/codec/deflate/decompress/checksum_spec.rb
160
157
  - spec/archive/zip/codec/deflate/decompress/close_spec.rb
161
158
  - spec/archive/zip/codec/deflate/decompress/crc32_spec.rb
162
- - spec/archive/zip/codec/deflate/decompress/open_spec.rb
163
159
  - spec/archive/zip/codec/deflate/decompress/data_descriptor_spec.rb
164
- - spec/archive/zip/codec/deflate/decompress/checksum_spec.rb
165
- - spec/archive/zip/codec/null_encryption/fixtures/classes.rb
166
- - spec/archive/zip/codec/null_encryption/fixtures/raw_file.txt
167
- - spec/archive/zip/codec/null_encryption/encrypt/write_spec.rb
168
- - spec/archive/zip/codec/null_encryption/encrypt/new_spec.rb
169
- - spec/archive/zip/codec/null_encryption/encrypt/close_spec.rb
170
- - spec/archive/zip/codec/null_encryption/encrypt/open_spec.rb
171
- - spec/archive/zip/codec/null_encryption/encrypt/rewind_spec.rb
172
- - spec/archive/zip/codec/null_encryption/encrypt/tell_spec.rb
173
- - spec/archive/zip/codec/null_encryption/encrypt/seek_spec.rb
174
- - spec/archive/zip/codec/null_encryption/decrypt/new_spec.rb
160
+ - spec/archive/zip/codec/deflate/decompress/new_spec.rb
161
+ - spec/archive/zip/codec/deflate/decompress/open_spec.rb
162
+ - spec/archive/zip/codec/deflate/fixtures/classes.rb
163
+ - spec/archive/zip/codec/deflate/fixtures/compressed_file.bin
164
+ - spec/archive/zip/codec/deflate/fixtures/compressed_file_nocomp.bin
165
+ - spec/archive/zip/codec/deflate/fixtures/raw_file.txt
175
166
  - spec/archive/zip/codec/null_encryption/decrypt/close_spec.rb
167
+ - spec/archive/zip/codec/null_encryption/decrypt/new_spec.rb
176
168
  - spec/archive/zip/codec/null_encryption/decrypt/open_spec.rb
177
- - spec/archive/zip/codec/null_encryption/decrypt/rewind_spec.rb
178
169
  - spec/archive/zip/codec/null_encryption/decrypt/read_spec.rb
179
- - spec/archive/zip/codec/null_encryption/decrypt/tell_spec.rb
170
+ - spec/archive/zip/codec/null_encryption/decrypt/rewind_spec.rb
180
171
  - spec/archive/zip/codec/null_encryption/decrypt/seek_spec.rb
181
- - spec/archive/zip/codec/traditional_encryption/fixtures/classes.rb
182
- - spec/archive/zip/codec/traditional_encryption/fixtures/encrypted_file.bin
183
- - spec/archive/zip/codec/traditional_encryption/fixtures/raw_file.txt
184
- - spec/archive/zip/codec/traditional_encryption/encrypt/write_spec.rb
185
- - spec/archive/zip/codec/traditional_encryption/encrypt/new_spec.rb
186
- - spec/archive/zip/codec/traditional_encryption/encrypt/close_spec.rb
187
- - spec/archive/zip/codec/traditional_encryption/encrypt/open_spec.rb
188
- - spec/archive/zip/codec/traditional_encryption/encrypt/rewind_spec.rb
189
- - spec/archive/zip/codec/traditional_encryption/encrypt/tell_spec.rb
190
- - spec/archive/zip/codec/traditional_encryption/encrypt/seek_spec.rb
191
- - spec/archive/zip/codec/traditional_encryption/decrypt/new_spec.rb
172
+ - spec/archive/zip/codec/null_encryption/decrypt/tell_spec.rb
173
+ - spec/archive/zip/codec/null_encryption/encrypt/close_spec.rb
174
+ - spec/archive/zip/codec/null_encryption/encrypt/new_spec.rb
175
+ - spec/archive/zip/codec/null_encryption/encrypt/open_spec.rb
176
+ - spec/archive/zip/codec/null_encryption/encrypt/rewind_spec.rb
177
+ - spec/archive/zip/codec/null_encryption/encrypt/seek_spec.rb
178
+ - spec/archive/zip/codec/null_encryption/encrypt/tell_spec.rb
179
+ - spec/archive/zip/codec/null_encryption/encrypt/write_spec.rb
180
+ - spec/archive/zip/codec/null_encryption/fixtures/classes.rb
181
+ - spec/archive/zip/codec/null_encryption/fixtures/raw_file.txt
182
+ - spec/archive/zip/codec/store/compress/close_spec.rb
183
+ - spec/archive/zip/codec/store/compress/data_descriptor_spec.rb
184
+ - spec/archive/zip/codec/store/compress/new_spec.rb
185
+ - spec/archive/zip/codec/store/compress/open_spec.rb
186
+ - spec/archive/zip/codec/store/compress/rewind_spec.rb
187
+ - spec/archive/zip/codec/store/compress/seek_spec.rb
188
+ - spec/archive/zip/codec/store/compress/tell_spec.rb
189
+ - spec/archive/zip/codec/store/compress/write_spec.rb
190
+ - spec/archive/zip/codec/store/decompress/close_spec.rb
191
+ - spec/archive/zip/codec/store/decompress/data_descriptor_spec.rb
192
+ - spec/archive/zip/codec/store/decompress/new_spec.rb
193
+ - spec/archive/zip/codec/store/decompress/open_spec.rb
194
+ - spec/archive/zip/codec/store/decompress/read_spec.rb
195
+ - spec/archive/zip/codec/store/decompress/rewind_spec.rb
196
+ - spec/archive/zip/codec/store/decompress/seek_spec.rb
197
+ - spec/archive/zip/codec/store/decompress/tell_spec.rb
198
+ - spec/archive/zip/codec/store/fixtures/classes.rb
199
+ - spec/archive/zip/codec/store/fixtures/raw_file.txt
192
200
  - spec/archive/zip/codec/traditional_encryption/decrypt/close_spec.rb
201
+ - spec/archive/zip/codec/traditional_encryption/decrypt/new_spec.rb
193
202
  - spec/archive/zip/codec/traditional_encryption/decrypt/open_spec.rb
194
- - spec/archive/zip/codec/traditional_encryption/decrypt/rewind_spec.rb
195
203
  - spec/archive/zip/codec/traditional_encryption/decrypt/read_spec.rb
196
- - spec/archive/zip/codec/traditional_encryption/decrypt/tell_spec.rb
204
+ - spec/archive/zip/codec/traditional_encryption/decrypt/rewind_spec.rb
197
205
  - spec/archive/zip/codec/traditional_encryption/decrypt/seek_spec.rb
206
+ - spec/archive/zip/codec/traditional_encryption/decrypt/tell_spec.rb
207
+ - spec/archive/zip/codec/traditional_encryption/encrypt/close_spec.rb
208
+ - spec/archive/zip/codec/traditional_encryption/encrypt/new_spec.rb
209
+ - spec/archive/zip/codec/traditional_encryption/encrypt/open_spec.rb
210
+ - spec/archive/zip/codec/traditional_encryption/encrypt/rewind_spec.rb
211
+ - spec/archive/zip/codec/traditional_encryption/encrypt/seek_spec.rb
212
+ - spec/archive/zip/codec/traditional_encryption/encrypt/tell_spec.rb
213
+ - spec/archive/zip/codec/traditional_encryption/encrypt/write_spec.rb
214
+ - spec/archive/zip/codec/traditional_encryption/fixtures/classes.rb
215
+ - spec/archive/zip/codec/traditional_encryption/fixtures/encrypted_file.bin
216
+ - spec/archive/zip/codec/traditional_encryption/fixtures/raw_file.txt
217
+ - spec/binary_stringio/new_spec.rb
218
+ - spec/binary_stringio/set_encoding_spec.rb
219
+ - spec/ioextensions/read_exactly_spec.rb
220
+ - spec/zlib/fixtures/classes.rb
221
+ - spec/zlib/fixtures/compressed_file.bin
222
+ - spec/zlib/fixtures/compressed_file_gzip.bin
223
+ - spec/zlib/fixtures/compressed_file_huffman.bin
224
+ - spec/zlib/fixtures/compressed_file_minmem.bin
225
+ - spec/zlib/fixtures/compressed_file_minwin.bin
226
+ - spec/zlib/fixtures/compressed_file_nocomp.bin
227
+ - spec/zlib/fixtures/compressed_file_raw.bin
228
+ - spec/zlib/fixtures/raw_file.txt
229
+ - spec/zlib/zreader/checksum_spec.rb
230
+ - spec/zlib/zreader/close_spec.rb
231
+ - spec/zlib/zreader/compressed_size_spec.rb
232
+ - spec/zlib/zreader/new_spec.rb
233
+ - spec/zlib/zreader/open_spec.rb
234
+ - spec/zlib/zreader/read_spec.rb
235
+ - spec/zlib/zreader/rewind_spec.rb
236
+ - spec/zlib/zreader/seek_spec.rb
237
+ - spec/zlib/zreader/tell_spec.rb
238
+ - spec/zlib/zreader/uncompressed_size_spec.rb
239
+ - spec/zlib/zwriter/checksum_spec.rb
240
+ - spec/zlib/zwriter/close_spec.rb
241
+ - spec/zlib/zwriter/compressed_size_spec.rb
242
+ - spec/zlib/zwriter/new_spec.rb
243
+ - spec/zlib/zwriter/open_spec.rb
244
+ - spec/zlib/zwriter/rewind_spec.rb
245
+ - spec/zlib/zwriter/seek_spec.rb
246
+ - spec/zlib/zwriter/tell_spec.rb
247
+ - spec/zlib/zwriter/uncompressed_size_spec.rb
248
+ - spec/zlib/zwriter/write_spec.rb
198
249
  homepage: http://github.com/javanthropus/archive-zip
199
- licenses: []
250
+ licenses:
251
+ - MIT
200
252
  metadata: {}
201
253
  post_install_message:
202
254
  rdoc_options: []
@@ -204,120 +256,119 @@ require_paths:
204
256
  - lib
205
257
  required_ruby_version: !ruby/object:Gem::Requirement
206
258
  requirements:
207
- - - '>='
259
+ - - ">="
208
260
  - !ruby/object:Gem::Version
209
261
  version: '0'
210
262
  required_rubygems_version: !ruby/object:Gem::Requirement
211
263
  requirements:
212
- - - '>='
264
+ - - ">="
213
265
  - !ruby/object:Gem::Version
214
266
  version: '0'
215
267
  requirements: []
216
268
  rubyforge_project: archive-zip
217
- rubygems_version: 2.0.0.rc.2
269
+ rubygems_version: 2.2.2
218
270
  signing_key:
219
271
  specification_version: 4
220
272
  summary: Simple, extensible, pure Ruby ZIP archive support.
221
273
  test_files:
222
- - default.mspec
223
- - spec_helper.rb
224
- - spec/ioextensions/read_exactly_spec.rb
225
- - spec/zlib/zreader/compressed_size_spec.rb
226
- - spec/zlib/zreader/new_spec.rb
227
- - spec/zlib/zreader/close_spec.rb
228
- - spec/zlib/zreader/uncompressed_size_spec.rb
229
- - spec/zlib/zreader/open_spec.rb
230
- - spec/zlib/zreader/rewind_spec.rb
231
- - spec/zlib/zreader/read_spec.rb
232
- - spec/zlib/zreader/checksum_spec.rb
233
- - spec/zlib/zreader/tell_spec.rb
234
- - spec/zlib/zreader/seek_spec.rb
235
- - spec/zlib/fixtures/classes.rb
236
- - spec/zlib/fixtures/compressed_file_minmem.bin
237
- - spec/zlib/fixtures/compressed_file_gzip.bin
238
- - spec/zlib/fixtures/compressed_file_raw.bin
239
- - spec/zlib/fixtures/compressed_file_minwin.bin
240
- - spec/zlib/fixtures/compressed_file_nocomp.bin
241
- - spec/zlib/fixtures/compressed_file.bin
242
- - spec/zlib/fixtures/compressed_file_huffman.bin
243
- - spec/zlib/fixtures/raw_file.txt
244
- - spec/zlib/zwriter/write_spec.rb
245
- - spec/zlib/zwriter/compressed_size_spec.rb
246
- - spec/zlib/zwriter/new_spec.rb
247
- - spec/zlib/zwriter/close_spec.rb
248
- - spec/zlib/zwriter/uncompressed_size_spec.rb
249
- - spec/zlib/zwriter/open_spec.rb
250
- - spec/zlib/zwriter/rewind_spec.rb
251
- - spec/zlib/zwriter/checksum_spec.rb
252
- - spec/zlib/zwriter/tell_spec.rb
253
- - spec/zlib/zwriter/seek_spec.rb
254
- - spec/binary_stringio/new_spec.rb
255
- - spec/binary_stringio/set_encoding_spec.rb
256
- - spec/archive/zip/codec/store/fixtures/classes.rb
257
- - spec/archive/zip/codec/store/fixtures/raw_file.txt
258
- - spec/archive/zip/codec/store/compress/write_spec.rb
259
- - spec/archive/zip/codec/store/compress/new_spec.rb
260
- - spec/archive/zip/codec/store/compress/close_spec.rb
261
- - spec/archive/zip/codec/store/compress/open_spec.rb
262
- - spec/archive/zip/codec/store/compress/rewind_spec.rb
263
- - spec/archive/zip/codec/store/compress/data_descriptor_spec.rb
264
- - spec/archive/zip/codec/store/compress/tell_spec.rb
265
- - spec/archive/zip/codec/store/compress/seek_spec.rb
266
- - spec/archive/zip/codec/store/decompress/new_spec.rb
267
- - spec/archive/zip/codec/store/decompress/close_spec.rb
268
- - spec/archive/zip/codec/store/decompress/open_spec.rb
269
- - spec/archive/zip/codec/store/decompress/rewind_spec.rb
270
- - spec/archive/zip/codec/store/decompress/read_spec.rb
271
- - spec/archive/zip/codec/store/decompress/data_descriptor_spec.rb
272
- - spec/archive/zip/codec/store/decompress/tell_spec.rb
273
- - spec/archive/zip/codec/store/decompress/seek_spec.rb
274
- - spec/archive/zip/codec/deflate/fixtures/classes.rb
275
- - spec/archive/zip/codec/deflate/fixtures/compressed_file_nocomp.bin
276
- - spec/archive/zip/codec/deflate/fixtures/compressed_file.bin
277
- - spec/archive/zip/codec/deflate/fixtures/raw_file.txt
278
- - spec/archive/zip/codec/deflate/compress/write_spec.rb
279
- - spec/archive/zip/codec/deflate/compress/new_spec.rb
274
+ - spec/archive/zip/archive_spec.rb
275
+ - spec/archive/zip/codec/deflate/compress/checksum_spec.rb
280
276
  - spec/archive/zip/codec/deflate/compress/close_spec.rb
281
277
  - spec/archive/zip/codec/deflate/compress/crc32_spec.rb
282
- - spec/archive/zip/codec/deflate/compress/open_spec.rb
283
278
  - spec/archive/zip/codec/deflate/compress/data_descriptor_spec.rb
284
- - spec/archive/zip/codec/deflate/compress/checksum_spec.rb
285
- - spec/archive/zip/codec/deflate/decompress/new_spec.rb
279
+ - spec/archive/zip/codec/deflate/compress/new_spec.rb
280
+ - spec/archive/zip/codec/deflate/compress/open_spec.rb
281
+ - spec/archive/zip/codec/deflate/compress/write_spec.rb
282
+ - spec/archive/zip/codec/deflate/decompress/checksum_spec.rb
286
283
  - spec/archive/zip/codec/deflate/decompress/close_spec.rb
287
284
  - spec/archive/zip/codec/deflate/decompress/crc32_spec.rb
288
- - spec/archive/zip/codec/deflate/decompress/open_spec.rb
289
285
  - spec/archive/zip/codec/deflate/decompress/data_descriptor_spec.rb
290
- - spec/archive/zip/codec/deflate/decompress/checksum_spec.rb
291
- - spec/archive/zip/codec/null_encryption/fixtures/classes.rb
292
- - spec/archive/zip/codec/null_encryption/fixtures/raw_file.txt
293
- - spec/archive/zip/codec/null_encryption/encrypt/write_spec.rb
294
- - spec/archive/zip/codec/null_encryption/encrypt/new_spec.rb
295
- - spec/archive/zip/codec/null_encryption/encrypt/close_spec.rb
296
- - spec/archive/zip/codec/null_encryption/encrypt/open_spec.rb
297
- - spec/archive/zip/codec/null_encryption/encrypt/rewind_spec.rb
298
- - spec/archive/zip/codec/null_encryption/encrypt/tell_spec.rb
299
- - spec/archive/zip/codec/null_encryption/encrypt/seek_spec.rb
300
- - spec/archive/zip/codec/null_encryption/decrypt/new_spec.rb
286
+ - spec/archive/zip/codec/deflate/decompress/new_spec.rb
287
+ - spec/archive/zip/codec/deflate/decompress/open_spec.rb
288
+ - spec/archive/zip/codec/deflate/fixtures/classes.rb
289
+ - spec/archive/zip/codec/deflate/fixtures/compressed_file.bin
290
+ - spec/archive/zip/codec/deflate/fixtures/compressed_file_nocomp.bin
291
+ - spec/archive/zip/codec/deflate/fixtures/raw_file.txt
301
292
  - spec/archive/zip/codec/null_encryption/decrypt/close_spec.rb
293
+ - spec/archive/zip/codec/null_encryption/decrypt/new_spec.rb
302
294
  - spec/archive/zip/codec/null_encryption/decrypt/open_spec.rb
303
- - spec/archive/zip/codec/null_encryption/decrypt/rewind_spec.rb
304
295
  - spec/archive/zip/codec/null_encryption/decrypt/read_spec.rb
305
- - spec/archive/zip/codec/null_encryption/decrypt/tell_spec.rb
296
+ - spec/archive/zip/codec/null_encryption/decrypt/rewind_spec.rb
306
297
  - spec/archive/zip/codec/null_encryption/decrypt/seek_spec.rb
307
- - spec/archive/zip/codec/traditional_encryption/fixtures/classes.rb
308
- - spec/archive/zip/codec/traditional_encryption/fixtures/encrypted_file.bin
309
- - spec/archive/zip/codec/traditional_encryption/fixtures/raw_file.txt
310
- - spec/archive/zip/codec/traditional_encryption/encrypt/write_spec.rb
311
- - spec/archive/zip/codec/traditional_encryption/encrypt/new_spec.rb
312
- - spec/archive/zip/codec/traditional_encryption/encrypt/close_spec.rb
313
- - spec/archive/zip/codec/traditional_encryption/encrypt/open_spec.rb
314
- - spec/archive/zip/codec/traditional_encryption/encrypt/rewind_spec.rb
315
- - spec/archive/zip/codec/traditional_encryption/encrypt/tell_spec.rb
316
- - spec/archive/zip/codec/traditional_encryption/encrypt/seek_spec.rb
317
- - spec/archive/zip/codec/traditional_encryption/decrypt/new_spec.rb
298
+ - spec/archive/zip/codec/null_encryption/decrypt/tell_spec.rb
299
+ - spec/archive/zip/codec/null_encryption/encrypt/close_spec.rb
300
+ - spec/archive/zip/codec/null_encryption/encrypt/new_spec.rb
301
+ - spec/archive/zip/codec/null_encryption/encrypt/open_spec.rb
302
+ - spec/archive/zip/codec/null_encryption/encrypt/rewind_spec.rb
303
+ - spec/archive/zip/codec/null_encryption/encrypt/seek_spec.rb
304
+ - spec/archive/zip/codec/null_encryption/encrypt/tell_spec.rb
305
+ - spec/archive/zip/codec/null_encryption/encrypt/write_spec.rb
306
+ - spec/archive/zip/codec/null_encryption/fixtures/classes.rb
307
+ - spec/archive/zip/codec/null_encryption/fixtures/raw_file.txt
308
+ - spec/archive/zip/codec/store/compress/close_spec.rb
309
+ - spec/archive/zip/codec/store/compress/data_descriptor_spec.rb
310
+ - spec/archive/zip/codec/store/compress/new_spec.rb
311
+ - spec/archive/zip/codec/store/compress/open_spec.rb
312
+ - spec/archive/zip/codec/store/compress/rewind_spec.rb
313
+ - spec/archive/zip/codec/store/compress/seek_spec.rb
314
+ - spec/archive/zip/codec/store/compress/tell_spec.rb
315
+ - spec/archive/zip/codec/store/compress/write_spec.rb
316
+ - spec/archive/zip/codec/store/decompress/close_spec.rb
317
+ - spec/archive/zip/codec/store/decompress/data_descriptor_spec.rb
318
+ - spec/archive/zip/codec/store/decompress/new_spec.rb
319
+ - spec/archive/zip/codec/store/decompress/open_spec.rb
320
+ - spec/archive/zip/codec/store/decompress/read_spec.rb
321
+ - spec/archive/zip/codec/store/decompress/rewind_spec.rb
322
+ - spec/archive/zip/codec/store/decompress/seek_spec.rb
323
+ - spec/archive/zip/codec/store/decompress/tell_spec.rb
324
+ - spec/archive/zip/codec/store/fixtures/classes.rb
325
+ - spec/archive/zip/codec/store/fixtures/raw_file.txt
318
326
  - spec/archive/zip/codec/traditional_encryption/decrypt/close_spec.rb
327
+ - spec/archive/zip/codec/traditional_encryption/decrypt/new_spec.rb
319
328
  - spec/archive/zip/codec/traditional_encryption/decrypt/open_spec.rb
320
- - spec/archive/zip/codec/traditional_encryption/decrypt/rewind_spec.rb
321
329
  - spec/archive/zip/codec/traditional_encryption/decrypt/read_spec.rb
322
- - spec/archive/zip/codec/traditional_encryption/decrypt/tell_spec.rb
330
+ - spec/archive/zip/codec/traditional_encryption/decrypt/rewind_spec.rb
323
331
  - spec/archive/zip/codec/traditional_encryption/decrypt/seek_spec.rb
332
+ - spec/archive/zip/codec/traditional_encryption/decrypt/tell_spec.rb
333
+ - spec/archive/zip/codec/traditional_encryption/encrypt/close_spec.rb
334
+ - spec/archive/zip/codec/traditional_encryption/encrypt/new_spec.rb
335
+ - spec/archive/zip/codec/traditional_encryption/encrypt/open_spec.rb
336
+ - spec/archive/zip/codec/traditional_encryption/encrypt/rewind_spec.rb
337
+ - spec/archive/zip/codec/traditional_encryption/encrypt/seek_spec.rb
338
+ - spec/archive/zip/codec/traditional_encryption/encrypt/tell_spec.rb
339
+ - spec/archive/zip/codec/traditional_encryption/encrypt/write_spec.rb
340
+ - spec/archive/zip/codec/traditional_encryption/fixtures/classes.rb
341
+ - spec/archive/zip/codec/traditional_encryption/fixtures/encrypted_file.bin
342
+ - spec/archive/zip/codec/traditional_encryption/fixtures/raw_file.txt
343
+ - spec/binary_stringio/new_spec.rb
344
+ - spec/binary_stringio/set_encoding_spec.rb
345
+ - spec/ioextensions/read_exactly_spec.rb
346
+ - spec/zlib/fixtures/classes.rb
347
+ - spec/zlib/fixtures/compressed_file.bin
348
+ - spec/zlib/fixtures/compressed_file_gzip.bin
349
+ - spec/zlib/fixtures/compressed_file_huffman.bin
350
+ - spec/zlib/fixtures/compressed_file_minmem.bin
351
+ - spec/zlib/fixtures/compressed_file_minwin.bin
352
+ - spec/zlib/fixtures/compressed_file_nocomp.bin
353
+ - spec/zlib/fixtures/compressed_file_raw.bin
354
+ - spec/zlib/fixtures/raw_file.txt
355
+ - spec/zlib/zreader/checksum_spec.rb
356
+ - spec/zlib/zreader/close_spec.rb
357
+ - spec/zlib/zreader/compressed_size_spec.rb
358
+ - spec/zlib/zreader/new_spec.rb
359
+ - spec/zlib/zreader/open_spec.rb
360
+ - spec/zlib/zreader/read_spec.rb
361
+ - spec/zlib/zreader/rewind_spec.rb
362
+ - spec/zlib/zreader/seek_spec.rb
363
+ - spec/zlib/zreader/tell_spec.rb
364
+ - spec/zlib/zreader/uncompressed_size_spec.rb
365
+ - spec/zlib/zwriter/checksum_spec.rb
366
+ - spec/zlib/zwriter/close_spec.rb
367
+ - spec/zlib/zwriter/compressed_size_spec.rb
368
+ - spec/zlib/zwriter/new_spec.rb
369
+ - spec/zlib/zwriter/open_spec.rb
370
+ - spec/zlib/zwriter/rewind_spec.rb
371
+ - spec/zlib/zwriter/seek_spec.rb
372
+ - spec/zlib/zwriter/tell_spec.rb
373
+ - spec/zlib/zwriter/uncompressed_size_spec.rb
374
+ - spec/zlib/zwriter/write_spec.rb