hotplate 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hotplate.gemspec +1 -0
- data/lib/hotplate/cli/main.rb +1 -7
- data/lib/hotplate/version.rb +1 -1
- metadata +16 -101
- data/lib/hotplate/gems/rubyzip-1.1.7/README.md +0 -271
- data/lib/hotplate/gems/rubyzip-1.1.7/Rakefile +0 -19
- data/lib/hotplate/gems/rubyzip-1.1.7/TODO +0 -15
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/central_directory.rb +0 -208
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/compressor.rb +0 -10
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/constants.rb +0 -63
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/crypto/encryption.rb +0 -11
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/crypto/null_encryption.rb +0 -45
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/crypto/traditional_encryption.rb +0 -99
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/decompressor.rb +0 -13
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/deflater.rb +0 -32
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/dos_time.rb +0 -49
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/entry.rb +0 -696
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/entry_set.rb +0 -86
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/errors.rb +0 -16
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/generic.rb +0 -43
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/ntfs.rb +0 -92
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/old_unix.rb +0 -45
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/universal_time.rb +0 -47
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/unix.rb +0 -38
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/zip64.rb +0 -67
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/zip64_placeholder.rb +0 -16
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field.rb +0 -101
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/file.rb +0 -436
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/filesystem.rb +0 -626
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/inflater.rb +0 -66
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/input_stream.rb +0 -164
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/ioextras/abstract_input_stream.rb +0 -115
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/ioextras/abstract_output_stream.rb +0 -45
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/ioextras.rb +0 -38
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/null_compressor.rb +0 -15
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/null_decompressor.rb +0 -27
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/null_input_stream.rb +0 -10
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/output_stream.rb +0 -190
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/pass_thru_compressor.rb +0 -23
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/pass_thru_decompressor.rb +0 -41
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/streamable_directory.rb +0 -15
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/streamable_stream.rb +0 -56
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip/version.rb +0 -3
- data/lib/hotplate/gems/rubyzip-1.1.7/lib/zip.rb +0 -63
- data/lib/hotplate/gems/rubyzip-1.1.7/samples/example.rb +0 -91
- data/lib/hotplate/gems/rubyzip-1.1.7/samples/example_filesystem.rb +0 -33
- data/lib/hotplate/gems/rubyzip-1.1.7/samples/example_recursive.rb +0 -48
- data/lib/hotplate/gems/rubyzip-1.1.7/samples/gtkRubyzip.rb +0 -86
- data/lib/hotplate/gems/rubyzip-1.1.7/samples/qtzip.rb +0 -101
- data/lib/hotplate/gems/rubyzip-1.1.7/samples/write_simple.rb +0 -13
- data/lib/hotplate/gems/rubyzip-1.1.7/samples/zipfind.rb +0 -74
- data/lib/hotplate/gems/rubyzip-1.1.7/test/basic_zip_file_test.rb +0 -64
- data/lib/hotplate/gems/rubyzip-1.1.7/test/central_directory_entry_test.rb +0 -73
- data/lib/hotplate/gems/rubyzip-1.1.7/test/central_directory_test.rb +0 -104
- data/lib/hotplate/gems/rubyzip-1.1.7/test/crypto/null_encryption_test.rb +0 -53
- data/lib/hotplate/gems/rubyzip-1.1.7/test/crypto/traditional_encryption_test.rb +0 -80
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/WarnInvalidDate.zip +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/file1.txt +0 -46
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/file1.txt.deflatedData +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/file2.txt +0 -1504
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/globTest/foo/bar/baz/foo.txt +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/globTest/foo.txt +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/globTest/food.txt +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/globTest.zip +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/mimetype +0 -1
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/notzippedruby.rb +0 -7
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/ntfs.zip +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/rubycode.zip +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/rubycode2.zip +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/testDirectory.bin +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/zip64-sample.zip +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/zipWithDirs.zip +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/data/zipWithEncryption.zip +0 -0
- data/lib/hotplate/gems/rubyzip-1.1.7/test/deflater_test.rb +0 -67
- data/lib/hotplate/gems/rubyzip-1.1.7/test/encryption_test.rb +0 -42
- data/lib/hotplate/gems/rubyzip-1.1.7/test/entry_set_test.rb +0 -138
- data/lib/hotplate/gems/rubyzip-1.1.7/test/entry_test.rb +0 -165
- data/lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb +0 -36
- data/lib/hotplate/gems/rubyzip-1.1.7/test/extra_field_test.rb +0 -78
- data/lib/hotplate/gems/rubyzip-1.1.7/test/file_extract_directory_test.rb +0 -56
- data/lib/hotplate/gems/rubyzip-1.1.7/test/file_extract_test.rb +0 -90
- data/lib/hotplate/gems/rubyzip-1.1.7/test/file_split_test.rb +0 -60
- data/lib/hotplate/gems/rubyzip-1.1.7/test/file_test.rb +0 -559
- data/lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/dir_iterator_test.rb +0 -62
- data/lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/directory_test.rb +0 -131
- data/lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/file_mutating_test.rb +0 -100
- data/lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/file_nonmutating_test.rb +0 -514
- data/lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/file_stat_test.rb +0 -66
- data/lib/hotplate/gems/rubyzip-1.1.7/test/gentestfiles.rb +0 -134
- data/lib/hotplate/gems/rubyzip-1.1.7/test/inflater_test.rb +0 -14
- data/lib/hotplate/gems/rubyzip-1.1.7/test/input_stream_test.rb +0 -170
- data/lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/abstract_input_stream_test.rb +0 -103
- data/lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/abstract_output_stream_test.rb +0 -106
- data/lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/fake_io_test.rb +0 -18
- data/lib/hotplate/gems/rubyzip-1.1.7/test/local_entry_test.rb +0 -156
- data/lib/hotplate/gems/rubyzip-1.1.7/test/output_stream_test.rb +0 -129
- data/lib/hotplate/gems/rubyzip-1.1.7/test/pass_thru_compressor_test.rb +0 -31
- data/lib/hotplate/gems/rubyzip-1.1.7/test/pass_thru_decompressor_test.rb +0 -15
- data/lib/hotplate/gems/rubyzip-1.1.7/test/settings_test.rb +0 -92
- data/lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb +0 -228
- data/lib/hotplate/gems/rubyzip-1.1.7/test/unicode_file_names_and_comments_test.rb +0 -52
- data/lib/hotplate/gems/rubyzip-1.1.7/test/zip64_full_test.rb +0 -53
- data/lib/hotplate/gems/rubyzip-1.1.7/test/zip64_support_test.rb +0 -15
@@ -1,53 +0,0 @@
|
|
1
|
-
if ENV['FULL_ZIP64_TEST']
|
2
|
-
require 'minitest/autorun'
|
3
|
-
require 'minitest/unit'
|
4
|
-
require 'fileutils'
|
5
|
-
require 'zip'
|
6
|
-
|
7
|
-
# test zip64 support for real, by actually exceeding the 32-bit size/offset limits
|
8
|
-
# this test does not, of course, run with the normal unit tests! ;)
|
9
|
-
|
10
|
-
class Zip64FullTest < MiniTest::Test
|
11
|
-
def teardown
|
12
|
-
::Zip.reset!
|
13
|
-
end
|
14
|
-
|
15
|
-
def prepareTestFile(test_filename)
|
16
|
-
::File.delete(test_filename) if ::File.exist?(test_filename)
|
17
|
-
return test_filename
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_largeZipFile
|
21
|
-
::Zip.write_zip64_support = true
|
22
|
-
first_text = 'starting out small'
|
23
|
-
last_text = 'this tests files starting after 4GB in the archive'
|
24
|
-
test_filename = prepareTestFile('huge.zip')
|
25
|
-
::Zip::OutputStream.open(test_filename) do |io|
|
26
|
-
io.put_next_entry('first_file.txt')
|
27
|
-
io.write(first_text)
|
28
|
-
|
29
|
-
# write just over 4GB (stored, so the zip file exceeds 4GB)
|
30
|
-
buf = 'blah' * 16384
|
31
|
-
io.put_next_entry('huge_file', nil, nil, ::Zip::Entry::STORED)
|
32
|
-
65537.times { io.write(buf) }
|
33
|
-
|
34
|
-
io.put_next_entry('last_file.txt')
|
35
|
-
io.write(last_text)
|
36
|
-
end
|
37
|
-
|
38
|
-
::Zip::File.open(test_filename) do |zf|
|
39
|
-
assert_equal %w(first_file.txt huge_file last_file.txt), zf.entries.map(&:name)
|
40
|
-
assert_equal first_text, zf.read('first_file.txt')
|
41
|
-
assert_equal last_text, zf.read('last_file.txt')
|
42
|
-
end
|
43
|
-
|
44
|
-
# note: if this fails, be sure you have UnZip version 6.0 or newer
|
45
|
-
# as this is the first version to support zip64 extensions
|
46
|
-
# but some OSes (*cough* OSX) still bundle a 5.xx release
|
47
|
-
assert system("unzip -t #{test_filename}"), "third-party zip validation failed"
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class Zip64SupportTest < MiniTest::Test
|
4
|
-
TEST_FILE = File.join(File.dirname(__FILE__), 'data', 'zip64-sample.zip')
|
5
|
-
|
6
|
-
def test_open_zip64_file
|
7
|
-
zip_file = ::Zip::File.open(TEST_FILE)
|
8
|
-
assert(!zip_file.nil?)
|
9
|
-
assert(zip_file.entries.count == 2)
|
10
|
-
test_rb = zip_file.entries.find { |x| x.name == 'test.rb' }
|
11
|
-
assert(test_rb.size == 482)
|
12
|
-
assert(test_rb.compressed_size == 229)
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|