Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

74 lines (58 sloc) 1.857 kB
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the hoptoad_notifier gem.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Run ginger tests'
task :ginger do
$LOAD_PATH << File.join(*%w[vendor ginger lib])
ARGV.clear
ARGV << 'test'
load File.join(*%w[vendor ginger bin ginger])
end
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'TESTING.rdoc']
end
rescue LoadError
end
PLUGIN_ROOT = File.dirname(__FILE__).freeze
VERSION_FILE = File.join(PLUGIN_ROOT, 'lib', 'hoptoad_notifier', 'version')
require VERSION_FILE
gemspec = Gem::Specification.new do |s|
s.name = %q{hoptoad_notifier}
s.version = HoptoadNotifier::VERSION
s.summary = %q{Send your application errors to our hosted service and reclaim your inbox.}
s.files = FileList['[A-Z]*', 'generators/**/*.*', 'lib/**/*.rb',
'test/**/*.rb', 'rails/**.*.rb', 'recipes/**/*.rb',
'tasks/**/*.rake']
s.require_path = 'lib'
s.test_files = Dir[*['test/**/*_test.rb']]
s.has_rdoc = true
s.extra_rdoc_files = ["README.rdoc"]
s.rdoc_options = ['--line-numbers', "--main", "README.rdoc"]
s.authors = ["thoughtbot, inc"]
s.email = %q{support@hoptoadapp.com}
s.homepage = "http://www.hoptoadapp.com"
s.platform = Gem::Platform::RUBY
end
Rake::GemPackageTask.new gemspec do |pkg|
pkg.need_tar = true
pkg.need_zip = true
end
desc "Clean files generated by rake tasks"
task :clobber => [:clobber_rdoc, :clobber_package]
desc "Generate a gemspec file"
task :gemspec do
File.open("#{gemspec.name}.gemspec", 'w') do |f|
f.write gemspec.to_ruby
end
end
Jump to Line
Something went wrong with that request. Please try again.