kindler 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kindler/version.rb +1 -1
- data/lib/kindler.rb +4 -4
- metadata +3 -3
data/lib/kindler/version.rb
CHANGED
data/lib/kindler.rb
CHANGED
@@ -60,15 +60,15 @@ module Kindler
|
|
60
60
|
|
61
61
|
def sectionize_pages
|
62
62
|
@pages_by_section = {}
|
63
|
-
page_count = 1
|
64
63
|
pages.each do |page|
|
65
|
-
page[:count] = page_count
|
66
|
-
page[:file_name] = "#{page[:count].to_s.rjust(3,'0')}.html"
|
67
|
-
page_count += 1
|
68
64
|
@pages_by_section[page[:section]] ||= []
|
69
65
|
@pages_by_section[page[:section]] << page
|
70
66
|
end
|
71
67
|
pages = @pages_by_section.values.flatten
|
68
|
+
pages.each_with_index do |page,index|
|
69
|
+
page[:count] = index + 1
|
70
|
+
page[:file_name] = "#{page[:count].to_s.rjust(3,'0')}.html"
|
71
|
+
end
|
72
72
|
end
|
73
73
|
|
74
74
|
# check mobi file is generated already
|
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.
|
4
|
+
version: 0.1.5
|
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: &
|
16
|
+
requirement: &2161252260 !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: *
|
24
|
+
version_requirements: *2161252260
|
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
|