Skip to content

Commit

Permalink
Rakefile: make bundler support optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Delugré committed Jun 17, 2018
1 parent 9df72ca commit 4aac5de
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# encoding: UTF-8

require 'bundler' rescue 'You must `gem install bundler` and `bundle install` to run rake tasks'
Bundler.setup
Bundler::GemHelper.install_tasks
# Optionally install bundler tasks if present.
begin
require 'bundler'

Bundler.setup
Bundler::GemHelper.install_tasks
rescue LoadError
end

require 'rdoc/task'
require 'rake/testtask'
Expand Down

0 comments on commit 4aac5de

Please sign in to comment.