kindler 0.1.0 → 0.1.1

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/kindler/version.rb +1 -1
  2. data/lib/kindler.rb +3 -2
  3. metadata +3 -3
@@ -1,3 +1,3 @@
1
1
  module Kindler
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/kindler.rb CHANGED
@@ -25,7 +25,7 @@ module Kindler
25
25
  @keep_image = options[:keep_image] || true
26
26
  @debug = options[:debug]
27
27
  @title = options[:title] || ''
28
- @author = options[:author] || ''
28
+ @author = options[:author] || 'unknown'
29
29
  @mobi_type = options[:mobi_type] || :magzine
30
30
  @pages = []
31
31
  @local_images = []
@@ -39,6 +39,7 @@ module Kindler
39
39
  page[:section] ||= DEFAULT_SECTION
40
40
  page[:count] = pages.count + 1
41
41
  page[:file_name] = "#{page[:count].to_s.rjust(3,'0')}.html"
42
+ page[:author] = 'unknown' if (page[:author]==nil or page[:author]=='')
42
43
  pages << page
43
44
  debug pages
44
45
  end
@@ -205,7 +206,7 @@ module Kindler
205
206
  <dc:publisher>Kindler- 29decibel</dc:publisher>
206
207
  <dc:subject>News</dc:subject>
207
208
  <dc:identifier id="#{title}">#{title}</dc:identifier>
208
- <dc:date>#{Time.now.to_date}/dc:date>
209
+ <dc:date>#{Time.now.to_date}</dc:date>
209
210
  <dc:description>Kindler generated book</dc:description>
210
211
  </dc-metadata>
211
212
  #{magzine? ? magzine_meta : ''}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &2156313120 !ruby/object:Gem::Requirement
16
+ requirement: &2161897040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156313120
24
+ version_requirements: *2161897040
25
25
  description: kindler is a rubygem allow you to generate kindle mobi book very easily
26
26
  email:
27
27
  - mike.d.1984@gmail.com