Skip to content
This repository
Newer
Older
100644 37 lines (28 sloc) 0.657 kb
f1bef802 »
2011-10-23 initial import
1 $LOAD_PATH.unshift( 'lib' )
2
3 require 'bundler'
4 Bundler::GemHelper.install_tasks
5
117832dc »
2012-04-03 ST: Added further adapter specs
6 task :examples do
30029375 »
2012-04-04 ST: Updated :examples rake task to tell me when file did not run
7 Dir[ './examples/*.rb' ].each do |file|
8 begin
9 puts "**** Running #{file}"
10
11 require file
12 rescue Exception => e
13 puts "#{e.class}: #{e.message}:\n\t#{e.backtrace.join("\n\t")}"
14
15 exit 1
16 end
17 end
117832dc »
2012-04-03 ST: Added further adapter specs
18 end
19
f1bef802 »
2011-10-23 initial import
20 # === RSpec
10945321 »
2012-03-23 ST: Added travis-ci
21 begin
22 require 'rspec/core/rake_task'
f1bef802 »
2011-10-23 initial import
23
10945321 »
2012-03-23 ST: Added travis-ci
24 desc "Run specs"
25 RSpec::Core::RakeTask.new do |t|
26 t.rspec_opts = %w(--color --format progress --order random)
27 t.ruby_opts = %w(-w)
28 end
29 rescue LoadError
30 task :spec do
31 abort "`gem install rspec` in order to run tests"
32 end
f1bef802 »
2011-10-23 initial import
33 end
34
35 task :default => :spec
36
Something went wrong with that request. Please try again.