asciidoctor 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of asciidoctor might be problematic. Click here for more details.
- data/README.asciidoc +163 -41
- data/Rakefile +3 -1
- data/asciidoctor.gemspec +13 -5
- data/bin/asciidoctor +6 -3
- data/bin/asciidoctor-safe +13 -0
- data/lib/asciidoctor.rb +237 -26
- data/lib/asciidoctor/abstract_node.rb +27 -17
- data/lib/asciidoctor/attribute_list.rb +6 -0
- data/lib/asciidoctor/backends/base_template.rb +3 -4
- data/lib/asciidoctor/backends/docbook45.rb +114 -55
- data/lib/asciidoctor/backends/html5.rb +173 -104
- data/lib/asciidoctor/cli/invoker.rb +105 -0
- data/lib/asciidoctor/cli/options.rb +146 -0
- data/lib/asciidoctor/document.rb +135 -35
- data/lib/asciidoctor/lexer.rb +86 -33
- data/lib/asciidoctor/list_item.rb +2 -2
- data/lib/asciidoctor/reader.rb +6 -7
- data/lib/asciidoctor/section.rb +17 -5
- data/lib/asciidoctor/substituters.rb +216 -97
- data/lib/asciidoctor/table.rb +9 -2
- data/lib/asciidoctor/version.rb +1 -1
- data/man/asciidoctor.1 +212 -0
- data/man/asciidoctor.ad +156 -0
- data/test/attributes_test.rb +108 -5
- data/test/blocks_test.rb +102 -15
- data/test/document_test.rb +214 -3
- data/test/fixtures/encoding.asciidoc +4 -0
- data/test/fixtures/sample.asciidoc +26 -0
- data/test/invoker_test.rb +254 -0
- data/test/lexer_test.rb +53 -0
- data/test/links_test.rb +30 -0
- data/test/lists_test.rb +648 -9
- data/test/options_test.rb +68 -0
- data/test/paragraphs_test.rb +65 -1
- data/test/reader_test.rb +18 -4
- data/test/{headers_test.rb → sections_test.rb} +237 -0
- data/test/substitutions_test.rb +247 -5
- data/test/tables_test.rb +22 -4
- data/test/test_helper.rb +47 -3
- data/test/text_test.rb +20 -4
- metadata +34 -6
- data/noof.rb +0 -16
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-02-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: coderay
|
@@ -125,6 +125,22 @@ dependencies:
|
|
125
125
|
- - ! '>='
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
|
+
- !ruby/object:Gem::Dependency
|
129
|
+
name: rdoc
|
130
|
+
requirement: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ~>
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '3.12'
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ~>
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '3.12'
|
128
144
|
- !ruby/object:Gem::Dependency
|
129
145
|
name: tilt
|
130
146
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,6 +172,7 @@ files:
|
|
156
172
|
- Rakefile
|
157
173
|
- asciidoctor.gemspec
|
158
174
|
- bin/asciidoctor
|
175
|
+
- bin/asciidoctor-safe
|
159
176
|
- lib/asciidoctor.rb
|
160
177
|
- lib/asciidoctor/abstract_block.rb
|
161
178
|
- lib/asciidoctor/abstract_node.rb
|
@@ -165,6 +182,8 @@ files:
|
|
165
182
|
- lib/asciidoctor/backends/html5.rb
|
166
183
|
- lib/asciidoctor/block.rb
|
167
184
|
- lib/asciidoctor/callouts.rb
|
185
|
+
- lib/asciidoctor/cli/invoker.rb
|
186
|
+
- lib/asciidoctor/cli/options.rb
|
168
187
|
- lib/asciidoctor/debug.rb
|
169
188
|
- lib/asciidoctor/document.rb
|
170
189
|
- lib/asciidoctor/errors.rb
|
@@ -177,7 +196,8 @@ files:
|
|
177
196
|
- lib/asciidoctor/substituters.rb
|
178
197
|
- lib/asciidoctor/table.rb
|
179
198
|
- lib/asciidoctor/version.rb
|
180
|
-
-
|
199
|
+
- man/asciidoctor.1
|
200
|
+
- man/asciidoctor.ad
|
181
201
|
- test/attributes_test.rb
|
182
202
|
- test/blocks_test.rb
|
183
203
|
- test/document_test.rb
|
@@ -188,20 +208,23 @@ files:
|
|
188
208
|
- test/fixtures/encoding.asciidoc
|
189
209
|
- test/fixtures/include-file.asciidoc
|
190
210
|
- test/fixtures/list_elements.asciidoc
|
211
|
+
- test/fixtures/sample.asciidoc
|
191
212
|
- test/fixtures/tip.gif
|
192
|
-
- test/
|
213
|
+
- test/invoker_test.rb
|
193
214
|
- test/lexer_test.rb
|
194
215
|
- test/links_test.rb
|
195
216
|
- test/lists_test.rb
|
217
|
+
- test/options_test.rb
|
196
218
|
- test/paragraphs_test.rb
|
197
219
|
- test/preamble_test.rb
|
198
220
|
- test/reader_test.rb
|
199
221
|
- test/renderer_test.rb
|
222
|
+
- test/sections_test.rb
|
200
223
|
- test/substitutions_test.rb
|
201
224
|
- test/tables_test.rb
|
202
225
|
- test/test_helper.rb
|
203
226
|
- test/text_test.rb
|
204
|
-
homepage: http://github.com/
|
227
|
+
homepage: http://github.com/asciidoctor
|
205
228
|
licenses: []
|
206
229
|
post_install_message:
|
207
230
|
rdoc_options:
|
@@ -214,6 +237,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
237
|
- - ! '>='
|
215
238
|
- !ruby/object:Gem::Version
|
216
239
|
version: '0'
|
240
|
+
segments:
|
241
|
+
- 0
|
242
|
+
hash: 789385371494558772
|
217
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
244
|
none: false
|
219
245
|
requirements:
|
@@ -230,14 +256,16 @@ test_files:
|
|
230
256
|
- test/attributes_test.rb
|
231
257
|
- test/blocks_test.rb
|
232
258
|
- test/document_test.rb
|
233
|
-
- test/
|
259
|
+
- test/invoker_test.rb
|
234
260
|
- test/lexer_test.rb
|
235
261
|
- test/links_test.rb
|
236
262
|
- test/lists_test.rb
|
263
|
+
- test/options_test.rb
|
237
264
|
- test/paragraphs_test.rb
|
238
265
|
- test/preamble_test.rb
|
239
266
|
- test/reader_test.rb
|
240
267
|
- test/renderer_test.rb
|
268
|
+
- test/sections_test.rb
|
241
269
|
- test/substitutions_test.rb
|
242
270
|
- test/tables_test.rb
|
243
271
|
- test/text_test.rb
|
data/noof.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'ap'
|
3
|
-
require_relative 'lib/asciidoctor'
|
4
|
-
|
5
|
-
lines = File.readlines("test/fixtures/asciidoc_index.txt")
|
6
|
-
#lines = File.read("test/fixtures/asciidoc_index.txt")
|
7
|
-
doc = Asciidoctor::Document.new(lines)
|
8
|
-
doc.splain
|
9
|
-
|
10
|
-
foo = doc.render
|
11
|
-
|
12
|
-
puts foo
|
13
|
-
|
14
|
-
File.open("/tmp/noof.html", "w+") do |file|
|
15
|
-
file.puts foo
|
16
|
-
end
|