markdown_ruby_documentation 0.20.1 → 0.20.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7f43fcb5ea3295a31c893e57a1140942a84da75
4
- data.tar.gz: bd12fd45554aaf6e89c28e8eca2a9d05b8d1617f
3
+ metadata.gz: a6dfcca51c06892aecf2b21ed0ebc2990b5ecf9a
4
+ data.tar.gz: f33ca187bb9c49faf504ff50b21f118183b6a8d3
5
5
  SHA512:
6
- metadata.gz: a95c4c33ee2ad473cdbb6b9af909206b51387a3b3bc992257baedd7169feb9f72fb689e9c92b385a4a0ee734c8e9edd0889d0214a08600063053a99105b4cfce
7
- data.tar.gz: 8d7edd88ab7921318a097fb12b53be784beda084fb3d54c9e67acb5e844d7df0690119fa6f78ccfba571a169f1be4ddb295591e53de7524afecd393a30d34f49
6
+ metadata.gz: e1b8645d4b2178ea543083bd72dfba5390de5e48e0331949bf188c5d014d9fa848fec25949d61da79a38379d370da3e9b79775157e87ba8ca3a2aab593e96634
7
+ data.tar.gz: f213dc69ceb6592eda622c7b2560e6179ef61faa444fcb3baffe421ce595d3e4be3a55fc0d49df6cb661f586cd20a81dcf4b98b862d16937239c77bae506da3f
@@ -8,11 +8,10 @@ module MarkdownRubyDocumentation
8
8
 
9
9
  def call(interface)
10
10
  _method = interface.reject do |_, meth|
11
- meth[:source_location] = meth[:method_object].to_proc.source_location
12
- meth[:method_object].is_a?(NullMethod) || meth[:method_object].visibility != :native || meth[:source_location].first.include?(RUBY_VERSION)
11
+ meth[:method_object].is_a?(NullMethod) || meth[:method_object].visibility != :native || meth[:method_object].to_proc.source_location.first.include?(RUBY_VERSION)
13
12
  end.first
14
13
  if _method
15
- filename, lineno = _method[1][:source_location]
14
+ filename, lineno = _method[1][:method_object].to_proc.source_location
16
15
  comment = extract_dsl_comment(strip_comment_hash(comment(filename, lineno)+"\n"))
17
16
  interface[:class_level_comment] = { text: comment }
18
17
  end
@@ -1,3 +1,3 @@
1
1
  module MarkdownRubyDocumentation
2
- VERSION = "0.20.1"
2
+ VERSION = "0.20.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_ruby_documentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler