forked from skinandbones/rack-gridfs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Jeweler tasks and slight test reorganization.
- Loading branch information
Blake Carlson
committed
Sep 22, 2009
1 parent
d850fca
commit c926f05
Showing
3 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,67 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
|
||
task :default => :test | ||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "rack-gridfs" | ||
gem.summary = "Rack middleware for creating HTTP endpoints for files stored in GridFS" | ||
gem.description = "TODO" | ||
gem.email = "blake@coin-operated.net" | ||
gem.homepage = "http://github.com/skinandbones/rack-gridfs" | ||
gem.authors = ["Blake Carlson"] | ||
gem.rubyforge_project = "rack-gridfs" | ||
|
||
gem.add_dependency('rack') | ||
gem.add_dependency('activesupport') | ||
gem.add_dependency('mongodb-mongo', '0.14') | ||
|
||
gem.add_development_dependency('mocha', '0.9.4') | ||
gem.add_development_dependency('rack-test') | ||
gem.add_development_dependency('thoughtbot-shoulda') | ||
end | ||
|
||
Jeweler::RubyforgeTasks.new do |rubyforge| | ||
rubyforge.doc_task = "rdoc" | ||
end | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" | ||
end | ||
|
||
require 'rake/testtask' | ||
Rake::TestTask.new(:test) do |test| | ||
# test.libs << 'lib' << 'test' | ||
test.libs << 'lib' << 'test' | ||
test.pattern = 'test/**/*_test.rb' | ||
test.verbose = true | ||
end | ||
|
||
begin | ||
require 'rcov/rcovtask' | ||
Rcov::RcovTask.new do |test| | ||
test.libs << 'test' | ||
test.pattern = 'test/**/*_test.rb' | ||
test.verbose = true | ||
end | ||
rescue LoadError | ||
task :rcov do | ||
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" | ||
end | ||
end | ||
|
||
task :test => :check_dependencies | ||
|
||
task :default => :test | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
if File.exist?('VERSION') | ||
version = File.read('VERSION') | ||
else | ||
version = "" | ||
end | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "Rack::GridFS 0.0.1" | ||
rdoc.title = "Rack::GridFS #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters