rzip 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $VERBOSE = true
4
+
5
+ $: << "../lib"
6
+
7
+ require 'test/unit'
8
+ require 'zip/ziprequire'
9
+
10
+ $: << 'data/rubycode.zip' << 'data/rubycode2.zip'
11
+
12
+ class ZipRequireTest < Test::Unit::TestCase
13
+ def test_require
14
+ assert(require('data/notzippedruby'))
15
+ assert(!require('data/notzippedruby'))
16
+
17
+ assert(require('zippedruby1'))
18
+ assert(!require('zippedruby1'))
19
+
20
+ assert(require('zippedruby2'))
21
+ assert(!require('zippedruby2'))
22
+
23
+ assert(require('zippedruby3'))
24
+ assert(!require('zippedruby3'))
25
+
26
+ c1 = NotZippedRuby.new
27
+ assert(c1.returnTrue)
28
+ assert(ZippedRuby1.returnTrue)
29
+ assert(!ZippedRuby2.returnFalse)
30
+ assert_equal(4, ZippedRuby3.multiplyValues(2, 2))
31
+ end
32
+
33
+ def test_get_resource
34
+ get_resource("aResource.txt") {
35
+ |f|
36
+ assert_equal("Nothing exciting in this file!", f.read)
37
+ }
38
+ end
39
+ end
40
+
41
+ # Copyright (C) 2002 Thomas Sondergaard
42
+ # rubyzip is free software; you can redistribute it and/or
43
+ # modify it under the terms of the ruby license.
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rzip
3
+ version: !ruby/object:Gem::Version
4
+ hash: 9
5
+ prerelease: false
6
+ segments:
7
+ - 2
8
+ - 1
9
+ - 1
10
+ version: 2.1.1
11
+ platform: ruby
12
+ authors:
13
+ - Alan Harper
14
+ - Postmodern
15
+ - Thomas Sondergaard
16
+ autorequire:
17
+ bindir: bin
18
+ cert_chain: []
19
+
20
+ date: 2010-09-10 00:00:00 +10:00
21
+ default_executable:
22
+ dependencies: []
23
+
24
+ description: rzip is a supported fork of rubyzip that supports Ruby 1.9 and other modern features
25
+ email: alan@aussiegeek.net
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - ChangeLog.txt
32
+ - README
33
+ files:
34
+ - ChangeLog.txt
35
+ - NEWS.txt
36
+ - Rakefile
37
+ - TODO.txt
38
+ - lib/zip.rb
39
+ - lib/zip/ioextras.rb
40
+ - lib/zip/stdrubyext.rb
41
+ - lib/zip/tempfile_bugfixed.rb
42
+ - lib/zip/version.rb
43
+ - lib/zip/zip.rb
44
+ - lib/zip/zipfilesystem.rb
45
+ - lib/zip/ziprequire.rb
46
+ - samples/example.rb
47
+ - samples/example_filesystem.rb
48
+ - samples/gtk_zip.rb
49
+ - samples/write_simple.rb
50
+ - samples/zipfind.rb
51
+ - test/data/file1.txt
52
+ - test/data/file1.txt.deflatedData
53
+ - test/data/file2.txt
54
+ - test/data/notzippedruby.rb
55
+ - test/data/rubycode.zip
56
+ - test/data/rubycode2.zip
57
+ - test/data/testDirectory.bin
58
+ - test/data/zipWithDirs.zip
59
+ - README
60
+ - test/gentestfiles.rb
61
+ - test/helper.rb
62
+ - test/test_ioextras.rb
63
+ - test/test_stdrubyext.rb
64
+ - test/test_zip.rb
65
+ - test/test_zipfilesystem.rb
66
+ - test/test_ziprequire.rb
67
+ has_rdoc: true
68
+ homepage: http://github.com/postmodern/rubyzip2
69
+ licenses: []
70
+
71
+ post_install_message:
72
+ rdoc_options:
73
+ - --charset=UTF-8
74
+ require_paths:
75
+ - lib
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ hash: 3
82
+ segments:
83
+ - 0
84
+ version: "0"
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ hash: 3
91
+ segments:
92
+ - 0
93
+ version: "0"
94
+ requirements: []
95
+
96
+ rubyforge_project:
97
+ rubygems_version: 1.3.7
98
+ signing_key:
99
+ specification_version: 3
100
+ summary: rzip is a Ruby library for reading and writing Zip files
101
+ test_files:
102
+ - test/data/notzippedruby.rb
103
+ - test/gentestfiles.rb
104
+ - test/helper.rb
105
+ - test/test_ioextras.rb
106
+ - test/test_stdrubyext.rb
107
+ - test/test_zip.rb
108
+ - test/test_zipfilesystem.rb
109
+ - test/test_ziprequire.rb