Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (30 sloc) 0.902 kB
7109e06 @ches Fix Rack::GridFS::Endpoint instantiated directly having no mapper
ches authored
1 require 'bundler/setup'
3a6d99d @ches Use Bundler, ditch Jeweler
ches authored
2 Bundler::GemHelper.install_tasks
4f531c8 @skinandbones Initial commit.
authored
3
4 require 'rake/testtask'
5 Rake::TestTask.new(:test) do |test|
c926f05 @skinandbones Added Jeweler tasks and slight test reorganization.
authored
6 test.libs << 'lib' << 'test'
fd27ad0 @skinandbones Reorganization of tests.
authored
7 test.pattern = 'test/**/*_test.rb'
4f531c8 @skinandbones Initial commit.
authored
8 test.verbose = true
9 end
d850fca @skinandbones Updated the README and added an rdoc task.
authored
10
c926f05 @skinandbones Added Jeweler tasks and slight test reorganization.
authored
11 begin
12 require 'rcov/rcovtask'
13 Rcov::RcovTask.new do |test|
14 test.libs << 'test'
2e2e321 @ches RCov options
ches authored
15 test.test_files = FileList['test/**/*_test.rb']
c926f05 @skinandbones Added Jeweler tasks and slight test reorganization.
authored
16 test.verbose = true
2e2e321 @ches RCov options
ches authored
17 test.rcov_opts << '--exclude /gems/,/Library/,/usr/,spec,lib/tasks'
c926f05 @skinandbones Added Jeweler tasks and slight test reorganization.
authored
18 end
19 rescue LoadError
20 task :rcov do
3a6d99d @ches Use Bundler, ditch Jeweler
ches authored
21 abort "RCov is not available. In order to run rcov, you must: gem install rcov"
c926f05 @skinandbones Added Jeweler tasks and slight test reorganization.
authored
22 end
23 end
24
25 task :default => :test
26
d850fca @skinandbones Updated the README and added an rdoc task.
authored
27 require 'rake/rdoctask'
28 Rake::RDocTask.new do |rdoc|
652ae6b Isolate version from the rest of the lib so it can be read without
Ben Marini authored
29 require File.expand_path("../lib/rack/gridfs/version", __FILE__)
c926f05 @skinandbones Added Jeweler tasks and slight test reorganization.
authored
30
d850fca @skinandbones Updated the README and added an rdoc task.
authored
31 rdoc.rdoc_dir = 'rdoc'
3a6d99d @ches Use Bundler, ditch Jeweler
ches authored
32 rdoc.title = "Rack::GridFS #{Rack::GridFS::VERSION}"
4cced1f @ches Changelog
ches authored
33 rdoc.rdoc_files.include(%w[ README* CHANGES* ])
d850fca @skinandbones Updated the README and added an rdoc task.
authored
34 rdoc.rdoc_files.include('lib/**/*.rb')
35 end
Something went wrong with that request. Please try again.