markdown_ruby_documentation 0.20.0 → 0.20.1

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: 3fcb7356d7e09284ecb22ea0937bf0fb4c8f1751
4
- data.tar.gz: 9ab4ecee4c4c655610757083c39484faf7c8a935
3
+ metadata.gz: e7f43fcb5ea3295a31c893e57a1140942a84da75
4
+ data.tar.gz: bd12fd45554aaf6e89c28e8eca2a9d05b8d1617f
5
5
  SHA512:
6
- metadata.gz: d05a9bc000e5c6ee10f20646b05161aa08fa118e17c51d3ce6e78533508e488a9b9d2fe87a4e7a399b582182ebb8e6e19ecbe843b9bbd60105240ef039d477e8
7
- data.tar.gz: 246aba9398a76d322cf919b013179959800b8b5a9d14f1ce27bbf350dbb16f4987cb0086ec94d7e961b2868aabef5f6cd32ba60dca4df9be4205da22fb29b721
6
+ metadata.gz: a95c4c33ee2ad473cdbb6b9af909206b51387a3b3bc992257baedd7169feb9f72fb689e9c92b385a4a0ee734c8e9edd0889d0214a08600063053a99105b4cfce
7
+ data.tar.gz: 8d7edd88ab7921318a097fb12b53be784beda084fb3d54c9e67acb5e844d7df0690119fa6f78ccfba571a169f1be4ddb295591e53de7524afecd393a30d34f49
@@ -8,10 +8,11 @@ module MarkdownRubyDocumentation
8
8
 
9
9
  def call(interface)
10
10
  _method = interface.reject do |_, meth|
11
- meth[:method_object].is_a?(NullMethod) || meth[:method_object].visibility != :native
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)
12
13
  end.first
13
14
  if _method
14
- filename, lineno = _method[1][:method_object].to_proc.source_location
15
+ filename, lineno = _method[1][:source_location]
15
16
  comment = extract_dsl_comment(strip_comment_hash(comment(filename, lineno)+"\n"))
16
17
  interface[:class_level_comment] = { text: comment }
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module MarkdownRubyDocumentation
2
- VERSION = "0.20.0"
2
+ VERSION = "0.20.1"
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.0
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler