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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6573752786e7b5fb4b78048bd2bff5587dc1dd3e
4
- data.tar.gz: 113b54e8aab31cf481df770a19adcc395eacd281
3
+ metadata.gz: 9828ee2dfd971efea6a18652dd4eaec0d57e1660
4
+ data.tar.gz: d65d7ffacd62f307f04b0e98dc0f995df2fba1a0
5
5
  SHA512:
6
- metadata.gz: 06493f69384d0dedc81f0c56ba07cf216f31a550d9000dad7593546d898b6db23ca1bb075248b63ecbb0ad1df60ae8d02e8d9a495d62f7add5e203d33c0c4451
7
- data.tar.gz: 4559e6ab6ce87fab4d5e72a9bdd7cb1dad1bda07e08e43c44f1b5378d424dbdc836c96621b953ed7d6993bec31ca957e2aa78fe0222d6ea80e63c906c6bbbeb3
6
+ metadata.gz: 9f1853a3640e1955453f31a56a068065ca4439365ad051d5da9811c1f7ba66d6e91131a373856edda5107e6725f855c1c629f508b7db8808f693688f0d15ba6f
7
+ data.tar.gz: 875414c62c74293a4df715f34de61e53c55962a7ad2fab3295ac2c06c4d34c5722d0a17a57837ff1a7e4959393df30b41d1cd68c2db412b045a644f289b609fd
data/README.md CHANGED
@@ -14,7 +14,7 @@ And then execute:
14
14
 
15
15
  Or install it yourself as:
16
16
 
17
- $ gem install carta
17
+ $ gem install carta --pre
18
18
 
19
19
  ## Usage
20
20
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Carta
2
- VERSION = '0.0.3.pre1'
2
+ VERSION = '0.0.3.pre3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.pre1
4
+ version: 0.0.3.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Wreggelsworth