Hi,
I am trying to use openssl gem 2.0.2 with ruby 2.3.
My Gemfile contains:
gem 'openssl', '~> 2.0'
But when I run my app, OpenSSL::VERSION is still 1.1.0
Any idea?
Hi,
I am trying to use openssl gem 2.0.2 with ruby 2.3.
My Gemfile contains:
gem 'openssl', '~> 2.0'
But when I run my app, OpenSSL::VERSION is still 1.1.0
Any idea?
OpenSSL has several version constants, maybe you did mean
OPENSSL_VERSION is still 1.1.0 (i.e. "Version of OpenSSL
the ruby OpenSSL extension was built with")?
$ irb -r openssl
2.4.0 :001 > OpenSSL::VERSION
=> "2.0.2"
2.4.0 :002 > OpenSSL::OPENSSL_VERSION
=> "OpenSSL 1.0.1 14 Mar 2012"
Regards,
Marcus
Am 28.12.2016 um 19:31 schrieb Sylvain Daubert:
I am trying to use openssl gem 2.0.2 with ruby 2.3.
My Gemfile contains:
gem 'openssl', '~> 2.0'
But when I run my app, OpenSSL::VERSION is still 1.1.0
Any idea?
--
GitHub: stomar (Marcus Stollsteimer) · GitHub
PGP: 0x6B3A101A
Hi Marcus,
I have an interesting behaviour:
$ gem install --user-install openssl
$ irb
irb(main):001:0> gem 'openssl'
=> true
irb(main):002:0> require 'openssl'
=> true
irb(main):003:0> OpenSSL::VERSION
=> "2.0.2"
But, when using Bundler:
$ bundle exec irb
irb(main):001:0> gem 'openssl'
=> true
irb(main):002:0> require 'openssl'
=> true
irb(main):003:0> OpenSSL::VERSION
=> "1.1.0"
My Gemfile contains:
source 'https://rubygems.org'
gemspec
And my spec file contains a line: s.add_dependency 'openssl', '~> 2.0'
Any idea?
Sylvain
Le 29/12/2016 à 10:25, sto.mar@web.de a écrit :
Am 28.12.2016 um 19:31 schrieb Sylvain Daubert:
I am trying to use openssl gem 2.0.2 with ruby 2.3.
My Gemfile contains:
gem 'openssl', '~> 2.0'
But when I run my app, OpenSSL::VERSION is still 1.1.0
Any idea?
OpenSSL has several version constants, maybe you did mean
OPENSSL_VERSION is still 1.1.0 (i.e. "Version of OpenSSL
the ruby OpenSSL extension was built with")?$ irb -r openssl
2.4.0 :001 > OpenSSL::VERSION
=> "2.0.2"
2.4.0 :002 > OpenSSL::OPENSSL_VERSION
=> "OpenSSL 1.0.1 14 Mar 2012"Regards,
Marcus