forked from mdeering/gravatar_image_tag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (33 loc) · 1.1 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
require 'rake'
require 'rspec/core/rake_task'
begin
AUTHOR = "Michael Deering"
EMAIL = "[email protected]"
GEM = "gravatar_image_tag"
HOMEPAGE = "http://github.com/mdeering/gravatar_image_tag"
SUMMARY = "A configurable and documented Rails view helper for adding gravatars into your Rails application."
require 'jeweler'
Jeweler::Tasks.new do |s|
s.author = AUTHOR
s.email = EMAIL
s.files = %w(install.rb install.txt MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,spec}/**/*")
s.homepage = HOMEPAGE
s.name = GEM
s.require_path = 'lib'
s.summary = SUMMARY
s.license = 'MIT'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
end
desc 'Test the gravatar_image_tag gem.'
RSpec::Core::RakeTask.new do |t|
end
desc 'Default: spec tests.'
task :default => :spec
desc "Run all examples with RCov"
RSpec::Core::RakeTask.new(:coverage) do |t|
t.rcov = true
t.rcov_opts = ['--exclude', '/opt,spec,Library']
end