Sha256: 73f17896c4ce23543374940d99778a9c48d38dc2d4e9b1a03f2ee931fb91f882

Contents?: true

Size: 693 Bytes

Versions: 6

Compression:

Stored size: 693 Bytes

Contents

#!/usr/bin/env rake
require "rspec/core/rake_task"
require "yard"

begin
  Bundler.setup :default, :development
  Bundler::GemHelper.install_tasks
rescue Bundler::BundlerError => error
  $stderr.puts error.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit error.status_code
end

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

desc "Generate all of the docs"
YARD::Rake::YardocTask.new do |config|
  config.files = Dir["lib/**/*.rb"]
end

desc "Default: run tests and generate docs"
task :default => [ :spec, :yard ]

task :server do
  require 'onebox/web'
  app = Onebox::Web
  app.set :environment, :development
  app.set :bind, '127.0.0.1'
  app.set :port, 9000
  app.run!
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
onebox-1.5.17 Rakefile
onebox-1.5.16 Rakefile
onebox-1.5.14 Rakefile
onebox-1.5.13 Rakefile
onebox-1.5.12 Rakefile
onebox-1.5.11 Rakefile