Sha256: 5c42dceb37331bfce43523621b7540dc8fd2f197d27659a62400964ecf504f38

Contents?: true

Size: 1.95 KB

Versions: 2

Compression:

Stored size: 1.95 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "table_setter"
    gem.summary = %Q{A sinatra based app for rendering CSVs in custom HTML}
    gem.description = %Q{A sinatra based app for rendering CSVs hosted on google docs or locally in custom HTML}
    gem.email = "thejefflarson@gmail.com"
    gem.homepage = "http://github.com/thejefflarson/table-setter"
    gem.authors = ["Jeff Larson"]
    gem.rubyforge_project = "table-setter"
    gem.add_development_dependency "rspec", ">= 1.2.9"
    gem.add_development_dependency "rack", ">= 1.1.0"
    gem.add_development_dependency "thin", ">= 1.2.5"
    gem.add_dependency "table_fu", ">= 0.1.1"
    gem.add_dependency "sinatra", ">= 0.9.4"
    gem.add_dependency "sinatra-static-assets", ">= 0.5.0"
    gem.add_dependency "emk-sinatra-url-for", ">= 0.2.1"
    gem.add_dependency "curb", ">= 0.6.6.0"
    gem.executables << "table-setter"
  end
  
  Jeweler::GemcutterTasks.new
  Jeweler::RubyforgeTasks.new do |rubyforge|
    rubyforge.doc_task = "rdoc"
  end
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.pattern = 'spec/**/*_spec.rb'
  spec.rcov = true
end

task :spec => :check_dependencies

task :default => :spec

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "table-setter #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc "render documentation for gh-pages"
task :gh do
 require 'erb'
 File.open("index.html", "w") do |f|
   f.write ERB.new(File.open("documentation/index.html.erb").read).result
 end
 `open index.html`
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
table_setter-0.1.3 Rakefile
table_setter-0.1.2 Rakefile