Sha256: 4d336c1dba035e904527c2a3d7729f60427311474c83109d6c6783adb6212b2b
Contents?: true
Size: 1.27 KB
Versions: 6
Compression:
Stored size: 1.27 KB
Contents
begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'Tang' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end APP_RAKEFILE = File.expand_path("../spec/tang_app/Rakefile", __FILE__) load 'rails/tasks/engine.rake' load 'rails/tasks/statistics.rake' Bundler::GemHelper.install_tasks load './lib/tasks/tang_tasks.rake' begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare') task :cucumber => 'app:cucumber' task default: [:spec, :cucumber] rescue LoadError puts 'rspec/core/rake_task not required' end namespace :assets do desc 'Precompile assets within dummy app' task :precompile do Dir.chdir('spec/tang_app') do system('bundle exec rake assets:precompile') end end desc 'Clean assets within dummy app' task :clean do Dir.chdir('spec/tang_app') do system('bundle exec rake assets:clean') end end end namespace :rails do desc 'Run rails console within dummy app' task :console do Dir.chdir('spec/tang_app') do system('rails c') end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
tang-0.2.2 | Rakefile |
tang-0.2.1 | Rakefile |
tang-0.2.0 | Rakefile |
tang-0.1.0 | Rakefile |
tang-0.0.9 | Rakefile |
tang-0.0.8 | Rakefile |