Sha256: c29a00183a791f37df6143f1fcdd6117a8a35b67945d5d73a7d8dbddc9cfc450

Contents?: true

Size: 708 Bytes

Versions: 8

Compression:

Stored size: 708 Bytes

Contents

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

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

8 entries across 8 versions & 1 rubygems

Version Path
onebox-1.8.30 Rakefile
onebox-1.8.29 Rakefile
onebox-1.8.28 Rakefile
onebox-1.8.27 Rakefile
onebox-1.8.26 Rakefile
onebox-1.8.25 Rakefile
onebox-1.8.24 Rakefile
onebox-1.8.23 Rakefile