forked from novafabrica/make_exportable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
50 lines (44 loc) · 1.58 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
48
49
50
begin
# Rspec 1.3.0
require 'spec/rake/spectask'
desc 'Default: run specs'
task :default => :spec
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
end
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
end
rescue LoadError
# Rspec 2.0
require 'rspec/core/rake_task'
desc 'Default: run specs'
task :default => :spec
Rspec::Core::RakeTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
end
Rspec::Core::RakeTask.new('rcov') do |t|
t.pattern = "spec/**/*_spec.rb"
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
end
rescue LoadError
puts "Rspec not available. Install it with: gem install rspec"
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "make_exportable"
gemspec.summary = "Makes any Rails model easily exportable"
gemspec.description = "MakeExportable is a Rails gem/plugin to assist in exporting application data as CSV, TSV, JSON, HTML, XML or Excel. Filter and limit the data exported using ActiveRecord. Export returned values from instance methods as easily as database columns."
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/novafabrica/make_exportable"
gemspec.authors = ["Kevin Skoglund", "Matthew Bergman"]
gemspec.files = FileList["[A-Z]*", "{generators,lib,spec,rails}/**/*"] - FileList["**/*.log"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end