diff options
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 36 |
1 files changed, 36 insertions, 0 deletions
| diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..4b90461 --- /dev/null +++ b/Rakefile | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | begin | ||
| 2 | require 'bundler/setup' | ||
| 3 | rescue LoadError | ||
| 4 | puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | ||
| 5 | end | ||
| 6 | |||
| 7 | require 'rdoc/task' | ||
| 8 | |||
| 9 | RDoc::Task.new(:rdoc) do |rdoc| | ||
| 10 | rdoc.rdoc_dir = 'rdoc' | ||
| 11 | rdoc.title = 'Pokeviewer' | ||
| 12 | rdoc.options << '--line-numbers' | ||
| 13 | rdoc.rdoc_files.include('README.md') | ||
| 14 | rdoc.rdoc_files.include('lib/**/*.rb') | ||
| 15 | end | ||
| 16 | |||
| 17 | APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__) | ||
| 18 | load 'rails/tasks/engine.rake' | ||
| 19 | |||
| 20 | |||
| 21 | load 'rails/tasks/statistics.rake' | ||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | require 'bundler/gem_tasks' | ||
| 26 | |||
| 27 | require 'rake/testtask' | ||
| 28 | |||
| 29 | Rake::TestTask.new(:test) do |t| | ||
| 30 | t.libs << 'test' | ||
| 31 | t.pattern = 'test/**/*_test.rb' | ||
| 32 | t.verbose = false | ||
| 33 | end | ||
| 34 | |||
| 35 | |||
| 36 | task default: :test | ||
