markdown_ruby_documentation 0.7.0 → 0.8.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: da10c03a7f12fb025a7db239f90eb3f64048b539
|
|
4
|
+
data.tar.gz: 78ee42c083c248f85c70acd89b45943fb501d103
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f63f39ef70eec9ad9c8c26e0b5a39800fe8e44ea74dd0b13eb960b10d843767d5acdbe8338d4b5ad25ef48a942cf8fa44cdcd99990fb85284f3e6aab009060e
|
|
7
|
+
data.tar.gz: 494a8f0a5d00dc2e27b3624e398afc09c9467d3a04ef7bf1fb08b8b4dc7e1c52332b9fa0c7536f8596cd680d8eda07c4932a8ca3087bab7037566f62e7af87ec
|
|
@@ -177,7 +177,7 @@ module MarkdownRubyDocumentation
|
|
|
177
177
|
gsub_replacement(source_code, conversions, proc: proc)
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
-
def remove_colons(source_code=print_method_source, proc:
|
|
180
|
+
def remove_colons(source_code=print_method_source, proc: false)
|
|
181
181
|
conversions = {
|
|
182
182
|
":" => ''
|
|
183
183
|
}
|
|
@@ -299,7 +299,7 @@ module MarkdownRubyDocumentation
|
|
|
299
299
|
if constant_override
|
|
300
300
|
constant_override_method_path
|
|
301
301
|
else
|
|
302
|
-
link = link_to_markdown.call(
|
|
302
|
+
link = link_to_markdown.call(method_name, title: title, _ruby_class: method_owner)
|
|
303
303
|
if link == :non_project_location
|
|
304
304
|
match
|
|
305
305
|
else
|
|
@@ -327,8 +327,12 @@ module MarkdownRubyDocumentation
|
|
|
327
327
|
@constant_override ||= method_to_class[match.to_sym]
|
|
328
328
|
end
|
|
329
329
|
|
|
330
|
-
def
|
|
331
|
-
|
|
330
|
+
def method_name
|
|
331
|
+
"##{match}"
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
def method_owner
|
|
335
|
+
Method.create(method_name, context: ruby_class).to_proc.owner
|
|
332
336
|
end
|
|
333
337
|
|
|
334
338
|
def constant_override_method_path
|
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.8.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: 2016-08-
|
|
11
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: method_source
|