reverse-require 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/reverse_require/extensions/rubygems.rb +7 -5
- data/lib/reverse_require/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -12,11 +12,13 @@ module Gem
|
|
12
12
|
version = nil
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
deps = Gem.source_index.find_name(gem,version)
|
16
|
+
|
17
|
+
deps.inject([]) do |paths,dep|
|
18
|
+
paths + dep.dependent_gems.map { |deps|
|
19
|
+
Gem.searcher.matching_files deps.first, path
|
20
|
+
}.flatten
|
21
|
+
end
|
20
22
|
end
|
21
23
|
|
22
24
|
#
|