require-me 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/folder/magic.rb +2 -2
- metadata +3 -3
data/lib/folder/magic.rb
CHANGED
@@ -59,7 +59,7 @@ module Folder
|
|
59
59
|
|
60
60
|
|
61
61
|
def require_all(*folders)
|
62
|
-
return require_all_here(folders[0]) if folders.size == 1 && folders[0] =~
|
62
|
+
return require_all_here(folders[0]) if folders.size == 1 && folders[0] =~ /.rb$/
|
63
63
|
relative = {:relative_to => relative_path || ''}
|
64
64
|
relative = folders.pop if folders && !folders.empty? && folders.last.kind_of?(Hash)
|
65
65
|
|
@@ -82,7 +82,7 @@ module Folder
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def require_all_recursive(*folders)
|
85
|
-
return require_all_here(folders[0]) if folders.size == 1 && folders[0] =~
|
85
|
+
return require_all_here(folders[0]) if folders.size == 1 && folders[0] =~ /.rb$/
|
86
86
|
relative = {:relative_to => relative_path || ''}
|
87
87
|
relative = folders.pop if folders && !folders.empty? && folders.last.kind_of?(Hash)
|
88
88
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 6
|
9
|
+
version: 0.7.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kristian Mandrup
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-30 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|