1
0
Fork 0
mirror of https://github.com/pry/pry-rails.git synced 2022-11-09 12:36:03 -05:00

Cosmetic changes

This commit is contained in:
Ryan Fitzgerald 2012-09-23 15:40:32 -07:00
parent c3feb6f3d8
commit 398d971a2b
3 changed files with 15 additions and 15 deletions

View file

@ -5,11 +5,9 @@ require "rake/testtask"
require "appraisal"
if RUBY_VERSION =~ /^1.8/
module Appraisal
class File
def path
'Appraisals-1.8'
end
class Appraisal::File
def path
'Appraisals-1.8'
end
end
end

View file

@ -5,14 +5,5 @@ require 'pry-rails/version'
if defined?(Rails)
require 'pry-rails/railtie'
PryRails::Commands = Pry::CommandSet.new
command_glob = File.expand_path('../pry-rails/commands/*.rb', __FILE__)
Dir[command_glob].each do |command|
require command
end
Pry.commands.import PryRails::Commands
require 'pry-rails/commands'
end

11
lib/pry-rails/commands.rb Normal file
View file

@ -0,0 +1,11 @@
# encoding: UTF-8
PryRails::Commands = Pry::CommandSet.new
command_glob = File.expand_path('../commands/*.rb', __FILE__)
Dir[command_glob].each do |command|
require command
end
Pry.commands.import PryRails::Commands