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

Move version output into private test helper

This commit is contained in:
Ryan Fitzgerald 2012-12-08 17:11:40 -08:00
parent 038bdf8a91
commit e0bebb831d
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,5 @@
require 'pry'
puts "Ruby v#{RUBY_VERSION} (#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"}), Pry v#{Pry::VERSION}, method_source v#{MethodSource::VERSION}, CodeRay v#{CodeRay::VERSION}, Slop v#{Slop::VERSION}"
# in case the tests call reset_defaults, ensure we reset them to
# amended (test friendly) values
class << Pry

View file

@ -31,3 +31,5 @@ if ENV["SET_TRACE_FUNC"]
STDERR.printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
}
end
puts "Ruby v#{RUBY_VERSION} (#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"}), Pry v#{Pry::VERSION}, method_source v#{MethodSource::VERSION}, CodeRay v#{CodeRay::VERSION}, Slop v#{Slop::VERSION}"