Rakefile in clickatell-0.4.1 vs Rakefile in clickatell-0.5.0

- old
+ new

@@ -46,18 +46,16 @@ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org" DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}" NAME = "clickatell" REV = nil -# UNCOMMENT IF REQUIRED: -# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil VERS = Clickatell::VERSION::STRING + (REV ? ".#{REV}" : "") CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] RDOC_OPTS = ['--quiet', '--title', 'clickatell documentation', "--opname", "index.html", "--line-numbers", - "--main", "README", + "--main", "README.txt", "--inline-source"] class Hoe def extra_deps @extra_deps.reject { |x| Array(x).first == 'hoe' } @@ -127,11 +125,11 @@ exit end end Rake::RDocTask.new('docs') do |rd| - rd.main = 'README.txt' + rd.main = 'README.textile' rd.rdoc_files.include('README.txt', 'History.txt', 'License.txt', 'lib/**/*.rb') rd.rdoc_dir = 'doc' rd.options << '--style=http://clickatell.rubyforge.org/stylesheets/rdoc.css' rd.options << '--tab-width=2' rd.options << '--inline-source' @@ -151,11 +149,11 @@ t.spec_files = FileList['spec/*_spec.rb'] end desc "Run the specs in HTML format" Spec::Rake::SpecTask.new('html') do |t| - t.spec_opts = ['--format', "html"] t.spec_files = FileList['spec/*_spec.rb'] + t.spec_opts = ['--format', "html:website/specs.html"] end end desc "Default task is to run specs" task :default => 'spec:all'