This repository has been archived by the owner on Jan 29, 2019. It is now read-only.
forked from riemann/riemann-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile.rb
67 lines (54 loc) · 1.57 KB
/
Rakefile.rb
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
require 'rubygems'
require 'rubygems/package_task'
require 'rdoc/task'
require 'find'
require 'rake'
# Don't include resource forks in tarballs on Mac OS X.
ENV['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
ENV['COPYFILE_DISABLE'] = 'true'
# Gemspec
gemspec = Gem::Specification.new do |s|
s.rubyforge_project = 'riemann-tools'
s.name = 'riemann-tools'
s.version = '0.2.10'
s.author = 'Kyle Kingsbury'
s.email = '[email protected]'
s.homepage = 'https://github.com/aphyr/riemann-tools'
s.platform = Gem::Platform::RUBY
s.summary = 'Utilities which submit events to Riemann.'
s.description = 'Utilities which submit events to Riemann.'
s.license = 'MIT'
s.add_dependency 'riemann-client', '>= 0.2.2'
s.add_dependency 'trollop', '>= 1.16.2'
s.add_dependency 'json'
s.files = FileList['lib/**/*', 'bin/*', 'LICENSE', 'README.markdown'].to_a
s.executables |= Dir.entries('bin/')
s.require_path = 'lib'
s.has_rdoc = true
s.required_ruby_version = '>= 1.8.7'
end
Gem::PackageTask.new gemspec do |p|
end
RDoc::Task.new do |rd|
rd.main = 'Riemann Tools'
rd.title = 'Riemann Tools'
rd.rdoc_dir = 'doc'
rd.rdoc_files.include('lib/**/*.rb')
end
desc 'Update CHANGELOG'
task :changelog do
begin
require 'github_changelog_generator'
rescue LoadError
'Install the GitHub Changelog Generator - gem install github_changelog_generator'
end
sh 'github_changelog_generator -u riemann -p riemann-tools'
end
desc 'Recursively build all gems'
task :rbuild do
Dir.glob("tools/**") do |dir|
Dir.chdir(dir)
sh 'rake gem'
Dir.chdir("../..")
end
end