Html2Feedbooks 1.1.1 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/bin/html2fb.rb +4 -7
- data/html2fb.gemspec +27 -0
- data/lib/{app.rb → html2fb/app.rb} +8 -9
- data/lib/{conf.rb → html2fb/conf.rb} +0 -0
- data/lib/{document.rb → html2fb/document.rb} +0 -0
- data/lib/{downloader.rb → html2fb/downloader.rb} +0 -0
- data/lib/{feedbooks.rb → html2fb/feedbooks.rb} +5 -6
- data/lib/{parser.rb → html2fb/parser.rb} +89 -49
- data/lib/html2fb/version.rb +3 -0
- data/lib/html2fb.rb +7 -0
- data/samples/107-h.htm +19642 -0
- data/samples/107-h2.htm +1259 -0
- data/samples/3049-h.htm +7787 -0
- data/samples/3058-h.htm +8732 -0
- data/samples/3258-h.htm +19894 -0
- data/samples/3258-h2.htm +686 -0
- data/samples/3469-h.htm +14024 -0
- data/samples/conf107-h.yml +27 -0
- data/samples/conf3049-h.yml +27 -0
- data/samples/conf3058-h.yml +27 -0
- data/samples/conf3258-h.yml +26 -0
- data/samples/conf3469-h.yml +32 -0
- metadata +41 -21
@@ -0,0 +1,27 @@
|
|
1
|
+
remove:
|
2
|
+
class:
|
3
|
+
- totoc
|
4
|
+
- pagenum
|
5
|
+
- totoi
|
6
|
+
- img
|
7
|
+
expr:
|
8
|
+
- 'table'
|
9
|
+
- //pre
|
10
|
+
before:
|
11
|
+
- "//br[8]"
|
12
|
+
after:
|
13
|
+
- '(//hr)[last()]'
|
14
|
+
select:
|
15
|
+
- expr: "center[0]"
|
16
|
+
fblevel: section
|
17
|
+
- expr: "center[last()]"
|
18
|
+
fblevel: section
|
19
|
+
- expr: '//center[h3]'
|
20
|
+
fblevel: chapter
|
21
|
+
|
22
|
+
fb:
|
23
|
+
user: zeta1
|
24
|
+
bookid: 4072
|
25
|
+
booktype: book
|
26
|
+
pass: #ask#
|
27
|
+
host: "feedbooks.com"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
remove:
|
2
|
+
class:
|
3
|
+
- totoc
|
4
|
+
- pagenum
|
5
|
+
- totoi
|
6
|
+
- img
|
7
|
+
expr:
|
8
|
+
- 'table'
|
9
|
+
- //pre
|
10
|
+
- hr
|
11
|
+
before:
|
12
|
+
- "(//p)[11]"
|
13
|
+
select:
|
14
|
+
- expr: "(//h2)[0]"
|
15
|
+
fblevel: section
|
16
|
+
- expr: h2
|
17
|
+
fblevel: part
|
18
|
+
select:
|
19
|
+
- expr: h3
|
20
|
+
fblevel: chapter
|
21
|
+
|
22
|
+
fb:
|
23
|
+
user: zeta1
|
24
|
+
bookid: 4073
|
25
|
+
booktype: book
|
26
|
+
pass: #ask#
|
27
|
+
host: "feedbooks.com"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
remove:
|
2
|
+
class:
|
3
|
+
- totoc
|
4
|
+
- pagenum
|
5
|
+
- totoi
|
6
|
+
- img
|
7
|
+
expr:
|
8
|
+
- 'table'
|
9
|
+
- //pre
|
10
|
+
- hr
|
11
|
+
before:
|
12
|
+
- "//p[4]"
|
13
|
+
select:
|
14
|
+
- expr: "//h2[1]"
|
15
|
+
fblevel: section
|
16
|
+
- expr: h2
|
17
|
+
fblevel: part
|
18
|
+
select:
|
19
|
+
- expr: h3
|
20
|
+
fblevel: chapter
|
21
|
+
|
22
|
+
fb:
|
23
|
+
user: zeta1
|
24
|
+
bookid: 4070
|
25
|
+
booktype: book
|
26
|
+
pass: #ask#
|
27
|
+
host: "feedbooks.com"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
remove:
|
2
|
+
class:
|
3
|
+
- totoc
|
4
|
+
- pagenum
|
5
|
+
- totoi
|
6
|
+
- img
|
7
|
+
- gutlic
|
8
|
+
expr:
|
9
|
+
- 'table'
|
10
|
+
before:
|
11
|
+
- 'hr[2]'
|
12
|
+
select:
|
13
|
+
- expr: "(//h2)[0]"
|
14
|
+
fblevel: section
|
15
|
+
- expr: h2
|
16
|
+
fblevel: part
|
17
|
+
select:
|
18
|
+
- expr: center
|
19
|
+
fblevel: chapter
|
20
|
+
|
21
|
+
fb:
|
22
|
+
user: zeta1
|
23
|
+
bookid: 4075
|
24
|
+
booktype: book
|
25
|
+
pass: #ask#
|
26
|
+
host: "feedbooks.com"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
remove:
|
2
|
+
class:
|
3
|
+
- totoc
|
4
|
+
- pagenum
|
5
|
+
- totoi
|
6
|
+
- img
|
7
|
+
expr:
|
8
|
+
- 'table'
|
9
|
+
- //pre
|
10
|
+
- hr
|
11
|
+
- '(//p)[last()]'
|
12
|
+
before:
|
13
|
+
- h1
|
14
|
+
between:
|
15
|
+
-
|
16
|
+
- '//h2[2]'
|
17
|
+
- '//p[5]'
|
18
|
+
select:
|
19
|
+
- expr: "//h2[0]"
|
20
|
+
fblevel: section
|
21
|
+
- expr: h2
|
22
|
+
fblevel: chapter
|
23
|
+
select:
|
24
|
+
- expr: h3
|
25
|
+
fblevel: section
|
26
|
+
|
27
|
+
fb:
|
28
|
+
user: zeta1
|
29
|
+
bookid: 4074
|
30
|
+
booktype: book
|
31
|
+
pass: #ask#
|
32
|
+
host: "feedbooks.com"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Html2Feedbooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 3
|
8
9
|
- 1
|
9
|
-
|
10
|
-
version: 1.1.1
|
10
|
+
version: 1.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benoit Larroque
|
@@ -15,23 +15,23 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-11-29 00:00:00 +01:00
|
19
19
|
default_executable: html2fb.rb
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: nokogiri
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 5
|
30
30
|
segments:
|
31
|
-
- 0
|
32
|
-
- 8
|
33
31
|
- 1
|
34
|
-
|
32
|
+
- 4
|
33
|
+
- 1
|
34
|
+
version: 1.4.1
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
@@ -58,11 +58,12 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
hash:
|
61
|
+
hash: 15
|
62
62
|
segments:
|
63
|
+
- 2
|
63
64
|
- 0
|
64
|
-
-
|
65
|
-
version:
|
65
|
+
- 0
|
66
|
+
version: 2.0.0
|
66
67
|
type: :runtime
|
67
68
|
version_requirements: *id003
|
68
69
|
- !ruby/object:Gem::Dependency
|
@@ -82,7 +83,8 @@ dependencies:
|
|
82
83
|
type: :runtime
|
83
84
|
version_requirements: *id004
|
84
85
|
description: Html2Feedbooks is script to automate basic publishing on feedbooks.com
|
85
|
-
email:
|
86
|
+
email:
|
87
|
+
- benoit dot larroque at feedbooks dot com
|
86
88
|
executables:
|
87
89
|
- html2fb.rb
|
88
90
|
extensions: []
|
@@ -90,15 +92,33 @@ extensions: []
|
|
90
92
|
extra_rdoc_files: []
|
91
93
|
|
92
94
|
files:
|
95
|
+
- .gitignore
|
96
|
+
- Gemfile
|
93
97
|
- README
|
94
|
-
-
|
95
|
-
- lib/app.rb
|
96
|
-
- lib/conf.rb
|
97
|
-
- lib/document.rb
|
98
|
-
- lib/downloader.rb
|
99
|
-
- lib/feedbooks.rb
|
98
|
+
- Rakefile
|
100
99
|
- bin/html2fb.rb
|
101
|
-
-
|
100
|
+
- confs/conf.yaml
|
101
|
+
- html2fb.gemspec
|
102
|
+
- lib/html2fb.rb
|
103
|
+
- lib/html2fb/app.rb
|
104
|
+
- lib/html2fb/conf.rb
|
105
|
+
- lib/html2fb/document.rb
|
106
|
+
- lib/html2fb/downloader.rb
|
107
|
+
- lib/html2fb/feedbooks.rb
|
108
|
+
- lib/html2fb/parser.rb
|
109
|
+
- lib/html2fb/version.rb
|
110
|
+
- samples/107-h.htm
|
111
|
+
- samples/107-h2.htm
|
112
|
+
- samples/3049-h.htm
|
113
|
+
- samples/3058-h.htm
|
114
|
+
- samples/3258-h.htm
|
115
|
+
- samples/3258-h2.htm
|
116
|
+
- samples/3469-h.htm
|
117
|
+
- samples/conf107-h.yml
|
118
|
+
- samples/conf3049-h.yml
|
119
|
+
- samples/conf3058-h.yml
|
120
|
+
- samples/conf3258-h.yml
|
121
|
+
- samples/conf3469-h.yml
|
102
122
|
has_rdoc: true
|
103
123
|
homepage: http://github.com/zetaben/Html2Feedbooks
|
104
124
|
licenses: []
|