Sha256: dd027702873c1e5404f3c48b15a5e486216354acf8bd6f8e713aa7e9d8f1381f

Contents?: true

Size: 981 Bytes

Versions: 3

Compression:

Stored size: 981 Bytes

Contents

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

if RUBY_VERSION =~ /^1.8/
  class Appraisal::File
    def path
      'Appraisals-1.8'
    end
  end
end

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

3 entries across 3 versions & 1 rubygems

Version Path
pry-rails-0.3.2 Rakefile
pry-rails-0.3.1 Rakefile
pry-rails-0.3.0 Rakefile