Sha256: a3925ad02677aa3e33bcb9b34e29c79a6988072cad59e541c046f6231a193c0e

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "table_fu"
    gem.summary = %Q{TableFu makes arrays act like spreadsheets}
    gem.description = %Q{A library for manipulating tables as arrays}
    gem.email = "jeff.larson@gmail.com"
    gem.homepage = "http://propublica.github.com/table-fu/"
    gem.authors = ["Mark Percival", "Jeff Larson"]
    gem.add_dependency 'fastercsv'
    gem.add_development_dependency "spec"
    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo 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 :default => :spec

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION.yml')
    require 'yaml'
    config = YAML.load(File.read('VERSION.yml'))
    version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
  else
    version = ""
  end

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "TableFu #{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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
table_fu-0.3.4 Rakefile
table_fu-0.3.3 Rakefile
table_fu-0.3.2 Rakefile
table_fu-0.3.1 Rakefile