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: c248958b8c7d4683bb64446558b9846c182c7b89
4
- data.tar.gz: cc9fa458990652a3103b9bb9b00b8e6cb86235fb
3
+ metadata.gz: da10c03a7f12fb025a7db239f90eb3f64048b539
4
+ data.tar.gz: 78ee42c083c248f85c70acd89b45943fb501d103
5
5
  SHA512:
6
- metadata.gz: e1f2f283abe8ea344d31d0eb9f2ad9a2afb324a5b02a2ac1cf3b0ae8806797dfa093efc78e80468a2ecc755f913b4247b62b0ffd3ed6419566ea96a309496801
7
- data.tar.gz: 7c515980591c1c681066003eaa1a8b16991fb4eec78442c1718400c4146b1df1b3264fed9affdf4b7e935518fdceb5dfe77ec41fada6f1cf567792606863f11c
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: 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(method_path, title: title)
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 method_path
331
- Pathname(Method.create("##{match}", context: ruby_class).to_proc.source_location.first+"##{match}")
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
@@ -1,3 +1,3 @@
1
1
  module MarkdownRubyDocumentation
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.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.7.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-05 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: method_source