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: a1d717ca1c2babc24118a8d4565de546bea6e0f4
4
- data.tar.gz: 68b836574cd9a8a98eceb97845d8ad7bbf29fdaa
3
+ metadata.gz: dba33bb5c3fff6c22a90b0b5c0accc098d41accf
4
+ data.tar.gz: 0256afefd071554a0eab63f9b71f11af5acfd030
5
5
  SHA512:
6
- metadata.gz: a80b44e1d1da04d866b508f28110e175355e974d1dd0877c2c90b9c514a21aaa73a9b6ed7ac2bc13b625a1c91eb2fb8b7c0c5df9acc9bcb0aa5b82a88a15beef
7
- data.tar.gz: 0ff9d8458ebd4e53509b2df0535151fdd702daa722d83da68549ec97ac21979eded66de1d219865b620463df31caa6ee49f2371836ce7be1751f9a2bf3b8e9a7
6
+ metadata.gz: 65a66a55cb24015ae47b7e6bbcce892d1bef715e68963a66f2d0b540449fee067edf00b263b9beb3c40a0ea89ee662aec99b2a6485728ad47640fce934ecf98c
7
+ data.tar.gz: a6a8396d635b10756dcf93a65e7af4abfaf41e2023328b499b80144ec7309e362bcc1c6cedbf3ca4534776babad06fcb6fe33b86eae7bf7b372301eabd0bae9e
@@ -43,7 +43,7 @@ module MarkdownRubyDocumentation
43
43
  unless lineno.nil?
44
44
  str << "#L#{lineno}"
45
45
  end
46
- str.chomp
46
+ str.chomp.gsub("https://github.com///github.com/", "https://github.com/")
47
47
  end
48
48
 
49
49
  def blob(file)
@@ -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(.*)/ => "* __Else If__\\1\n__Then__",
424
- /^\s?if(.*)/ => "* __If__\\1\n__Then__",
425
- /unless(.*)/ => "* __Unless__\\1\n__Then__",
426
- "else" => "* __Else__"
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
@@ -1,3 +1,3 @@
1
1
  module MarkdownRubyDocumentation
2
- VERSION = "0.15.0"
2
+ VERSION = "0.16.0"
3
3
  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.15.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-07 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: method_source