Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (50 sloc) 1.648 kb
c858a96 @darwin Initial commit to csv2json.
authored
1 require 'rubygems'
2 require 'rake'
76f3679 @darwin added proper gem dependencies (json and fastercsv)
authored
3 require File.join(File.expand_path(File.dirname(__FILE__)), 'lib', 'csv2json-version.rb')
c858a96 @darwin Initial commit to csv2json.
authored
4
5 begin
6 require 'jeweler'
7 Jeweler::Tasks.new do |gem|
1776c76 @darwin preparation for first release
authored
8 gem.version = CSV2JSON::VERSION
c858a96 @darwin Initial commit to csv2json.
authored
9 gem.name = "csv2json"
1776c76 @darwin preparation for first release
authored
10 gem.summary = %Q{.csv to .json converter}
11 gem.description = %Q{handy for converting xls files to json}
c858a96 @darwin Initial commit to csv2json.
authored
12 gem.email = "antonin@hildebrand.cz"
13 gem.homepage = "http://github.com/darwin/csv2json"
f992ce1 @darwin add Rafael into authors list
authored
14 gem.authors = ["Antonin Hildebrand", "Rafael Souza"]
76f3679 @darwin added proper gem dependencies (json and fastercsv)
authored
15 gem.add_dependency "json"
16 gem.add_dependency "fastercsv"
279e106 @darwin first version
authored
17 gem.add_development_dependency "shoulda", ">= 0"
c858a96 @darwin Initial commit to csv2json.
authored
18 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19 end
20 Jeweler::GemcutterTasks.new
21 rescue LoadError
22 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
23 end
24
25 require 'rake/testtask'
26 Rake::TestTask.new(:test) do |test|
27 test.libs << 'lib' << 'test'
28 test.pattern = 'test/**/test_*.rb'
29 test.verbose = true
30 end
31
32 begin
33 require 'rcov/rcovtask'
34 Rcov::RcovTask.new do |test|
35 test.libs << 'test'
36 test.pattern = 'test/**/test_*.rb'
37 test.verbose = true
38 end
39 rescue LoadError
40 task :rcov do
41 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
42 end
43 end
44
45 task :test => :check_dependencies
46
47 task :default => :test
48
49 require 'rake/rdoctask'
50 Rake::RDocTask.new do |rdoc|
51 version = File.exist?('VERSION') ? File.read('VERSION') : ""
52
53 rdoc.rdoc_dir = 'rdoc'
54 rdoc.title = "csv2json #{version}"
55 rdoc.rdoc_files.include('README*')
56 rdoc.rdoc_files.include('lib/**/*.rb')
57 end
Something went wrong with that request. Please try again.