Rakefile in usher-0.4.8 vs Rakefile in usher-0.5.1
- old
+ new
@@ -7,13 +7,16 @@
s.description = s.summary = "A general purpose routing library"
s.email = "joshbuddy@gmail.com"
s.homepage = "http://github.com/joshbuddy/usher"
s.authors = ["Joshua Hull"]
s.files = FileList["[A-Z]*", "{lib,spec,rails}/**/*"]
- s.add_dependency 'fuzzyhash', '>=0.0.3'
- s.rubyforge_project = 'joshbuddy-usher' # This line would be new
+ s.add_dependency 'fuzzyhash', '>=0.0.6'
+ s.rubyforge_project = 'joshbuddy-usher'
end
+ Jeweler::RubyforgeTasks.new do |rubyforge|
+ rubyforge.doc_task = "rdoc"
+ end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
require 'spec'
@@ -40,33 +43,6 @@
desc "Generate documentation"
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
rd.rdoc_dir = 'rdoc'
-end
-
-# These are new tasks
-begin
- require 'rake/contrib/sshpublisher'
- namespace :rubyforge do
-
- desc "Release gem and RDoc documentation to RubyForge"
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
-
- namespace :release do
- desc "Publish RDoc to RubyForge."
- task :docs => [:rdoc] do
- config = YAML.load(
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
- )
-
- host = "#{config['username']}@rubyforge.org"
- remote_dir = "/var/www/gforge-projects/joshbuddy-usher/"
- local_dir = 'rdoc'
-
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
- end
- end
- end
-rescue LoadError
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
end