rdepend 0.0.11 → 0.0.12

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: e04734afda745cabee786b3ce4e99763babca96c
4
- data.tar.gz: ddf5fada3ed41758aeb9f89fa0e222790a4379e4
3
+ metadata.gz: 8bb261dfe8458a3ffd28e08b2ae641d9f57a8b42
4
+ data.tar.gz: a367901e57229cd1c9d9128ebfbff8d1f5672088
5
5
  SHA512:
6
- metadata.gz: 87489776dba8aee0eadc71f2afd2f2c34bdb4f389576e772895a9e6023534903d57b54dfd0ad4f8ef2b2b62469c0f8649ad4b8ed7b68823c50640eed729ebf30
7
- data.tar.gz: 5688ee4698c695aad94d17518c1ba54b0375ba28459f4b6b98a939f3649ad77dc185deea8ab5effb2d9f091f5f4b316e334050d836631bcfa120a9ef7277a733
6
+ metadata.gz: a2163e81c1da178f3e4a86298c7f62ba8b47b773d71b71c5c6b85b5ded64edfd0b2bdfb8d716e111abec33d1b8ebcabee80297612c574cd72af159fba6694a2a
7
+ data.tar.gz: 85f8a4102e006746eca97724fd33a6f87f40c8143c63f75b6ea83fc3b6ea72179041b1a299be191d51bcb0b42df971413aefc994c0c220f43271461869632d2b
@@ -15,8 +15,12 @@ module RubyProf
15
15
  i = 0
16
16
  while i < methods.size
17
17
  method_info = methods[i]
18
- source = method_info.source_file
19
- match = paths.any? { |path| source.start_with?(path) }
18
+ parent = method_info.parents.first
19
+ sources = [method_info.source_file]
20
+ sources << parent.target.source_file unless parent.nil?
21
+ match = paths.any? do |path|
22
+ sources.any? { |source| source.start_with?(path) }
23
+ end
20
24
  if match || method_info.root?
21
25
  i += 1
22
26
  else
@@ -1,3 +1,3 @@
1
1
  module Rdepend
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdepend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - jarra