1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry.rb

35 lines
756 B
Ruby

# (C) John Mair (banisterfiend) 2011
# MIT License
require "method_source"
require 'shellwords'
require "readline"
require "stringio"
require "coderay"
if RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/
begin
require 'win32console'
rescue LoadError
$stderr.puts "Need to `gem install win32console`"
exit 1
end
end
require "pry/version"
require "pry/hooks"
require "pry/print"
require "pry/command_base"
require "pry/commands"
require "pry/prompts"
require "pry/custom_completions"
require "pry/completion"
require "pry/core_extensions"
require "pry/pry_class"
require "pry/pry_instance"
# TEMPORARY HACK FOR BUG IN JRUBY 1.9 REGEX (which kills CodeRay)
if RUBY_VERSION =~ /1.9/ && RUBY_ENGINE =~ /jruby/
Pry.color = false
end