Commit f874c67f by Weston Triemstra

restore rakefile

parent 8eee1a70
require 'rubygems'
require 'rake' require 'rake'
require 'lib/annotate' require File.dirname(__FILE__) + '/lib/annotate'
# want other tests/tasks run by default? Add them to the list # want other tests/tasks run by default? Add them to the list
task :default => [:spec] task :default => [:spec]
...@@ -8,39 +7,43 @@ task :default => [:spec] ...@@ -8,39 +7,43 @@ task :default => [:spec]
begin begin
require 'jeweler' require 'jeweler'
Jeweler::Tasks.new do |gem| Jeweler::Tasks.new do |gem|
gem.name = "annotate" gem.name = "netsign-annotate"
gem.executables = "annotate" gem.executables = "annotate"
gem.summary = "Annotates Rails Models, routes, fixtures, and others based on the database schema." gem.summary = "Annotates Rails Models, routes, fixtures, and others based on the database schema."
gem.description = gem.summary gem.description = "Packaged for netSIGN, gem experimentation"
gem.email = ["alex@stinky.com", 'ctran@pragmaquest.com', "x@nofxx.com"] gem.email = ["alex@stinky.com", 'ctran@pragmaquest.com', "x@nofxx.com"]
gem.homepage = "http://github.com/ctran/annotate" gem.homepage = "https://github.com/miyucy/annotate_models"
gem.authors = ['Cuong Tran', "Alex Chaffee", "Marcos Piccinini"] gem.authors = ['Cuong Tran', "Alex Chaffee", "Marcos Piccinini"]
gem.files = FileList["[A-Z]*.*", "{bin,lib,tasks,spec}/**/*"] gem.files = FileList["[A-Z]*.*", "{bin,lib,tasks,spec}/**/*"]
gem.rubyforge_project = "annotate" gem.rubyforge_project = "netsign-annotate"
# note that Jeweler automatically reads the version from VERSION.yml # note that Jeweler automatically reads the version from VERSION.yml
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end end
# Jeweler::RubyforgeTasks.new do |rubyforge|
# rubyforge.doc_task = "rdoc"
# end
Jeweler::RubyforgeTasks.new do |rubyforge| Jeweler::GemcutterTasks.new
rubyforge.doc_task = "rdoc"
end
rescue LoadError rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end end
require 'spec/rake/spectask' # Dir["#{File.dirname(__FILE)}/tasks/*.rake"].sort.each { |ext| load ext }
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end
Spec::Rake::SpecTask.new(:rcov) do |spec| # require 'spec/rake/spectask'
spec.libs << 'lib' << 'spec' # Spec::Rake::SpecTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb' # spec.libs << 'lib' << 'spec'
spec.rcov = true # spec.spec_files = FileList['spec/**/*_spec.rb']
end # end
#
# Spec::Rake::SpecTask.new(:rcov) do |spec|
# spec.libs << 'lib' << 'spec'
# spec.pattern = 'spec/**/*_spec.rb'
# spec.rcov = true
# end
require 'rake/rdoctask' require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc| Rake::RDocTask.new do |rdoc|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment