Skip to content
Browse files

Change Rakefile to Unix format

  • Loading branch information...
1 parent 385dc65 commit 7461fe87b74efc8f11047a444f10629a790ad701 @sandro sandro committed Sep 8, 2009
Showing with 49 additions and 48 deletions.
  1. +49 −48 Rakefile
View
97 Rakefile
@@ -1,48 +1,49 @@
-ProjectName = 'httparty'
-WebsitePath = "jnunemaker@rubyforge.org:/var/www/gforge-projects/#{ProjectName}"
-
-require 'rubygems'
-require 'rake'
-require 'echoe'
-require 'spec/rake/spectask'
-require "lib/#{ProjectName}/version"
-require 'cucumber/rake/task'
-
-Echoe.new(ProjectName, HTTParty::Version) do |p|
- p.description = "Makes http fun! Also, makes consuming restful web services dead easy."
- p.install_message = "When you HTTParty, you must party hard!"
- p.url = "http://#{ProjectName}.rubyforge.org"
- p.author = "John Nunemaker"
- p.email = "nunemaker@gmail.com"
- p.extra_deps = [['crack', '>= 0.1.1']]
- p.need_tar_gz = false
- p.docs_host = WebsitePath
-end
-
-desc 'Upload website files to rubyforge'
-task :website do
- sh %{rsync -av website/ #{WebsitePath}}
- Rake::Task['website_docs'].invoke
-end
-
-task :website_docs do
- Rake::Task['redocs'].invoke
- sh %{rsync -av doc/ #{WebsitePath}/docs}
-end
-
-desc 'Preps the gem for a new release'
-task :prepare do
- %w[manifest build_gemspec].each do |task|
- Rake::Task[task].invoke
- end
-end
-
-Rake::Task[:default].prerequisites.clear
-task :default => :spec
-Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
-end
-
-Cucumber::Rake::Task.new(:features) do |t|
- t.cucumber_opts = "--format pretty"
-end
+ProjectName = 'httparty'
+WebsitePath = "jnunemaker@rubyforge.org:/var/www/gforge-projects/#{ProjectName}"
+
+require 'rubygems'
+require 'rake'
+require 'echoe'
+require 'spec/rake/spectask'
+require "lib/#{ProjectName}/version"
+require 'cucumber/rake/task'
+
+Echoe.new(ProjectName, HTTParty::Version) do |p|
+ p.description = "Makes http fun! Also, makes consuming restful web services dead easy."
+ p.install_message = "When you HTTParty, you must party hard!"
+ p.url = "http://#{ProjectName}.rubyforge.org"
+ p.author = "John Nunemaker"
+ p.email = "nunemaker@gmail.com"
+ p.extra_deps = [['crack', '>= 0.1.1']]
+ p.need_tar_gz = false
+ p.docs_host = WebsitePath
+end
+
+desc 'Upload website files to rubyforge'
+task :website do
+ sh %{rsync -av website/ #{WebsitePath}}
+ Rake::Task['website_docs'].invoke
+end
+
+task :website_docs do
+ Rake::Task['redocs'].invoke
+ sh %{rsync -av doc/ #{WebsitePath}/docs}
+end
+
+desc 'Preps the gem for a new release'
+task :prepare do
+ %w[manifest build_gemspec].each do |task|
+ Rake::Task[task].invoke
+ end
+end
+
+Rake::Task[:default].prerequisites.clear
+task :default => :spec
+Spec::Rake::SpecTask.new do |t|
+ t.spec_files = FileList["spec/**/*_spec.rb"]
+ t.spec_opts = ['--options', 'spec/spec.opts']
+end
+
+Cucumber::Rake::Task.new(:features) do |t|
+ t.cucumber_opts = "--format pretty"
+end

0 comments on commit 7461fe8

Please sign in to comment.
Something went wrong with that request. Please try again.