zip-container 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes.rdoc +59 -0
- data/Licence.rdoc +29 -0
- data/Rakefile +85 -0
- data/ReadMe.rdoc +34 -0
- data/examples/create-zip-container.rb +61 -0
- data/examples/verify-zip-container.rb +44 -0
- data/examples/zip-container-info +70 -0
- data/lib/zip-container.rb +60 -0
- data/lib/zip-container/container.rb +491 -0
- data/lib/zip-container/entries/directory.rb +71 -0
- data/lib/zip-container/entries/entry.rb +135 -0
- data/lib/zip-container/entries/file.rb +101 -0
- data/lib/zip-container/entries/managed.rb +183 -0
- data/lib/zip-container/entries/reserved.rb +88 -0
- data/lib/zip-container/exceptions.rb +70 -0
- data/test/data/compressed_mimetype.container +0 -0
- data/test/data/empty.container +0 -0
- data/test/data/empty.zip +0 -0
- data/test/data/example.container +0 -0
- data/test/data/null.file +0 -0
- data/test/tc_create.rb +140 -0
- data/test/tc_managed_entries.rb +230 -0
- data/test/tc_read.rb +109 -0
- data/test/tc_reserved_names.rb +334 -0
- data/test/ts_container.rb +47 -0
- data/version.yml +4 -0
- data/zip-container.gemspec +77 -0
- metadata +145 -0
data/version.yml
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "zip-container"
|
8
|
+
s.version = "0.8.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Robert Haines"]
|
12
|
+
s.date = "2013-06-26"
|
13
|
+
s.description = "A Ruby library for working with ZIP Container Format files. See http://www.idpf.org/epub/30/spec/epub30-ocf.html for the OCF specification and https://learn.adobe.com/wiki/display/PDFNAV/Universal+Container+Format for the UCF specification."
|
14
|
+
s.email = ["support@mygrid.org.uk"]
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"Changes.rdoc",
|
17
|
+
"Licence.rdoc",
|
18
|
+
"ReadMe.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
"Changes.rdoc",
|
22
|
+
"Licence.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"ReadMe.rdoc",
|
25
|
+
"examples/create-zip-container.rb",
|
26
|
+
"examples/verify-zip-container.rb",
|
27
|
+
"examples/zip-container-info",
|
28
|
+
"lib/zip-container.rb",
|
29
|
+
"lib/zip-container/container.rb",
|
30
|
+
"lib/zip-container/entries/directory.rb",
|
31
|
+
"lib/zip-container/entries/entry.rb",
|
32
|
+
"lib/zip-container/entries/file.rb",
|
33
|
+
"lib/zip-container/entries/managed.rb",
|
34
|
+
"lib/zip-container/entries/reserved.rb",
|
35
|
+
"lib/zip-container/exceptions.rb",
|
36
|
+
"test/data/compressed_mimetype.container",
|
37
|
+
"test/data/empty.container",
|
38
|
+
"test/data/empty.zip",
|
39
|
+
"test/data/example.container",
|
40
|
+
"test/data/null.file",
|
41
|
+
"test/tc_create.rb",
|
42
|
+
"test/tc_managed_entries.rb",
|
43
|
+
"test/tc_read.rb",
|
44
|
+
"test/tc_reserved_names.rb",
|
45
|
+
"test/ts_container.rb",
|
46
|
+
"version.yml",
|
47
|
+
"zip-container.gemspec"
|
48
|
+
]
|
49
|
+
s.homepage = "http://mygrid.github.io/ruby-zip-container/"
|
50
|
+
s.rdoc_options = ["-N", "--tab-width=2", "--main=ReadMe.rdoc"]
|
51
|
+
s.require_paths = ["lib"]
|
52
|
+
s.rubygems_version = "1.8.21"
|
53
|
+
s.summary = "A ZIP Container for use by OCF and UCF implementations"
|
54
|
+
s.test_files = ["test/ts_container.rb"]
|
55
|
+
|
56
|
+
if s.respond_to? :specification_version then
|
57
|
+
s.specification_version = 3
|
58
|
+
|
59
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
60
|
+
s.add_development_dependency(%q<rake>, ["~> 10.0.4"])
|
61
|
+
s.add_development_dependency(%q<rdoc>, ["~> 4.0.1"])
|
62
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
63
|
+
s.add_runtime_dependency(%q<rubyzip>, ["~> 0.9.9"])
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<rake>, ["~> 10.0.4"])
|
66
|
+
s.add_dependency(%q<rdoc>, ["~> 4.0.1"])
|
67
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
68
|
+
s.add_dependency(%q<rubyzip>, ["~> 0.9.9"])
|
69
|
+
end
|
70
|
+
else
|
71
|
+
s.add_dependency(%q<rake>, ["~> 10.0.4"])
|
72
|
+
s.add_dependency(%q<rdoc>, ["~> 4.0.1"])
|
73
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
74
|
+
s.add_dependency(%q<rubyzip>, ["~> 0.9.9"])
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
metadata
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zip-container
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Robert Haines
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-06-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 10.0.4
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 10.0.4
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rdoc
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 4.0.1
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 4.0.1
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: jeweler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.8.4
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.8.4
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rubyzip
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.9.9
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.9.9
|
78
|
+
description: A Ruby library for working with ZIP Container Format files. See http://www.idpf.org/epub/30/spec/epub30-ocf.html
|
79
|
+
for the OCF specification and https://learn.adobe.com/wiki/display/PDFNAV/Universal+Container+Format
|
80
|
+
for the UCF specification.
|
81
|
+
email:
|
82
|
+
- support@mygrid.org.uk
|
83
|
+
executables: []
|
84
|
+
extensions: []
|
85
|
+
extra_rdoc_files:
|
86
|
+
- Changes.rdoc
|
87
|
+
- Licence.rdoc
|
88
|
+
- ReadMe.rdoc
|
89
|
+
files:
|
90
|
+
- Changes.rdoc
|
91
|
+
- Licence.rdoc
|
92
|
+
- Rakefile
|
93
|
+
- ReadMe.rdoc
|
94
|
+
- examples/create-zip-container.rb
|
95
|
+
- examples/verify-zip-container.rb
|
96
|
+
- examples/zip-container-info
|
97
|
+
- lib/zip-container.rb
|
98
|
+
- lib/zip-container/container.rb
|
99
|
+
- lib/zip-container/entries/directory.rb
|
100
|
+
- lib/zip-container/entries/entry.rb
|
101
|
+
- lib/zip-container/entries/file.rb
|
102
|
+
- lib/zip-container/entries/managed.rb
|
103
|
+
- lib/zip-container/entries/reserved.rb
|
104
|
+
- lib/zip-container/exceptions.rb
|
105
|
+
- test/data/compressed_mimetype.container
|
106
|
+
- test/data/empty.container
|
107
|
+
- test/data/empty.zip
|
108
|
+
- test/data/example.container
|
109
|
+
- test/data/null.file
|
110
|
+
- test/tc_create.rb
|
111
|
+
- test/tc_managed_entries.rb
|
112
|
+
- test/tc_read.rb
|
113
|
+
- test/tc_reserved_names.rb
|
114
|
+
- test/ts_container.rb
|
115
|
+
- version.yml
|
116
|
+
- zip-container.gemspec
|
117
|
+
homepage: http://mygrid.github.io/ruby-zip-container/
|
118
|
+
licenses: []
|
119
|
+
post_install_message:
|
120
|
+
rdoc_options:
|
121
|
+
- -N
|
122
|
+
- --tab-width=2
|
123
|
+
- --main=ReadMe.rdoc
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
requirements: []
|
139
|
+
rubyforge_project:
|
140
|
+
rubygems_version: 1.8.21
|
141
|
+
signing_key:
|
142
|
+
specification_version: 3
|
143
|
+
summary: A ZIP Container for use by OCF and UCF implementations
|
144
|
+
test_files:
|
145
|
+
- test/ts_container.rb
|