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:
parent
038bdf8a91
commit
e0bebb831d
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,5 @@
|
||||||
require 'pry'
|
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
|
# in case the tests call reset_defaults, ensure we reset them to
|
||||||
# amended (test friendly) values
|
# amended (test friendly) values
|
||||||
class << Pry
|
class << Pry
|
||||||
|
|
|
@ -31,3 +31,5 @@ if ENV["SET_TRACE_FUNC"]
|
||||||
STDERR.printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
|
STDERR.printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
|
||||||
}
|
}
|
||||||
end
|
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}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue