forked from gtd/csv_builder
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
47 lines (39 loc) · 1.48 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require 'rake/rdoctask'
require 'rspec/core'
require 'rspec/core/rake_task'
require 'jeweler'
desc 'Generate documentation for the csv_builder plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'CSV Builder'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('CHANGELOG.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc 'Test the csv builder'
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = "./spec/**/*_spec.rb"
end
desc 'Default: run specs.'
task :default => :spec
Jeweler::Tasks.new do |gem|
gem.name = "csv_builder"
gem.homepage = "http://github.com/dasil003/csv_builder"
gem.license = "MIT"
gem.summary = %Q{CSV template handler for Rails}
gem.description = %Q{CSV template handler for Rails. Enables :format => 'csv' in controllers, with templates of the form report.csv.csvbuilder.}
gem.email = "[email protected]"
gem.authors = ['Econsultancy', 'Vidmantas Kabosis', "Gabe da Silveira"]
gem.files.exclude 'spec'
gem.add_dependency 'actionpack', '>=3.0.0'
gem.add_development_dependency 'rails', '>= 3.0.0'
gem.add_development_dependency 'rspec', '~> 2.5'
gem.add_development_dependency 'rspec-rails', '~> 2.5'
gem.add_development_dependency 'jeweler'
gem.add_development_dependency 'rack'
gem.add_development_dependency 'sqlite3'
gem.requirements << 'iconv'
gem.requirements << 'Ruby 1.9.x or FasterCSV'
end
Jeweler::RubygemsDotOrgTasks.new