-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
48 lines (42 loc) · 1.41 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
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "spec_converter"
gem.summary = "Convert your tests to test/spec specs. See http://github.com/relevance/spec_converter/ for details."
gem.email = "[email protected]"
gem.homepage = "http://github.com/relevance/spec_converter"
gem.authors = ["Relevance"]
gem.add_development_dependency "mocha", ">= 0.9.0"
gem.add_development_dependency "micronaut", ">= 0.3.0"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'micronaut/rake_task'
Micronaut::RakeTask.new(:examples) do |examples|
examples.pattern = 'examples/**/*_example.rb'
examples.ruby_opts << '-Ilib -Iexamples'
end
Micronaut::RakeTask.new(:rcov) do |examples|
examples.pattern = 'examples/**/*_example.rb'
examples.rcov_opts = '-Ilib -Iexamples'
examples.rcov = true
end
task :default => [:check_dependencies, :examples]
begin
%w{sdoc sdoc-helpers rdiscount}.each { |name| gem name }
require 'sdoc_helpers'
rescue LoadError => ex
puts "sdoc support not enabled:"
puts ex.inspect
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ''
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "chatterbox #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end