-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathRakefile
More file actions
39 lines (33 loc) · 1.4 KB
/
Copy pathRakefile
File metadata and controls
39 lines (33 loc) · 1.4 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
require 'rubygems'
require 'spec/rake/spectask'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = "--format pretty"
end
desc "Run the specs under spec"
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "spec/spec.opts"]
t.spec_files = FileList['spec/**/*_spec.rb']
end
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "rosetta_queue"
s.rubyforge_project = "rosetta-queue"
s.summary = %Q{Messaging gateway API with adapters for many messaging systems available in Ruby.}
s.email = "cbwyckoff@gmail.com"
s.homepage = "http://github.com/cwyckoff/rosetta_queue"
s.description = %Q{Messaging gateway API with adapters for many messaging systems available in Ruby. Messaging systems can be easily switched out with a small configuration change. Code for testing on the object and application level is also provided.}
s.extra_rdoc_files = ["README.rdoc", "MIT-LICENSE.txt"]
s.files = FileList["[A-Z]*.*", "{bin,generators,lib,features,spec}/**/*", "Rakefile", "cucumber.yml"]
s.authors = ["Ben Mabey", "Chris Wyckoff"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc "Default task runs specs"
task :default => [:spec]
desc 'Removes trailing whitespace'
task :whitespace do
sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
end