This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rakefile
53 lines (47 loc) · 1.68 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
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "log_buddy"
gem.summary = %Q{Log Buddy is your little development buddy.}
gem.description = %Q{Log statements along with their name easily. Mixin a logger everywhere when you need it.}
gem.email = "rsanheim@gmail.com"
gem.homepage = "http://github.com/relevance/log_buddy"
gem.authors = ["Rob Sanheim"]
gem.add_development_dependency "micronaut", ">= 0.3.0"
gem.add_development_dependency "mocha", ">= 0.3.0"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler"
end
begin
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 --exclude "gems/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
examples.rcov = true
end
task :default => [:check_dependencies, :rcov]
rescue LoadError => e
puts "Micronaut not available to run tests. Install it with: sudo gem install spicycode-micronaut -s http://gems.github.com"
puts e
puts e.backtrace
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
require 'yaml'
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "log_buddy #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end