Skip to content

Commit eb5dc03

Browse files
Andrew Dupontsavetheclocktower
authored andcommitted
Rakefile fixes.
* Mixin `Rake::DSL` into our helper module, thus getting rid of the annoying warning from rake. * Update the voodoo we use to recover from a LoadError, since the error message appears to have changed from 1.8 to 1.9.
1 parent a6aca89 commit eb5dc03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ require 'rake/packagetask'
33
require 'yaml'
44

55
module PrototypeHelper
6+
extend Rake::DSL
7+
68
ROOT_DIR = File.expand_path(File.dirname(__FILE__))
79
SRC_DIR = File.join(ROOT_DIR, 'src')
810
DIST_DIR = File.join(ROOT_DIR, 'dist')
@@ -197,7 +199,7 @@ EOF
197199
# Wait until we notice that a submodule is missing before we bother the
198200
# user about installing git. (Maybe they brought all the files over
199201
# from a different machine.)
200-
missing_file = e.message.sub('no such file to load -- ', '')
202+
missing_file = e.message.sub('no such file to load -- ', '').sub('cannot load such file -- ', '')
201203
if missing_file == path
202204
# Missing a git submodule.
203205
retry if get_submodule(name, path)

0 commit comments

Comments
 (0)