gepub 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/gepub/generator.rb +6 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/lib/gepub/generator.rb
CHANGED
@@ -99,14 +99,17 @@ module GEPUB
|
|
99
99
|
|
100
100
|
Zip::Archive.open(epubname, Zip::CREATE | Zip::TRUNC, Zip::NO_COMPRESSION) do
|
101
101
|
|epubfile|
|
102
|
-
epubfile.
|
102
|
+
epubfile.add_buffer("mimetype", "application/epub+zip")
|
103
|
+
# epubfile.add_file("mimetype")
|
103
104
|
end
|
104
105
|
|
105
|
-
Zip::Archive.open(epubname, Zip::CREATE) do
|
106
|
+
Zip::Archive.open(epubname, Zip::CREATE, Zip::BEST_COMPRESSION) do
|
106
107
|
|epubfile|
|
107
108
|
Dir["**/*"].each do
|
108
109
|
|f|
|
109
|
-
|
110
|
+
if File.basename(f) != 'mimetype' && !File.directory?(f)
|
111
|
+
epubfile.add_file(f,f)
|
112
|
+
end
|
110
113
|
end
|
111
114
|
end
|
112
115
|
}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 9
|
9
|
+
version: 0.0.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- KOJIMA Satoshi
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-15 00:00:00 +09:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|