Sha256: f2a521190432b3dbb679f80a8093828e1d02a2a76c4676f53b1bd5e26ba3a8ab

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

require 'rubygems'
require 'rake'
require File.join(File.expand_path(File.dirname(__FILE__)), 'lib', 'csv2json-version.rb')

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.version = CSV2JSON::VERSION
    gem.name = "csv2json"
    gem.summary = %Q{.csv to .json converter}
    gem.description = %Q{handy for converting xls files to json}
    gem.email = "antonin@hildebrand.cz"
    gem.homepage = "http://github.com/darwin/csv2json"
    gem.authors = ["Antonin Hildebrand", "Rafael Souza"]
    gem.add_dependency "json"
    gem.add_dependency "fastercsv"
    gem.add_development_dependency "shoulda", ">= 0"
    # 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: gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/test_*.rb'
  test.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/test_*.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :test => :check_dependencies

task :default => :test

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csv2json-0.2.0 Rakefile