require 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/require.rb +7 -1
  2. data/require.rb +1 -1
  3. 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
- root ? root : raise("You have not executed a Require block (Require not configured)")
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
@@ -11,7 +11,7 @@ Require do
11
11
  name 'require'
12
12
  homepage "http://github.com/winton/#{name}"
13
13
  summary "Manage your project's dependencies with a pretty DSL"
14
- version '0.2.1'
14
+ version '0.2.2'
15
15
  end
16
16
 
17
17
  rakefile do
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.1
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-06 00:00:00 -08:00
12
+ date: 2010-02-13 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15