Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated rakefile

  • Loading branch information...
commit e0e8471c88eee0efecab01a9600e22acff73c949 1 parent 6dfc4a5
Delano Mandelbaum authored
Showing with 7 additions and 32 deletions.
  1. +7 −32 Rakefile
39 Rakefile
View
@@ -3,15 +3,11 @@ require "rake"
require "rake/clean"
require 'yaml'
-begin
- require 'hanna/rdoctask'
-rescue LoadError
- require 'rake/rdoctask'
-end
-
+require 'rdoc/task'
+
config = YAML.load_file("VERSION.yml")
task :default => ["build"]
-CLEAN.include [ 'pkg', 'doc' ]
+CLEAN.include [ 'pkg', 'rdoc' ]
name = "gibbler"
begin
@@ -20,22 +16,20 @@ begin
gem.version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}"
gem.name = name
gem.rubyforge_project = gem.name
- gem.summary = "Gibbler: Git-like hashes for Ruby objects"
- gem.description = gem.summary
+ gem.summary = "Git-like hashes for Ruby objects"
+ gem.description = "Git-like hashes for Ruby objects"
gem.email = "delano@solutious.com"
gem.homepage = "http://github.com/delano/gibbler"
gem.authors = ["Delano Mandelbaum"]
- gem.add_dependency("attic", ">= 0.4.0")
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
-
-Rake::RDocTask.new do |rdoc|
+RDoc::Task.new do |rdoc|
version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}"
- rdoc.rdoc_dir = "doc"
+ rdoc.rdoc_dir = "rdoc"
rdoc.title = "#{name} #{version}"
rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("LICENSE.txt")
@@ -43,22 +37,3 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include("lib/**/*.rb")
end
-
-# Rubyforge Release / Publish Tasks ==================================
-
-#about 'Publish website to rubyforge'
-task 'publish:rdoc' => 'doc/index.html' do
- #sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/#{name}/"
-end
-
-#about 'Public release to rubyforge'
-task 'publish:gem' => [:package] do |t|
- sh <<-end
- rubyforge add_release -o Any -a CHANGES.txt -f -n README.md #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.gem &&
- rubyforge add_file -o Any -a CHANGES.txt -f -n README.md #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.tgz
- end
-end
-
-
-
-
Please sign in to comment.
Something went wrong with that request. Please try again.