Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (33 sloc) 1.215 kB
4db3397 @amatsuda Initial commit to kaminari.
authored
1 # encoding: utf-8
2
3 require 'bundler'
7473663 @amatsuda from jeweler to bundler
authored
4 Bundler::GemHelper.install_tasks
4db3397 @amatsuda Initial commit to kaminari.
authored
5
6 require 'rspec/core'
7 require 'rspec/core/rake_task'
ae6ac90 @plribeiro3000 Added Desc on Rake Tasks
plribeiro3000 authored
8
4db3397 @amatsuda Initial commit to kaminari.
authored
9 RSpec::Core::RakeTask.new(:spec) do |spec|
10 spec.pattern = FileList['spec/**/*_spec.rb']
11 end
12
ae6ac90 @plribeiro3000 Added Desc on Rake Tasks
plribeiro3000 authored
13 task :default => "spec:all"
4db3397 @amatsuda Initial commit to kaminari.
authored
14
cc5a5a8 @amatsuda decouple AR, DM, mongoid, and mongo_mapper gems from development_depe…
authored
15 namespace :spec do
90c3f6e @amatsuda support Mongoid 3.0
authored
16 %w(active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra).each do |gemfile|
ae6ac90 @plribeiro3000 Added Desc on Rake Tasks
plribeiro3000 authored
17 desc "Run Tests against #{gemfile}"
cc5a5a8 @amatsuda decouple AR, DM, mongoid, and mongo_mapper gems from development_depe…
authored
18 task gemfile do
19 sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
20 sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec"
21 end
22 end
23
ae6ac90 @plribeiro3000 Added Desc on Rake Tasks
plribeiro3000 authored
24 desc "Run Tests against all ORMs"
cc5a5a8 @amatsuda decouple AR, DM, mongoid, and mongo_mapper gems from development_depe…
authored
25 task :all do
90c3f6e @amatsuda support Mongoid 3.0
authored
26 %w(active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra).each do |gemfile|
cc5a5a8 @amatsuda decouple AR, DM, mongoid, and mongo_mapper gems from development_depe…
authored
27 sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
28 sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
29 end
30 end
31 end
32
d6b0deb @amatsuda "WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'requi…
authored
33 require 'rdoc/task'
34
4db3397 @amatsuda Initial commit to kaminari.
authored
35 Rake::RDocTask.new do |rdoc|
7473663 @amatsuda from jeweler to bundler
authored
36 require 'kaminari/version'
4db3397 @amatsuda Initial commit to kaminari.
authored
37
38 rdoc.rdoc_dir = 'rdoc'
7473663 @amatsuda from jeweler to bundler
authored
39 rdoc.title = "kaminari #{Kaminari::VERSION}"
4db3397 @amatsuda Initial commit to kaminari.
authored
40 rdoc.rdoc_files.include('README*')
41 rdoc.rdoc_files.include('lib/**/*.rb')
42 end
Something went wrong with that request. Please try again.