forked from kpumuk/meta-tags
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
47 lines (42 loc) · 1.26 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'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = 'meta-tags'
gemspec.summary = 'Collection of SEO helpers for Ruby on Rails'
gemspec.description = 'Search Engine Optimization (SEO) plugin for Ruby on Rails applications.'
gemspec.email = '[email protected]'
gemspec.homepage = 'http://github.com/kpumuk/meta-tags'
gemspec.authors = ['Dmytro Shteflyuk']
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts 'Jeweler not available. Install it with: sudo gem install jeweler'
end
begin
require 'spec/rake/spectask'
desc 'Default: run specs'
task :default => :spec
desc 'Test the sphinx plugin'
Spec::Rake::SpecTask.new do |t|
t.libs << 'lib'
t.pattern = 'spec/*_spec.rb'
t.verbose = true
t.spec_opts = ['-cfs']
end
rescue LoadError
puts 'RSpec not available. Install it with: sudo gem install rspec'
end
begin
require 'yard'
YARD::Rake::YardocTask.new(:yard) do |t|
t.options = ['--title', 'MetaTags Documentation']
if ENV['PRIVATE']
t.options.concat ['--protected', '--private']
else
t.options.concat ['--protected', '--no-private']
end
end
rescue LoadError
puts 'Yard not available. Install it with: sudo gem install yard'
end