forked from mikel/mail
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (23 loc) · 669 Bytes
/
Rakefile
File metadata and controls
29 lines (23 loc) · 669 Bytes
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
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__)
end
require 'rubygems'
require 'bundler/setup'
require 'rake/testtask'
require 'rspec/core/rake_task'
desc "Build a gem file"
task :build do
system "gem build mail.gemspec"
end
task :default => :spec
RSpec::Core::RakeTask.new(:spec) do |t|
t.ruby_opts = '-w'
t.rspec_opts = %w(--backtrace --color)
end
begin
require "appraisal"
rescue LoadError, SyntaxError
warn "Appraisal is only available in test/development on Ruby 1.9+"
end
# load custom rake tasks
Dir["#{File.dirname(__FILE__)}/tasks/**/*.rake"].sort.each { |ext| load ext }