kindlerb 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kindlerb.rb +2 -2
- metadata +6 -6
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.5'
|
25
25
|
|
26
26
|
def self.run
|
27
27
|
|
@@ -53,7 +53,7 @@ module Kindlerb
|
|
53
53
|
section_html_files = []
|
54
54
|
|
55
55
|
sections = Dir['sections/*'].entries.sort.map.with_index {|section_dir|
|
56
|
-
section_title = File.read((Pathname.new(section_dir) + '_section.txt')).strip
|
56
|
+
section_title = File.read((Pathname.new(section_dir) + '_section.txt'), 'r:UTF-8').strip
|
57
57
|
articles = Dir[Pathname.new(section_dir) + '*'].entries.select {|x| File.basename(x) !~ /section/}.sort
|
58
58
|
section_html_files << (section_html_file = (Pathname.new(section_dir) + 'section.html').to_s)
|
59
59
|
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.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
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: &70241855796280 !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: *70241855796280
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mustache
|
27
|
-
requirement: &
|
27
|
+
requirement: &70241855795300 !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: *70241855795300
|
36
36
|
description: Kindle eperiodical generator
|
37
37
|
email:
|
38
38
|
- dhchoi@gmail.com
|