This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
66 lines (53 loc) · 2.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# encoding: UTF-8
require 'rubygems'
require 'bundler'
Bundler.setup(:default, :development)
require 'rake'
require 'rdoc/task'
require 'rubygems/package_task'
require 'rspec/core'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'jeweler'
# Specs #######################################################################
Rspec::Core::RakeTask.new(:spec)
task :default => :spec
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Doculab'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
# Cucumber ####################################################################
namespace :cucumber do
Cucumber::Rake::Task.new(:ok, 'Run features that should pass') do |t|
t.fork = true # You may get faster startup if you set this to false
t.profile = 'default'
end
Cucumber::Rake::Task.new(:wip, 'Run features that are being worked on') do |t|
t.fork = true # You may get faster startup if you set this to false
t.profile = 'wip'
end
Cucumber::Rake::Task.new(:rerun, 'Record failing features and run only them if any exist') do |t|
t.fork = true # You may get faster startup if you set this to false
t.profile = 'rerun'
end
desc 'Run all features'
task :all => [:ok, :wip]
end
task :cucumber => 'cucumber:ok'
task :features => :cucumber do
STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
end
# Gem #########################################################################
Jeweler::Tasks.new do |gem|
gem.name = "doculab"
gem.summary = "A Rails Engine for creating a simple documentation site"
gem.description = "A Rails Engine for a simple file-based CMS, suitable for a documentation site. Originally created to power the Chargify documentation at http://docs.chargify.com"
gem.email = "[email protected]"
gem.homepage = "http://github.com/grasshopperlabs/doculab"
gem.authors = ["Michael Klett"]
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new