Remove the temporary script:
- The remaining code was not ported over as I felt it wasn't useful to output the Ruby related version in the context of running `bundle doctor`.
This commit is contained in:
parent
c3bff185a7
commit
8e8df8efb7
@ -1,31 +0,0 @@
|
||||
#!/usr/bin/env ruby
|
||||
# Encoding: utf-8
|
||||
|
||||
require 'uri'
|
||||
require 'net/http'
|
||||
|
||||
begin
|
||||
# Some versions of Ruby need this require to do HTTPS
|
||||
require 'net/https'
|
||||
# Try for RubyGems version
|
||||
require 'rubygems'
|
||||
# Try for Bundler version
|
||||
require 'bundler'
|
||||
require 'bundler/vendor/uri/lib/uri'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
if defined?(RUBY_DESCRIPTION)
|
||||
ruby_version = RUBY_DESCRIPTION
|
||||
else
|
||||
ruby_version = RUBY_VERSION.dup
|
||||
ruby_version << "p#{RUBY_PATCHLEVEL}" if defined?(RUBY_PATCHLEVEL)
|
||||
ruby_version << " (#{RUBY_RELEASE_DATE} revision #{RUBY_REVISION})"
|
||||
ruby_version << " [#{RUBY_PLATFORM}]"
|
||||
end
|
||||
|
||||
puts "", "Here's your Ruby and OpenSSL environment:"
|
||||
puts
|
||||
puts "Ruby: %s" % ruby_version
|
||||
puts "RubyGems: %s" % Gem::VERSION if defined?(Gem::VERSION)
|
||||
puts "Bundler: %s" % Bundler::VERSION if defined?(Bundler::VERSION)
|
Loading…
x
Reference in New Issue
Block a user