Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (39 sloc) 1.095 kb
1f79b005 »
2007-12-06 Initial import of fixture_dependencies plugin
1 require 'rake'
bda31cc0 »
2008-07-07 Add gemspec suitable for building on github
2 require 'rake/clean'
b7db5cc7 »
2008-11-03 Add support for hanna rdoc template, and .gitignore file
3 begin
4 require 'hanna/rdoctask'
5 rescue LoadError
6 require 'rake/rdoctask'
7 end
1f79b005 »
2007-12-06 Initial import of fixture_dependencies plugin
8
63025e78 »
2008-08-25 Allow use of Sequel in addition to ActiveRecord
9 CLEAN.include ["rdoc"]
10
bda31cc0 »
2008-07-07 Add gemspec suitable for building on github
11 Rake::RDocTask.new do |rdoc|
12 rdoc.rdoc_dir = "rdoc"
13 rdoc.options += ["--quiet", "--line-numbers", "--inline-source"]
14 rdoc.main = "README"
15 rdoc.title = "fixture_dependencies: Rails fixture loading that works with foreign keys"
8b713b0c »
2011-01-03 change license filename in Rakefile
16 rdoc.rdoc_files.add ["README", "MIT-LICENSE", "lib/**/*.rb"]
bda31cc0 »
2008-07-07 Add gemspec suitable for building on github
17 end
1f79b005 »
2007-12-06 Initial import of fixture_dependencies plugin
18
bda31cc0 »
2008-07-07 Add gemspec suitable for building on github
19 desc "Package fixture_dependencies"
20 task :package do
21 sh %{gem build fixture_dependencies.gemspec}
1f79b005 »
2007-12-06 Initial import of fixture_dependencies plugin
22 end
00a7f6d7 »
2011-01-28 Add specs
23
24 begin
25 require 'spec/rake/spectask'
26
27 desc "Run Sequel specs"
28 Spec::Rake::SpecTask.new(:spec_sequel) do |t|
29 t.spec_files = Dir['spec/*_spec.rb']
30 #t.rcov = true
31 end
32
33 desc "Run ActiveRecord specs"
37efd8ba »
2011-01-28 Fix the spec_ar task so that it doesn't take over the spec_sequel task
34 task :spec_ar do
1f23cdbc »
2012-06-04 Run active_record specs with same ruby as current ruby
35 sh %{#{FileUtils::RUBY} -S rake spec_sequel FD_AR=1}
00a7f6d7 »
2011-01-28 Add specs
36 end
37
38 desc "Run Sequel and ActiveRecord specs"
39 task :default=>[:spec_sequel, :spec_ar]
40 rescue LoadError
41 end
42
43 desc "Create spec database"
44 task :spec_migrate do
45 sh %{mkdir -p spec/db}
46 sh %{sequel -m spec/migrate -E sqlite://spec/db/fd_spec.sqlite3}
47 end
Something went wrong with that request. Please try again.