carta 0.0.3.pre1 → 0.0.3.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/carta/cli/compile.rb +1 -4
- data/lib/carta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9828ee2dfd971efea6a18652dd4eaec0d57e1660
|
4
|
+
data.tar.gz: d65d7ffacd62f307f04b0e98dc0f995df2fba1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f1853a3640e1955453f31a56a068065ca4439365ad051d5da9811c1f7ba66d6e91131a373856edda5107e6725f855c1c629f508b7db8808f693688f0d15ba6f
|
7
|
+
data.tar.gz: 875414c62c74293a4df715f34de61e53c55962a7ad2fab3295ac2c06c4d34c5722d0a17a57837ff1a7e4959393df30b41d1cd68c2db412b045a644f289b609fd
|
data/README.md
CHANGED
data/lib/carta/cli/compile.rb
CHANGED
@@ -106,10 +106,8 @@ module Carta
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def generate_epub
|
109
|
-
files = FileList.new("#{@BUILD_DIR}/epub
|
109
|
+
files = FileList.new("#{@BUILD_DIR}/epub/**/*.*")
|
110
110
|
zip_path = files.pathmap("%{^#{@BUILD_DIR}/epub/,}p")
|
111
|
-
.exclude('EPUB', 'META-INF', 'mimetype')
|
112
|
-
files = files.exclude("#{@BUILD_DIR}/epub/EPUB", "#{@BUILD_DIR}/epub/META-INF")
|
113
111
|
zip = Zip::OutputStream.new("#{@BUILD_DIR}/#{book['title']}.epub")
|
114
112
|
zip.put_next_entry('mimetype', nil, nil, Zip::Entry::STORED, Zlib::NO_COMPRESSION)
|
115
113
|
zip.write "application/epub+zip"
|
@@ -118,7 +116,6 @@ module Carta
|
|
118
116
|
zip_list[value] = files[i]
|
119
117
|
end
|
120
118
|
zip_list.keys.each do |key|
|
121
|
-
# puts "#{key}: #{zip_list[key]}"
|
122
119
|
zip.put_next_entry key, nil, nil, Zip::Entry::DEFLATED, Zlib::BEST_COMPRESSION
|
123
120
|
zip.write IO.read(zip_list[key])
|
124
121
|
end
|
data/lib/carta/version.rb
CHANGED