markdown_ruby_documentation 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dba33bb5c3fff6c22a90b0b5c0accc098d41accf
|
|
4
|
+
data.tar.gz: 0256afefd071554a0eab63f9b71f11af5acfd030
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65a66a55cb24015ae47b7e6bbcce892d1bef715e68963a66f2d0b540449fee067edf00b263b9beb3c40a0ea89ee662aec99b2a6485728ad47640fce934ecf98c
|
|
7
|
+
data.tar.gz: a6a8396d635b10756dcf93a65e7af4abfaf41e2023328b499b80144ec7309e362bcc1c6cedbf3ca4534776babad06fcb6fe33b86eae7bf7b372301eabd0bae9e
|
|
@@ -420,10 +420,11 @@ module MarkdownRubyDocumentation
|
|
|
420
420
|
|
|
421
421
|
def ruby_if_statement_to_md(ruby_source, proc: false)
|
|
422
422
|
conversions = {
|
|
423
|
-
/elsif(.*)/
|
|
424
|
-
/^\s?if(.*)/ => "* __If__\\1\n__Then__",
|
|
425
|
-
|
|
426
|
-
|
|
423
|
+
/elsif(.*)/ => "* __Else If__\\1\n__Then__",
|
|
424
|
+
/^\s?if(.*)\s([|&]{0,2})\n(.*)/ => "* __If__\\1 \\2 \\3\n__Then__",
|
|
425
|
+
/^\s?if(.*)/ => "* __If__\\1\n__Then__",
|
|
426
|
+
/unless(.*)/ => "* __Unless__\\1\n__Then__",
|
|
427
|
+
"else" => "* __Else__"
|
|
427
428
|
}
|
|
428
429
|
gsub_replacement(ruby_source, conversions, proc: proc)
|
|
429
430
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: markdown_ruby_documentation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.16.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dustin Zeisler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-02-
|
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: method_source
|