grape-dsl 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/grape-dsl/doc.rb +6 -15
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjlhZjk1ZTg5NjY1MmRjMjBiZTkxNTJjNmMzOGFlNGY5MjllNTdiZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzRlM2RmNGFiNGM3MDlkMmIwYTMyZmMzOThjOWI2NGI0ZTczZGI3NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDJjNmNlODg4NTM1ZmU0MTFhZjY5MWIxYTFiNjExODVjYzg0YmVhMDAyMmMx
|
10
|
+
MGI4MjAwM2RiZTNjYWY3MDZmZTA3ZTkyNWEzYTM0ZDhlODNmMjY2NWYxM2Yx
|
11
|
+
MmM5MDgyMDI3NDEwMGEzZTI3ODg3ZGNhZDAyOTdiNTcyZWU0Zjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTQ0MjE5OTkxMGZiNGI3ZGFmY2ZhZDcyNjliYzk1NzljOWQ4NWUzYTRhMDU4
|
14
|
+
ZjM4YTk5NmZhOTZmNDAxYzZkZDI4ODliNTliYmU5YjMyYzY2ODc5MWZkZTgy
|
15
|
+
NmQ3Yzk0OGFiMjBjZDhkZTBjMWU5YjFlMzRiMGNjMzkwMTRkZWU=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/grape-dsl/doc.rb
CHANGED
@@ -291,6 +291,8 @@ module Grape
|
|
291
291
|
container_markup_end= "\">"
|
292
292
|
container_markup_close= "</code></pre>"
|
293
293
|
|
294
|
+
toc_mark= "\n{{>toc}}\n"
|
295
|
+
|
294
296
|
end
|
295
297
|
|
296
298
|
when "github","wiki","md"
|
@@ -312,6 +314,7 @@ module Grape
|
|
312
314
|
container_markup_begin= "```"
|
313
315
|
container_markup_end= ""
|
314
316
|
container_markup_close= "```"
|
317
|
+
toc_mark= ""
|
315
318
|
|
316
319
|
end
|
317
320
|
|
@@ -325,32 +328,20 @@ module Grape
|
|
325
328
|
# site name
|
326
329
|
begin
|
327
330
|
write_out_array = Array.new
|
328
|
-
write_out_array.push "#{hheader}
|
329
|
-
write_out_array.push "#{mheader}REST application routes:\n"
|
331
|
+
write_out_array.push "#{hheader}#{$0} REST Interface Documentation\n\n"
|
330
332
|
end
|
331
333
|
|
332
|
-
|
333
334
|
# description
|
334
335
|
begin
|
335
|
-
write_out_array.push "#{sheader}this is the documentation for #{$0} rest calls\n\n"+
|
336
|
-
" the main function is to create a control layer to the database,\n"+
|
337
|
-
"with interactive commands, that can handle multiple way from ask requests,\n"+
|
338
|
-
"like regexp search by string, or different parameters for an array ask,\n"+
|
339
|
-
"relation connection handle.\n\n"+
|
340
|
-
" The calls input are the parameters, the description tells what does it do,\n"+
|
341
|
-
"like read from db, create in the db or update in the db by xy params, and how.\n"
|
342
|
-
|
343
336
|
args[:desc_files].each do |extra_desc_file_path|
|
344
337
|
write_out_array.push "#{sheader}#{extra_desc_file_path.split(File::Separator).last.split('.')[0].downcase.capitalize}\n"
|
345
|
-
write_out_array.push "
|
346
|
-
write_out_array.push File.open(extra_desc_file_path,"r").read
|
347
|
-
write_out_array.push "</pre>\n"
|
338
|
+
write_out_array.push " "+File.open(extra_desc_file_path,"r").read
|
348
339
|
end
|
349
340
|
end
|
350
341
|
|
351
342
|
# table of contents
|
352
343
|
begin
|
353
|
-
write_out_array.push
|
344
|
+
write_out_array.push toc_mark
|
354
345
|
end
|
355
346
|
|
356
347
|
# classes array
|