Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (32 sloc) 0.866 kb
9a33164 change gem name
scambra authored
1 require 'rake'
549cbb8 @vhochstein gemify the plugin
vhochstein authored
2 require 'bundler'
3 begin
4 Bundler.setup(:default, :development)
5 rescue Bundler::BundlerError => e
6 $stderr.puts e.message
7 $stderr.puts "Run `bundle install` to install missing gems"
8 exit e.status_code
9 end
9a33164 change gem name
scambra authored
10 Bundler::GemHelper.install_tasks
88c1a6b Add tests
scambra authored
11
549cbb8 @vhochstein gemify the plugin
vhochstein authored
12 require 'rake/testtask'
13 desc 'Test plugin.'
88c1a6b Add tests
scambra authored
14 Rake::TestTask.new(:test) do |t|
15 t.libs << 'test'
16 t.pattern = 'test/**/*_test.rb'
17 t.verbose = true
18 end
19
549cbb8 @vhochstein gemify the plugin
vhochstein authored
20 require 'rcov/rcovtask'
21 Rcov::RcovTask.new do |test|
22 test.libs << 'test'
23 test.pattern = 'test/**/test_*.rb'
24 test.verbose = true
25 end
26
27 task :default => :test
28
9a33164 change gem name
scambra authored
29 require 'rdoc/task'
549cbb8 @vhochstein gemify the plugin
vhochstein authored
30 desc 'Generate documentation for plugin.'
88c1a6b Add tests
scambra authored
31 Rake::RDocTask.new(:rdoc) do |rdoc|
32 rdoc.rdoc_dir = 'rdoc'
549cbb8 @vhochstein gemify the plugin
vhochstein authored
33 rdoc.title = "active_scaffold_sortable #{ActiveScaffoldSortable::Version::STRING}"
34 rdoc.rdoc_files.include('README*')
88c1a6b Add tests
scambra authored
35 rdoc.rdoc_files.include('lib/**/*.rb')
36 end
Something went wrong with that request. Please try again.