Sha256: 8d417f7a706c3b1485c3dd0e63748535db0ee8816107def97bc7cc495d95db66

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

require 'rubygems'
import 'docs/guides/Rakefile'

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

#Bundler.setup(ENV['RAILS_ENV'] || :default)

APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
load 'rails/tasks/engine.rake'

Bundler::GemHelper.install_tasks

require 'rspec/core'
require 'rspec/core/rake_task'

desc "Generate and deploy all docs"
task docs: ['guides:generate', 'guides:deploy'] do
  pwd = Dir.pwd

  system('bundle exec yardoc')

  system("cp -r #{pwd}/docs/ruby /tmp/ruby")
  Dir.chdir '/tmp/ruby' do
    system('git init')
    system('git remote add origin git@github.com:Yellowen/faalis_apidoc.git')
    system('git checkout -b gh-pages')
    system('echo "api.faalis.io" > CNAME')
    system('git add .')
    system('git commit -a -m "new release"')
    system('git push origin gh-pages -f')
  end

  system("rm -rf /tmp/ruby ")
end

desc 'Run all specs in spec directory (excluding plugin specs)'
RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare')
task default: :spec

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
faalis-2.0.8 Rakefile
faalis-2.0.7 Rakefile
faalis-2.0.5 Rakefile
faalis-2.0.4 Rakefile
faalis-2.0.3 Rakefile
faalis-2.0.1 Rakefile
faalis-2.0.0 Rakefile
faalis-2.0.0.rc6 Rakefile