docubot 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/docubot.rb +1 -1
- data/lib/docubot/converters/markdown.rb +6 -6
- metadata +66 -96
data/lib/docubot.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
require 'rubygems'
|
3
3
|
begin
|
4
|
-
require '
|
4
|
+
require 'kramdown'
|
5
5
|
DocuBot::Converter.to_convert :md, :markdown do |page, source|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
Kramdown::Document.new(source).to_html.tap do |result|
|
7
|
+
# BlueCloth 2.0.5 takes UTF-8 source and returns ASCII-8BIT
|
8
|
+
# result.encode!( 'UTF-8', :undef=>:replace ) if Object.const_defined? "Encoding"
|
9
|
+
end
|
10
10
|
end
|
11
11
|
rescue LoadError
|
12
|
-
warn "Unable to load
|
12
|
+
warn "Unable to load kramdown gem; *.markdown/*.md markup will not be recognized as a page."
|
13
13
|
end
|
14
14
|
|
metadata
CHANGED
@@ -1,103 +1,81 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: docubot
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 6
|
9
|
-
- 2
|
10
|
-
version: 0.6.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.7.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Gavin Kistner
|
14
9
|
- Harold Hausman
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2010-01-26 00:00:00 -07:00
|
13
|
+
date: 2012-05-24 00:00:00.000000000 -06:00
|
20
14
|
default_executable:
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
23
17
|
name: haml
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirement: &20956680 !ruby/object:Gem::Requirement
|
26
19
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
version: "0"
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0'
|
34
24
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: nokogiri
|
38
25
|
prerelease: false
|
39
|
-
|
26
|
+
version_requirements: *20956680
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: &20955252 !ruby/object:Gem::Requirement
|
40
30
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
version: "0"
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
48
35
|
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: bluecloth
|
52
36
|
prerelease: false
|
53
|
-
|
37
|
+
version_requirements: *20955252
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: kramdown
|
40
|
+
requirement: &20954544 !ruby/object:Gem::Requirement
|
54
41
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
segments:
|
60
|
-
- 0
|
61
|
-
version: "0"
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
62
46
|
type: :runtime
|
63
|
-
version_requirements: *id003
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
name: RedCloth
|
66
47
|
prerelease: false
|
67
|
-
|
48
|
+
version_requirements: *20954544
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: RedCloth
|
51
|
+
requirement: &20953872 !ruby/object:Gem::Requirement
|
68
52
|
none: false
|
69
|
-
requirements:
|
70
|
-
- -
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
version: "0"
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
76
57
|
type: :runtime
|
77
|
-
version_requirements: *id004
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: minitest
|
80
58
|
prerelease: false
|
81
|
-
|
59
|
+
version_requirements: *20953872
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: minitest
|
62
|
+
requirement: &20953128 !ruby/object:Gem::Requirement
|
82
63
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
segments:
|
88
|
-
- 0
|
89
|
-
version: "0"
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
90
68
|
type: :runtime
|
91
|
-
|
92
|
-
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *20953128
|
71
|
+
description: DocuBot creates HTML or CHM documentation from a hierarchy of files,
|
72
|
+
supporting markups like Markdown, Textile, and Haml.
|
93
73
|
email: gavin@phrogz.net
|
94
|
-
executables:
|
74
|
+
executables:
|
95
75
|
- docubot
|
96
76
|
extensions: []
|
97
|
-
|
98
77
|
extra_rdoc_files: []
|
99
|
-
|
100
|
-
files:
|
78
|
+
files:
|
101
79
|
- bin/docubot
|
102
80
|
- lib/docubot/bundle.rb
|
103
81
|
- lib/docubot/converter.rb
|
@@ -249,41 +227,33 @@ files:
|
|
249
227
|
has_rdoc: true
|
250
228
|
homepage: http://github.com/Phrogz/docubot
|
251
229
|
licenses: []
|
252
|
-
|
253
230
|
post_install_message:
|
254
231
|
rdoc_options: []
|
255
|
-
|
256
|
-
require_paths:
|
232
|
+
require_paths:
|
257
233
|
- lib
|
258
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
234
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
259
235
|
none: false
|
260
|
-
requirements:
|
261
|
-
- -
|
262
|
-
- !ruby/object:Gem::Version
|
263
|
-
|
264
|
-
|
265
|
-
- 0
|
266
|
-
version: "0"
|
267
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - ! '>='
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '0'
|
240
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
268
241
|
none: false
|
269
|
-
requirements:
|
270
|
-
- -
|
271
|
-
- !ruby/object:Gem::Version
|
272
|
-
|
273
|
-
|
274
|
-
- 0
|
275
|
-
version: "0"
|
276
|
-
requirements:
|
242
|
+
requirements:
|
243
|
+
- - ! '>='
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '0'
|
246
|
+
requirements:
|
277
247
|
- Windows with HTML Help Workshop installed and hhc.exe in the %PATH%.
|
278
248
|
- Haml gem for template interpretation.
|
279
249
|
- Nokogiri gem for parsing HTML after creation (and manipulating).
|
280
|
-
-
|
250
|
+
- kramdown gem for Markdown conversion.
|
281
251
|
- RedCloth gem for Textile conversion.
|
282
252
|
- MiniTest gem for running specifications.
|
283
253
|
rubyforge_project:
|
284
|
-
rubygems_version: 1.
|
254
|
+
rubygems_version: 1.5.2
|
285
255
|
signing_key:
|
286
256
|
specification_version: 3
|
287
257
|
summary: Create documentation from a hierarchy of text files.
|
288
|
-
test_files:
|
258
|
+
test_files:
|
289
259
|
- spec/_all.rb
|