reverse-require 0.3.0 → 0.3.1

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.
@@ -1,3 +1,8 @@
1
+ === 0.3.1 / 2009-01-08
2
+
3
+ * Fixed the behavior of Gem.find_files_for when the specified _gem_ is not
4
+ loaded.
5
+
1
6
  === 0.3.0 / 2009-01-08
2
7
 
3
8
  * Added Kernel#require_for.
@@ -12,11 +12,13 @@ module Gem
12
12
  version = nil
13
13
  end
14
14
 
15
- dep = Gem.source_index.find_name(gem,version).first
16
-
17
- dep.dependent_gems.map { |deps|
18
- Gem.searcher.matching_files deps.first, path
19
- }.flatten
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
  #
@@ -1,3 +1,3 @@
1
1
  module ReverseRequire
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reverse-require
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern