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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1577da71c5f94708ea03ba9cadb904236f644cd4
|
4
|
+
data.tar.gz: daeb6f0dbf9a3c69cdb75e22be0ca6537b81fa7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7715ff58339efcf4356936d8d88080c1891ba1c5744c06612a8fc063ee2fd2eb42801a47bedfa784da30b50a249fed8ef4e6b82bb9fc07b5d531165770d75168
|
7
|
+
data.tar.gz: d258d7e553914cb970feb1b25a34b92f59e90bfc0ad27cb5982e35fd23760243bfe64b65ea361a6d24b8774cc13ca74b1891820295b235750c0e8839439bdb9d
|
data/hotplate.gemspec
CHANGED
data/lib/hotplate/cli/main.rb
CHANGED
@@ -21,13 +21,7 @@ def os
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
|
25
|
-
libroot = File.expand_path "../../gems", __FILE__
|
26
|
-
$:.unshift Dir[libroot + "/#{name}-*/lib"][0]
|
27
|
-
end
|
28
|
-
|
29
|
-
gemload "rubyzip"
|
30
|
-
require_relative '../version'
|
24
|
+
require "zip"
|
31
25
|
|
32
26
|
puts "HotPlate CLI Version #{HotPlate::VERSION}"
|
33
27
|
puts
|
data/lib/hotplate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotplate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaci R
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubyzip
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description:
|
42
56
|
email:
|
43
57
|
- jaci.brunning@gmail.com
|
@@ -56,105 +70,6 @@ files:
|
|
56
70
|
- lib/hotplate/cli/idea.rb
|
57
71
|
- lib/hotplate/cli/init.rb
|
58
72
|
- lib/hotplate/cli/main.rb
|
59
|
-
- lib/hotplate/gems/rubyzip-1.1.7/README.md
|
60
|
-
- lib/hotplate/gems/rubyzip-1.1.7/Rakefile
|
61
|
-
- lib/hotplate/gems/rubyzip-1.1.7/TODO
|
62
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip.rb
|
63
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/central_directory.rb
|
64
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/compressor.rb
|
65
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/constants.rb
|
66
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/crypto/encryption.rb
|
67
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/crypto/null_encryption.rb
|
68
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/crypto/traditional_encryption.rb
|
69
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/decompressor.rb
|
70
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/deflater.rb
|
71
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/dos_time.rb
|
72
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/entry.rb
|
73
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/entry_set.rb
|
74
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/errors.rb
|
75
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field.rb
|
76
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/generic.rb
|
77
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/ntfs.rb
|
78
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/old_unix.rb
|
79
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/universal_time.rb
|
80
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/unix.rb
|
81
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/zip64.rb
|
82
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/extra_field/zip64_placeholder.rb
|
83
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/file.rb
|
84
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/filesystem.rb
|
85
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/inflater.rb
|
86
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/input_stream.rb
|
87
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/ioextras.rb
|
88
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/ioextras/abstract_input_stream.rb
|
89
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/ioextras/abstract_output_stream.rb
|
90
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/null_compressor.rb
|
91
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/null_decompressor.rb
|
92
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/null_input_stream.rb
|
93
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/output_stream.rb
|
94
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/pass_thru_compressor.rb
|
95
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/pass_thru_decompressor.rb
|
96
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/streamable_directory.rb
|
97
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/streamable_stream.rb
|
98
|
-
- lib/hotplate/gems/rubyzip-1.1.7/lib/zip/version.rb
|
99
|
-
- lib/hotplate/gems/rubyzip-1.1.7/samples/example.rb
|
100
|
-
- lib/hotplate/gems/rubyzip-1.1.7/samples/example_filesystem.rb
|
101
|
-
- lib/hotplate/gems/rubyzip-1.1.7/samples/example_recursive.rb
|
102
|
-
- lib/hotplate/gems/rubyzip-1.1.7/samples/gtkRubyzip.rb
|
103
|
-
- lib/hotplate/gems/rubyzip-1.1.7/samples/qtzip.rb
|
104
|
-
- lib/hotplate/gems/rubyzip-1.1.7/samples/write_simple.rb
|
105
|
-
- lib/hotplate/gems/rubyzip-1.1.7/samples/zipfind.rb
|
106
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/basic_zip_file_test.rb
|
107
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/central_directory_entry_test.rb
|
108
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/central_directory_test.rb
|
109
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/crypto/null_encryption_test.rb
|
110
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/crypto/traditional_encryption_test.rb
|
111
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/WarnInvalidDate.zip
|
112
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/file1.txt
|
113
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/file1.txt.deflatedData
|
114
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/file2.txt
|
115
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/globTest.zip
|
116
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/globTest/foo.txt
|
117
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/globTest/foo/bar/baz/foo.txt
|
118
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/globTest/food.txt
|
119
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/mimetype
|
120
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/notzippedruby.rb
|
121
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/ntfs.zip
|
122
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/rubycode.zip
|
123
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/rubycode2.zip
|
124
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/testDirectory.bin
|
125
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/zip64-sample.zip
|
126
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/zipWithDirs.zip
|
127
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/data/zipWithEncryption.zip
|
128
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/deflater_test.rb
|
129
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/encryption_test.rb
|
130
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/entry_set_test.rb
|
131
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/entry_test.rb
|
132
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb
|
133
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/extra_field_test.rb
|
134
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/file_extract_directory_test.rb
|
135
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/file_extract_test.rb
|
136
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/file_split_test.rb
|
137
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/file_test.rb
|
138
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/dir_iterator_test.rb
|
139
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/directory_test.rb
|
140
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/file_mutating_test.rb
|
141
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/file_nonmutating_test.rb
|
142
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/filesystem/file_stat_test.rb
|
143
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/gentestfiles.rb
|
144
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/inflater_test.rb
|
145
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/input_stream_test.rb
|
146
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/abstract_input_stream_test.rb
|
147
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/abstract_output_stream_test.rb
|
148
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/fake_io_test.rb
|
149
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/local_entry_test.rb
|
150
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/output_stream_test.rb
|
151
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/pass_thru_compressor_test.rb
|
152
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/pass_thru_decompressor_test.rb
|
153
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/settings_test.rb
|
154
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb
|
155
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/unicode_file_names_and_comments_test.rb
|
156
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/zip64_full_test.rb
|
157
|
-
- lib/hotplate/gems/rubyzip-1.1.7/test/zip64_support_test.rb
|
158
73
|
- lib/hotplate/java/build.gradle
|
159
74
|
- lib/hotplate/java/gradle/wrapper/gradle-wrapper.jar
|
160
75
|
- lib/hotplate/java/gradle/wrapper/gradle-wrapper.properties
|
@@ -1,271 +0,0 @@
|
|
1
|
-
# rubyzip
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/rubyzip.svg)](http://badge.fury.io/rb/rubyzip)
|
3
|
-
[![Build Status](https://secure.travis-ci.org/rubyzip/rubyzip.svg)](http://travis-ci.org/rubyzip/rubyzip)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/rubyzip/rubyzip.svg)](https://codeclimate.com/github/rubyzip/rubyzip)
|
5
|
-
[![Coverage Status](https://img.shields.io/coveralls/rubyzip/rubyzip.svg)](https://coveralls.io/r/rubyzip/rubyzip?branch=master)
|
6
|
-
|
7
|
-
rubyzip is a ruby library for reading and writing zip files.
|
8
|
-
|
9
|
-
## Important note
|
10
|
-
|
11
|
-
Rubyzip interface changed!!! No need to do `require "zip/zip"` and `Zip` prefix in class names removed.
|
12
|
-
|
13
|
-
If you have issues with any third-party gems that require an old version of rubyzip, you can use this workaround:
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
gem 'rubyzip', '>= 1.0.0' # will load new rubyzip version
|
17
|
-
gem 'zip-zip' # will load compatibility for old rubyzip API.
|
18
|
-
```
|
19
|
-
|
20
|
-
## Requirements
|
21
|
-
|
22
|
-
* Ruby 1.9.2 or greater
|
23
|
-
|
24
|
-
## Installation
|
25
|
-
rubyzip is available on RubyGems, so:
|
26
|
-
|
27
|
-
```
|
28
|
-
gem install rubyzip
|
29
|
-
```
|
30
|
-
|
31
|
-
Or in your Gemfile:
|
32
|
-
|
33
|
-
```ruby
|
34
|
-
gem 'rubyzip'
|
35
|
-
```
|
36
|
-
|
37
|
-
## Usage
|
38
|
-
|
39
|
-
### Basic zip archive creation
|
40
|
-
|
41
|
-
```ruby
|
42
|
-
require 'rubygems'
|
43
|
-
require 'zip'
|
44
|
-
|
45
|
-
folder = "Users/me/Desktop/stuff_to_zip"
|
46
|
-
input_filenames = ['image.jpg', 'description.txt', 'stats.csv']
|
47
|
-
|
48
|
-
zipfile_name = "/Users/me/Desktop/archive.zip"
|
49
|
-
|
50
|
-
Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile|
|
51
|
-
input_filenames.each do |filename|
|
52
|
-
# Two arguments:
|
53
|
-
# - The name of the file as it will appear in the archive
|
54
|
-
# - The original file, including the path to find it
|
55
|
-
zipfile.add(filename, folder + '/' + filename)
|
56
|
-
end
|
57
|
-
zipfile.get_output_stream("myFile") { |os| os.write "myFile contains just this" }
|
58
|
-
end
|
59
|
-
```
|
60
|
-
|
61
|
-
### Zipping a directory recursively
|
62
|
-
Copy from [here](https://github.com/rubyzip/rubyzip/blob/05916bf89181e1955118fd3ea059f18acac28cc8/samples/example_recursive.rb )
|
63
|
-
|
64
|
-
```ruby
|
65
|
-
require 'rubygems'
|
66
|
-
require 'zip'
|
67
|
-
# This is a simple example which uses rubyzip to
|
68
|
-
# recursively generate a zip file from the contents of
|
69
|
-
# a specified directory. The directory itself is not
|
70
|
-
# included in the archive, rather just its contents.
|
71
|
-
#
|
72
|
-
# Usage:
|
73
|
-
# require /path/to/the/ZipFileGenerator/Class
|
74
|
-
# directoryToZip = "/tmp/input"
|
75
|
-
# outputFile = "/tmp/out.zip"
|
76
|
-
# zf = ZipFileGenerator.new(directoryToZip, outputFile)
|
77
|
-
# zf.write()
|
78
|
-
|
79
|
-
class ZipFileGenerator
|
80
|
-
# Initialize with the directory to zip and the location of the output archive.
|
81
|
-
def initialize(inputDir, outputFile)
|
82
|
-
@inputDir = inputDir
|
83
|
-
@outputFile = outputFile
|
84
|
-
end
|
85
|
-
# Zip the input directory.
|
86
|
-
def write()
|
87
|
-
entries = Dir.entries(@inputDir); entries.delete("."); entries.delete("..")
|
88
|
-
io = Zip::File.open(@outputFile, Zip::File::CREATE);
|
89
|
-
writeEntries(entries, "", io)
|
90
|
-
io.close();
|
91
|
-
end
|
92
|
-
# A helper method to make the recursion work.
|
93
|
-
private
|
94
|
-
def writeEntries(entries, path, io)
|
95
|
-
entries.each { |e|
|
96
|
-
zipFilePath = path == "" ? e : File.join(path, e)
|
97
|
-
diskFilePath = File.join(@inputDir, zipFilePath)
|
98
|
-
puts "Deflating " + diskFilePath
|
99
|
-
if File.directory?(diskFilePath)
|
100
|
-
io.mkdir(zipFilePath)
|
101
|
-
subdir =Dir.entries(diskFilePath); subdir.delete("."); subdir.delete("..")
|
102
|
-
writeEntries(subdir, zipFilePath, io)
|
103
|
-
else
|
104
|
-
io.get_output_stream(zipFilePath) { |f| f.print(File.open(diskFilePath, "rb").read())}
|
105
|
-
end
|
106
|
-
}
|
107
|
-
end
|
108
|
-
end
|
109
|
-
```
|
110
|
-
|
111
|
-
### Save zip archive entries in sorted by name state
|
112
|
-
|
113
|
-
To saving zip archives in sorted order like below you need to set `::Zip.sort_entries` to `true`
|
114
|
-
|
115
|
-
```
|
116
|
-
Vegetable/
|
117
|
-
Vegetable/bean
|
118
|
-
Vegetable/carrot
|
119
|
-
Vegetable/celery
|
120
|
-
fruit/
|
121
|
-
fruit/apple
|
122
|
-
fruit/kiwi
|
123
|
-
fruit/mango
|
124
|
-
fruit/orange
|
125
|
-
```
|
126
|
-
|
127
|
-
After this entries in zip archive will be saved in ordered state.
|
128
|
-
|
129
|
-
### Reading a Zip file
|
130
|
-
|
131
|
-
```ruby
|
132
|
-
Zip::File.open('foo.zip') do |zip_file|
|
133
|
-
# Handle entries one by one
|
134
|
-
zip_file.each do |entry|
|
135
|
-
# Extract to file/directory/symlink
|
136
|
-
puts "Extracting #{entry.name}"
|
137
|
-
entry.extract(dest_file)
|
138
|
-
|
139
|
-
# Read into memory
|
140
|
-
content = entry.get_input_stream.read
|
141
|
-
end
|
142
|
-
|
143
|
-
# Find specific entry
|
144
|
-
entry = zip_file.glob('*.csv').first
|
145
|
-
puts entry.get_input_stream.read
|
146
|
-
end
|
147
|
-
```
|
148
|
-
|
149
|
-
### Password Protection (Experimental)
|
150
|
-
|
151
|
-
RubyZip supports reading/writing zip files with traditional zip encryption (a.k.a. "ZipCrypto"). AES encryption is not yet supported. It can be used with buffer streams, e.g.:
|
152
|
-
|
153
|
-
```ruby
|
154
|
-
Zip::OutputStream.write_buffer(::StringIO.new(''), Zip::TraditionalEncrypter.new('password')) do |out|
|
155
|
-
out.put_next_entry("my_file.txt")
|
156
|
-
out.write my_data
|
157
|
-
end.string
|
158
|
-
```
|
159
|
-
|
160
|
-
This is an experimental feature and the interface for encryption may change in future versions.
|
161
|
-
|
162
|
-
## Known issues
|
163
|
-
|
164
|
-
### Modify docx file with rubyzip
|
165
|
-
|
166
|
-
Use `write_buffer` instead `open`. Thanks to @jondruse
|
167
|
-
|
168
|
-
```ruby
|
169
|
-
buffer = Zip::OutputStream.write_buffer do |out|
|
170
|
-
@zip_file.entries.each do |e|
|
171
|
-
unless [DOCUMENT_FILE_PATH, RELS_FILE_PATH].include?(e.name)
|
172
|
-
out.put_next_entry(e.name)
|
173
|
-
out.write e.get_input_stream.read
|
174
|
-
end
|
175
|
-
end
|
176
|
-
|
177
|
-
out.put_next_entry(DOCUMENT_FILE_PATH)
|
178
|
-
out.write xml_doc.to_xml(:indent => 0).gsub("\n","")
|
179
|
-
|
180
|
-
out.put_next_entry(RELS_FILE_PATH)
|
181
|
-
out.write rels.to_xml(:indent => 0).gsub("\n","")
|
182
|
-
end
|
183
|
-
|
184
|
-
File.open(new_path, "w") {|f| f.write(buffer.string) }
|
185
|
-
```
|
186
|
-
|
187
|
-
## Configuration
|
188
|
-
|
189
|
-
By default, rubyzip will not overwrite files if they already exist inside of the extracted path. To change this behavior, you may specify a configuration option like so:
|
190
|
-
|
191
|
-
```ruby
|
192
|
-
Zip.on_exists_proc = true
|
193
|
-
```
|
194
|
-
|
195
|
-
If you're using rubyzip with rails, consider placing this snippet of code in an initializer file such as `config/initializers/rubyzip.rb`
|
196
|
-
|
197
|
-
Additionally, if you want to configure rubyzip to overwrite existing files while creating a .zip file, you can do so with the following:
|
198
|
-
|
199
|
-
```ruby
|
200
|
-
Zip.continue_on_exists_proc = true
|
201
|
-
```
|
202
|
-
|
203
|
-
If you want to store non english names and want to open properly file on Windows(pre 7) you need to set next option:
|
204
|
-
|
205
|
-
```ruby
|
206
|
-
Zip.unicode_names = true
|
207
|
-
```
|
208
|
-
|
209
|
-
In some zip date of files stored in incorrect format. You can hide warning about it by using:
|
210
|
-
|
211
|
-
```ruby
|
212
|
-
Zip.warn_invalid_date = false
|
213
|
-
```
|
214
|
-
|
215
|
-
You can set the default compression level like so:
|
216
|
-
|
217
|
-
```ruby
|
218
|
-
Zip.default_compression = Zlib::DEFAULT_COMPRESSION
|
219
|
-
```
|
220
|
-
It defaults to `Zlib::DEFAULT_COMPRESSION`. Possible values are `Zlib::BEST_COMPRESSION`, `Zlib::DEFAULT_COMPRESSION` and `Zlib::NO_COMPRESSION`
|
221
|
-
|
222
|
-
All settings in same time
|
223
|
-
|
224
|
-
```ruby
|
225
|
-
Zip.setup do |c|
|
226
|
-
c.on_exists_proc = true
|
227
|
-
c.continue_on_exists_proc = true
|
228
|
-
c.unicode_names = true
|
229
|
-
c.default_compression = Zlib::BEST_COMPRESSION
|
230
|
-
end
|
231
|
-
```
|
232
|
-
|
233
|
-
By default Zip64 support is disabled for writing. To enable it do next:
|
234
|
-
|
235
|
-
```ruby
|
236
|
-
Zip.write_zip64_support = true
|
237
|
-
```
|
238
|
-
|
239
|
-
_NOTE_: If you will enable Zip64 writing then you will need zip extractor with Zip64 support to extract archive.
|
240
|
-
|
241
|
-
## Developing
|
242
|
-
|
243
|
-
To run tests you need run next commands:
|
244
|
-
|
245
|
-
```
|
246
|
-
bundle install
|
247
|
-
rake
|
248
|
-
```
|
249
|
-
|
250
|
-
## Website and Project Home
|
251
|
-
|
252
|
-
http://github.com/rubyzip/rubyzip
|
253
|
-
|
254
|
-
http://rdoc.info/github/rubyzip/rubyzip/master/frames
|
255
|
-
|
256
|
-
## Authors
|
257
|
-
|
258
|
-
Alexander Simonov ( alex at simonov.me)
|
259
|
-
|
260
|
-
Alan Harper ( alan at aussiegeek.net)
|
261
|
-
|
262
|
-
Thomas Sondergaard (thomas at sondergaard.cc)
|
263
|
-
|
264
|
-
Technorama Ltd. (oss-ruby-zip at technorama.net)
|
265
|
-
|
266
|
-
extra-field support contributed by Tatsuki Sugiura (sugi at nemui.org)
|
267
|
-
|
268
|
-
## License
|
269
|
-
|
270
|
-
rubyzip is distributed under the same license as ruby. See
|
271
|
-
http://www.ruby-lang.org/en/LICENSE.txt
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'rake/testtask'
|
3
|
-
|
4
|
-
task :default => :test
|
5
|
-
|
6
|
-
Rake::TestTask.new(:test) do |test|
|
7
|
-
test.libs << 'lib'
|
8
|
-
test.libs << 'test'
|
9
|
-
test.pattern = 'test/**/*_test.rb'
|
10
|
-
test.verbose = true
|
11
|
-
end
|
12
|
-
|
13
|
-
#Rake::TestTask.new(:zip64_full_test) do |test|
|
14
|
-
# test.libs << File.join(File.dirname(__FILE__), 'lib')
|
15
|
-
# test.libs << File.join(File.dirname(__FILE__), 'test')
|
16
|
-
# test.pattern = File.join(File.dirname(__FILE__), 'test/zip64_full_test.rb')
|
17
|
-
# test.verbose = true
|
18
|
-
#end
|
19
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
|
2
|
-
* ZipInputStream: Support zip-files with trailing data descriptors
|
3
|
-
* Adjust rdoc stylesheet to advertise inherited methods if possible
|
4
|
-
* Suggestion: Add ZipFile/ZipInputStream example that demonstrates extracting all entries.
|
5
|
-
* Suggestion: ZipFile#extract destination should default to "."
|
6
|
-
* Suggestion: ZipEntry should have extract(), get_input_stream() methods etc
|
7
|
-
* (is buffering used anywhere with write?)
|
8
|
-
* Inflater.sysread should pass the buffer to produce_input.
|
9
|
-
* Implement ZipFsDir.glob
|
10
|
-
* ZipFile.checkIntegrity method
|
11
|
-
* non-MSDOS permission attributes
|
12
|
-
** See mail from Ned Konz to ruby-talk subj. "Re: SV: [ANN] Archive 0.2"
|
13
|
-
* Packager version, required unpacker version in zip headers
|
14
|
-
** See mail from Ned Konz to ruby-talk subj. "Re: SV: [ANN] Archive 0.2"
|
15
|
-
* implement storing attributes and ownership information
|