kindlerb 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/kindlerb.rb +2 -1
  2. data/templates/opf.mustache +1 -1
  3. metadata +2 -2
data/lib/kindlerb.rb CHANGED
@@ -21,7 +21,7 @@ end
21
21
 
22
22
 
23
23
  module Kindlerb
24
- VERSION = '0.0.8'
24
+ VERSION = '0.0.9'
25
25
 
26
26
  def self.run
27
27
 
@@ -120,6 +120,7 @@ module Kindlerb
120
120
  :idref => "img-%03d" % idx
121
121
  }
122
122
  }
123
+ document[:cover_mimetype] ||= "image/gif"
123
124
 
124
125
  opf = Mustache.render opf_template, document
125
126
  File.open("kindlerb.opf", "w") {|f| f.puts opf}
@@ -21,7 +21,7 @@
21
21
  <manifest>
22
22
  <item href="contents.html" media-type="application/xhtml+xml" id="contents"/>
23
23
  <item href="nav-contents.ncx" media-type="application/x-dtbncx+xml" id="nav-contents"/>
24
- <item href="{{cover}}" media-type="image/gif" id="cover-image"/>
24
+ <item href="{{cover}}" media-type="{{cover_mimetype}}" id="cover-image"/>
25
25
  <item href="{{masthead}}" media-type="image/gif" id="masthead"/>
26
26
  {{#manifest_items}}
27
27
  <item href="{{href}}" media-type="{{media}}" id="{{idref}}"/>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindlerb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-18 00:00:00.000000000 Z
12
+ date: 2012-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri