load_path_find 0.0.3 → 0.0.4

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.
Files changed (4) hide show
  1. data/README.rdoc +3 -1
  2. data/VERSION +1 -1
  3. data/lib/load_path_find.rb +1 -1
  4. metadata +1 -1
data/README.rdoc CHANGED
@@ -24,4 +24,6 @@ And now, even more awesome!
24
24
 
25
25
  > $LOAD_PATH.add_current!
26
26
 
27
- .. adds the current path to the start of the <tt>$LOAD_PATH</tt>
27
+ .. adds the current path to the start of the <tt>$LOAD_PATH</tt>
28
+
29
+ And one more clever trick, <tt>Kernel#require_all</tt>, lets you require all matching files.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -29,6 +29,6 @@ end
29
29
 
30
30
  module Kernel
31
31
  def require_all(req)
32
- $LOAD_PATH.find_all_files("#{req}.rb") { |file| require file }
32
+ $LOAD_PATH.find_all_files(File.extname(req) == '.rb' ? req : "#{req}.rb") { |file| require file }
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: load_path_find
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hull