require 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/require.rb +7 -1
- data/require.rb +1 -1
- metadata +2 -2
data/lib/require.rb
CHANGED
@@ -84,7 +84,13 @@ class Require
|
|
84
84
|
clean_caller(c)[0..r.length-1] == r
|
85
85
|
end
|
86
86
|
end
|
87
|
-
|
87
|
+
if root
|
88
|
+
root
|
89
|
+
elsif defined?(::Rake)
|
90
|
+
Rake.original_dir
|
91
|
+
else
|
92
|
+
raise("You have not executed a Require block (Require not configured)")
|
93
|
+
end
|
88
94
|
end
|
89
95
|
end
|
90
96
|
|
data/require.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: require
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Winton Welsh
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-13 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|