Sha256: 9a3094155c05cda03248ae81c2ecc4f3b17eb6823addbc8d04fdf70dc6659888

Contents?: true

Size: 876 Bytes

Versions: 5

Compression:

Stored size: 876 Bytes

Contents

require "rubygems"
require "bundler/setup"
require "bundler/gem_tasks"
require "rake/testtask"
require "appraisal"

Rake::TestTask.new do |t|
  t.libs.concat %w(pry-rails spec)
  t.pattern = "spec/*_spec.rb"
end

desc 'Start the Rails server'
task :server => :development_env do
  require 'rails/commands/server'
  Rails::Server.start(
    :server => 'WEBrick',
    :environment => 'development',
    :Host => '0.0.0.0',
    :Port => 3000,
    :config => 'config/config.ru'
  )
end

desc 'Start the Rails console'
task :console => :development_env do
  require 'rails/commands/console'
  Rails::Console.start(Rails.application)
end

task :development_env do
  ENV['RAILS_ENV'] = 'development'
  require File.expand_path('../spec/config/environment', __FILE__)
  Dir.chdir(Rails.application.root)
end

# Must invoke indirectly, using `rake appraisal`.
task :default => [:test]

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
pry-rails-0.3.6 Rakefile
pry-rails-0.3.5 Rakefile
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/pry-rails-0.3.4/Rakefile
pry-rails-0.3.4 Rakefile
pry-rails-0.3.3 Rakefile