forked from gistinc/sprite
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Rakefile
39 lines (31 loc) · 1.09 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
# encoding: UTF-8
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 = "sprite"
gemspec.summary = "generate your css sprites automagically"
gemspec.description = "sprite is a rails/merb plugin that generates sprites for css, sass"
gemspec.email = "merbjedi@gmail.com"
gemspec.homepage = "http://github.com/merbjedi/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