forked from gistinc/sprite
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
38 lines (30 loc) · 1.08 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
require 'rake'
require 'spec/rake/spectask'
require 'jeweler'
desc 'Default: run unit tests.'
task :default => :spec
desc "Run all specs in spec directory"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
end
namespace :spec do
desc "Run all specs in spec directory with RCov"
Spec::Rake::SpecTask.new(:rcov) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts = ["--exclude spec/*,gems/*,lib/tasks/*,app/analytics/application_metrics.rb"]
end
end
Jeweler::Tasks.new do |gemspec|
gemspec.name = "amikula-sprite"
gemspec.summary = "generate your css sprites automagically"
gemspec.description = "sprite is a rails/merb plugin that generates sprites for css, sass"
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/amikula/sprite"
gemspec.authors = ["Jacques Crocker", "Alf Mikula"]
gemspec.files.exclude '.gitignore'
# removing test files and specs from the gem to save space
gemspec.files -= Dir.glob("spec/**/*")
gemspec.test_files = []
end
Jeweler::GemcutterTasks.new