-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
58 lines (44 loc) · 1.52 KB
/
Rakefile
File metadata and controls
58 lines (44 loc) · 1.52 KB
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
require "rubygems"
require "rubygems/package_task"
require "rdoc/task"
require File.join(File.dirname(__FILE__), "lib", "exceptio")
require "rake/testtask"
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
end
task :default => ["test"]
spec = Gem::Specification.new do |s|
s.name = "exceptio-ruby"
s.version = ExceptIO::Client::VERSION
s.summary = "Ruby client library for the ExceptIO error notification service, with Rails 2.3/Rails 3 hooks"
s.author = "Elliott Draper"
s.email = "el@kickcode.com"
s.homepage = "http://github.com/kickcode/exceptio-ruby"
s.has_rdoc = true
s.extra_rdoc_files = %w(README.rdoc)
s.rdoc_options = %w(--main README.rdoc)
s.files = %w(README.rdoc) + Dir.glob("{lib}/**/*")
s.require_paths = ["lib"]
s.add_dependency "httparty", "> 0.8.1"
s.add_development_dependency "fakeweb", "~> 1.3.0"
s.add_development_dependency "mocha", "~> 0.10.0"
end
Gem::PackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
desc "Build the gemspec file #{spec.name}.gemspec"
task :gemspec do
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
File.open(file, "w") {|f| f << spec.to_ruby }
end
task :package => :gemspec
RDoc::Task.new do |rd|
rd.rdoc_files.include("lib/**/*.rb")
rd.rdoc_dir = "rdoc"
end
desc 'Clear out RDoc and generated packages'
task :clean => [:clobber_rdoc, :clobber_package] do
rm "#{spec.name}.gemspec"
end