Skip to content

Commit

Permalink
Support non-bundler environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 7, 2018
1 parent 1863540 commit 5ac709b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require "bundler/gem_tasks"
require "rake/testtask"
require "rdoc/task"
begin
require "bundler/gem_tasks"
rescue LoadError
end

require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.verbose = true
t.test_files = FileList["test/**/test_*.rb"]
end

require "rdoc/task"
RDoc::Task.new do |doc|
doc.main = "README.rdoc"
doc.title = "Rake -- Ruby Make"
Expand Down

0 comments on commit 5ac709b

Please sign in to comment.