forked from tmm1/ruby-collectd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (30 loc) · 942 Bytes
/
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
begin
require 'jeweler'
rescue LoadError
raise "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
Jeweler::Tasks.new do |s|
s.name = "collectd"
s.summary = "Send collectd statistics from Ruby"
s.email = "[email protected]"
s.homepage = "http://github.com/astro/ruby-collectd"
s.authors = ["Stephan Maka"]
s.files = FileList["[A-Z]*", "{lib,spec,examples}/**/*"]
#s.add_dependency 'eventmachine'
end
begin
require 'spec/rake/spectask'
desc "Run all Spec"
Spec::Rake::SpecTask.new('spec') do |spec|
spec.spec_files = FileList['spec/*.rb']
spec.verbose = true
spec.warning = true
spec.rcov = true
spec.rcov_opts = []
spec.rcov_opts = ['--exclude', 'spec']
end
rescue LoadError
task :spec do
abort "Rspec is not available. In order to run rspec, you must: sudo gem install rspec"
end
end