forked from cpowell/sysloglogger
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathRakefile
47 lines (42 loc) · 1.56 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
begin
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
begin
require 'rubygems'
require 'bundler'
Bundler.require
rescue
require File.expand_path('../config/environment', __FILE__)
end
end
jt = Jeweler::Tasks.new do |gem|
gem.name = "syslog-logger"
gem.summary = "An improved Logger replacement that logs to syslog. It is almost drop-in with a few caveats."
gem.description = "An improved Logger replacement that logs to syslog. It is almost drop-in with a few caveats."
gem.email = "[email protected]"
gem.homepage = "http://github.com/ngmoco/syslog_logger"
gem.authors = ["Eric Hodel; Chris Powell; Matthew Boeh; Ian Lesperance; Dana Danger; Brian Smith; Ashley Martens"]
gem.files = FileList["lib/syslog-logger.rb", "lib/syslog-formatter.rb", "README.rdoc"]
gem.test_files = FileList["test/test_syslog_logger.rb"]
gem.has_rdoc = true
gem.extra_rdoc_files = ["README.rdoc"]
gem.rdoc_options = ["--line-numbers", "--inline-source", "--title", "SyslogLogger", "--main", "README.rdoc"]
end
Jeweler::GemcutterTasks.new
task :default => :package
$dir = File.dirname(__FILE__)
desc "Run all tests"
task :test do
$: << "#{$dir}/lib"
Dir.glob("#{$dir}/test/*.rb").each do |test_rb|
require test_rb
end
end
desc "Push a new version to Gemcutter"
task :publish => [ :test, :build ] do
system "git tag v#{jt.jeweler.version}"
system "git push origin v#{jt.jeweler.version}"
system "git push origin master"
system "gem push pkg/syslog-logger-#{jt.jeweler.version}.gem"
system "git clean -fd"
end