Rakefile in spreedly-1.3.4 vs Rakefile in spreedly-1.3.5

- old
+ new

@@ -2,15 +2,14 @@ require './lib/spreedly/version.rb' ENV["COPYFILE_DISABLE"] = "true" # Lose all the fugly ._ files when tar'ing hoe = Hoe.spec('spreedly') do - developer('Nathaniel Talbott', 'nathaniel@terralien.com') - self.rubyforge_name = 'terralien' + developer('Nathaniel Talbott', 'nathaniel@spreedly.com') self.test_globs = ["test/**/*_test.rb"] - self.extra_deps << ["mechanize"] self.extra_dev_deps << ["shoulda"] + self.extra_dev_deps << ["mechanize"] end def remove_task(*task_names) task_names.each do |task_name| Rake.application.instance_eval{@tasks.delete(task_name.to_s)} @@ -19,31 +18,9 @@ def replace_task(task_name, *args, &block) name = (task_name.is_a?(Hash) ? task_name.keys.first : task_name) remove_task(name) task(task_name, *args, &block) -end - -remove_task :docs, 'doc/index.html' -Rake::RDocTask.new(:docs) do |rd| - rd.main = hoe.readme_file - rd.rdoc_dir = 'doc' - - rd.rdoc_files += ['lib/spreedly.rb', 'lib/spreedly/common.rb', hoe.readme_file] - - title = "Terralien's Spreedly Gem (#{hoe.version}) Documentation" - - rd.options << "-t" << title << "-f" << "darkfish" -end - -desc "Publish documentation." -replace_task :publish_docs => [:clean, :docs] do - host = "terralien@terralien.com" - - remote_dir = "/var/www/terralien/www/shared/static/projects/spreedly-gem" - local_dir = 'doc' - - sh %{rsync #{hoe.rsync_args} #{local_dir}/ #{host}:#{remote_dir}} end desc "Run tests with and without mocking." replace_task :test do ruby hoe.make_test_cmd