diff options
Diffstat (limited to 'activemodel/Rakefile')
-rwxr-xr-x | activemodel/Rakefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/activemodel/Rakefile b/activemodel/Rakefile index f098ce0671..14c02f183f 100755 --- a/activemodel/Rakefile +++ b/activemodel/Rakefile @@ -32,13 +32,13 @@ require 'rake/rdoctask' # Generate the RDoc documentation Rake::RDocTask.new do |rdoc| - rdoc.rdoc_dir = "#{dir}/doc" + rdoc.rdoc_dir = "doc" rdoc.title = "Active Model" rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object' rdoc.options << '--charset' << 'utf-8' rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : '../doc/template/horo' - rdoc.rdoc_files.include("#{dir}/README", "#{dir}/CHANGES") - rdoc.rdoc_files.include("#{dir}/lib/**/*.rb") + rdoc.rdoc_files.include("README", "CHANGELOG") + rdoc.rdoc_files.include("lib/**/*.rb") end @@ -50,3 +50,10 @@ spec = eval(File.read("#{dir}/activemodel.gemspec")) Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec end + +desc "Release to gemcutter" +task :release => :package do + require 'rake/gemcutter' + Rake::Gemcutter::Tasks.new(spec).define + Rake::Task['gem:push'].invoke +end |