From 0d2b7ccfeddecba990e1bda2ec14ab6453748eba Mon Sep 17 00:00:00 2001 From: chrismo Date: Fri, 27 May 2016 17:46:20 -0500 Subject: Add OpenSSL::OPENSSL_VERSION to `bundle env` --- lib/bundler/env.rb | 1 + spec/bundler/env_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb index baf6a10f31..c39e7d2ae8 100644 --- a/lib/bundler/env.rb +++ b/lib/bundler/env.rb @@ -20,6 +20,7 @@ module Bundler out << " GEM_PATH #{ENV["GEM_PATH"]}\n" unless ENV["GEM_PATH"] == ENV["GEM_HOME"] out << " RVM #{ENV["rvm_version"]}\n" if ENV["rvm_version"] out << " Git #{git_version}\n" + out << " OpenSSL #{OpenSSL::OPENSSL_VERSION}\n" if defined?(OpenSSL::OPENSSL_VERSION) %w(rubygems-bundler open_gem).each do |name| specs = Bundler.rubygems.find_name(name) out << " #{name} (#{specs.map(&:version).join(",")})\n" unless specs.empty? diff --git a/spec/bundler/env_spec.rb b/spec/bundler/env_spec.rb index 305fcce351..1c3548c1fd 100644 --- a/spec/bundler/env_spec.rb +++ b/spec/bundler/env_spec.rb @@ -14,6 +14,7 @@ describe Bundler::Env do expect(out).to include(Gem::VERSION) expect(out).to include(env.send(:ruby_version)) expect(out).to include(env.send(:git_version)) + expect(out).to include(OpenSSL::OPENSSL_VERSION) end context "when there is a Gemfile and a lockfile and print_gemfile is true" do -- cgit v1.2.1