/
Rakefile
30 lines (26 loc) · 866 Bytes
/
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
require 'rake'
require 'rake/testtask'
require 'date'
test_files_pattern = 'test/**/*_test.rb'
Rake::TestTask.new do |t|
t.libs << 'lib'
t.pattern = test_files_pattern
t.verbose = false
end
desc "Run the test suite"
task :default => :test
begin
require 'rubygems'
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "webster"
s.summary = "Generate random short words. Good for human-readable confirmation codes."
s.email = "dcroak@thoughtbot.com"
s.homepage = "http://github.com/dancroak/webster"
s.description = "Generate random short words. Good for human-readable confirmation codes."
s.authors = ["Dan Croak"]
s.files = FileList["[A-Z]*", "{lib,test,shoulda_macros}/**/*"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end