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:
parent
c3feb6f3d8
commit
398d971a2b
3 changed files with 15 additions and 15 deletions
8
Rakefile
8
Rakefile
|
@ -5,11 +5,9 @@ require "rake/testtask"
|
||||||
require "appraisal"
|
require "appraisal"
|
||||||
|
|
||||||
if RUBY_VERSION =~ /^1.8/
|
if RUBY_VERSION =~ /^1.8/
|
||||||
module Appraisal
|
class Appraisal::File
|
||||||
class File
|
def path
|
||||||
def path
|
'Appraisals-1.8'
|
||||||
'Appraisals-1.8'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,14 +5,5 @@ require 'pry-rails/version'
|
||||||
|
|
||||||
if defined?(Rails)
|
if defined?(Rails)
|
||||||
require 'pry-rails/railtie'
|
require 'pry-rails/railtie'
|
||||||
|
require 'pry-rails/commands'
|
||||||
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
|
|
||||||
end
|
end
|
||||||
|
|
11
lib/pry-rails/commands.rb
Normal file
11
lib/pry-rails/commands.rb
Normal 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
|
Loading…
Add table
Reference in a new issue