Sha256: f0c262e3c43d29cb51b791c26bdfa7dc9a0fa5aefda29436b4c45ba3a146bd8b

Contents?: true

Size: 721 Bytes

Versions: 28

Compression:

Stored size: 721 Bytes

Contents

require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:test) do |task|
	task.rspec_opts = %w{--require simplecov} if ENV['COVERAGE']
end

task :coverage do
	ENV['COVERAGE'] = 'y'
end

desc 'Start the development server.'
task :server => :environment do
	exec('guard', '-g', 'development')
end

desc 'Start the development environment which includes web server and tests.'
task :development => :environment do
	exec('guard', '-g', 'development,test')
end

desc 'Start an interactive console for your web application'
task :console => :environment do
	require 'pry'
	require 'rack/test'
	
	include Rack::Test::Methods
	
	def app
		@app ||= Rack::Builder.parse_file(SITE_ROOT + 'config.ru').first
	end
	
	Pry.start
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
async-websocket-0.14.0 examples/utopia/tasks/development.rake
async-websocket-0.13.1 examples/utopia/tasks/development.rake
async-websocket-0.13.0 examples/utopia/tasks/development.rake
async-websocket-0.12.2 examples/utopia/tasks/development.rake
async-websocket-0.12.1 examples/utopia/tasks/development.rake
async-websocket-0.12.0 examples/utopia/tasks/development.rake
async-websocket-0.11.1 examples/utopia/tasks/development.rake
async-websocket-0.11.0 examples/utopia/tasks/development.rake
async-websocket-0.10.0 examples/utopia/tasks/development.rake
async-websocket-0.9.0 examples/utopia/tasks/development.rake
utopia-2.8.2 setup/site/tasks/development.rake
utopia-2.8.1 setup/site/tasks/development.rake
utopia-2.8.0 setup/site/tasks/development.rake
utopia-2.7.0 setup/site/tasks/development.rake
utopia-2.6.0 setup/site/tasks/development.rake
async-websocket-0.8.0 examples/utopia/tasks/development.rake
async-websocket-0.7.0 examples/utopia/tasks/development.rake
utopia-2.5.5 setup/site/tasks/development.rake
utopia-2.5.4 setup/site/tasks/development.rake
utopia-2.5.3 setup/site/tasks/development.rake