Sha256: 493a0a40a2e64aeca5095056ca1d19ea76429e882af3d03804b20e5dcb34c359

Contents?: true

Size: 976 Bytes

Versions: 2

Compression:

Stored size: 976 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'rake/rdoctask'
require 'rspec/core/rake_task'
require 'rake/gempackagetask'

desc 'Default: run tests.'
task :default => :spec

RSpec::Core::RakeTask.new(:spec)

desc 'Generate documentation.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'BigBlueButton on Rails'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('CHANGELOG.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

eval("$specification = begin; #{ IO.read('bigbluebutton_rails.gemspec')}; end")
Rake::GemPackageTask.new $specification do |pkg|
  pkg.need_tar = true
  pkg.need_zip = true
end

desc 'Setup RailsApp used in tests.'
namespace "setup" do
  task :rails_app do |app|
    cd 'spec/rails_app/'
    sh "rake db:drop ENV=test"
    sh "rails destroy bigbluebutton_rails:install"
    sh "rails generate bigbluebutton_rails:install"
    sh "rake db:migrate ENV=test"
    sh "rake db:test:prepare"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bigbluebutton_rails-0.0.2 Rakefile
bigbluebutton_rails-0.0.1 Rakefile