kindlerb 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kindlerb.rb +4 -2
- metadata +5 -5
data/lib/kindlerb.rb
CHANGED
@@ -21,7 +21,7 @@ end
|
|
21
21
|
|
22
22
|
|
23
23
|
module Kindlerb
|
24
|
-
VERSION = '0.0.
|
24
|
+
VERSION = '0.0.6'
|
25
25
|
|
26
26
|
def self.run
|
27
27
|
|
@@ -53,7 +53,9 @@ module Kindlerb
|
|
53
53
|
section_html_files = []
|
54
54
|
|
55
55
|
sections = Dir['sections/*'].entries.sort.map.with_index {|section_dir|
|
56
|
-
|
56
|
+
c = File.read(Pathname.new(section_dir) + '_section.txt')
|
57
|
+
c.force_encoding("UTF-8")
|
58
|
+
section_title = c.strip
|
57
59
|
articles = Dir[Pathname.new(section_dir) + '*'].entries.select {|x| File.basename(x) !~ /section/}.sort
|
58
60
|
section_html_files << (section_html_file = (Pathname.new(section_dir) + 'section.html').to_s)
|
59
61
|
idref = "item-#{section_dir.gsub(/\D/, '')}"
|
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.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-29 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &70270385369580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70270385369580
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mustache
|
27
|
-
requirement: &
|
27
|
+
requirement: &70270385368880 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70270385368880
|
36
36
|
description: Kindle eperiodical generator
|
37
37
|
email:
|
38
38
|
- dhchoi@gmail.com
|