Skip to content

Commit 41aaa01

Browse files
committed
Use Bundler in the Rakefile.
1 parent 19b090c commit 41aaa01

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Rakefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
require 'rubygems'
2+
3+
begin
4+
require 'bundler/setup'
5+
rescue LoadError => e
6+
warn e.message
7+
warn "Run `gem install bundler` to install Bundler"
8+
exit -1
9+
end
10+
111
#
212
# Setup
313
#
@@ -45,10 +55,7 @@ task :install => [ 'redis:install', 'dtach:install' ]
4555
# Documentation
4656
#
4757

48-
begin
49-
require 'sdoc_helpers'
50-
rescue LoadError
51-
end
58+
require 'sdoc_helpers'
5259

5360

5461
#

0 commit comments

Comments
 (0)