diff options
author | chrismo <chrismo@clabs.org> | 2016-05-27 17:46:20 -0500 |
---|---|---|
committer | chrismo <chrismo@clabs.org> | 2016-08-09 23:59:47 -0500 |
commit | 0d2b7ccfeddecba990e1bda2ec14ab6453748eba (patch) | |
tree | e748401b43cb3a6d65a81b4c0bb0a7ee00c7a3e3 | |
parent | a65a2db118ed714586ac4c56a0584c97bf0305df (diff) | |
download | bundler-0d2b7ccfeddecba990e1bda2ec14ab6453748eba.tar.gz |
Add OpenSSL::OPENSSL_VERSION to `bundle env`
-rw-r--r-- | lib/bundler/env.rb | 1 | ||||
-rw-r--r-- | spec/bundler/env_spec.rb | 1 |
2 files changed, 2 insertions, 0 deletions
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 |