From 2c43241dc0ed90062f160d24fc9fcae7bec86518 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Tue, 10 Mar 2020 17:11:41 +0900 Subject: Revert "Use version.rb in gemspec" This reverts commit 55cfee6edbc5c663cbe73323852b93292cf94a3f. Unfortunately, this doesn't work well in some places because RubyGems depends on openssl in some code paths. This ends up with defining OpenSSL::VERSION twice and producing warning: /work/ruby/ext/openssl/lib/openssl/version.rb:4: warning: already initialized constant OpenSSL::VERSION /work/ruby/.x86_64-linux/.ext/common/openssl/version.rb:5: warning: previous definition of VERSION was here --- openssl.gemspec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openssl.gemspec b/openssl.gemspec index 1aa42d69..471a3c42 100644 --- a/openssl.gemspec +++ b/openssl.gemspec @@ -1,8 +1,6 @@ -require_relative 'lib/openssl/version' - Gem::Specification.new do |spec| spec.name = "openssl" - spec.version = OpenSSL::VERSION + spec.version = "2.2.0" spec.authors = ["Martin Bosslet", "SHIBATA Hiroshi", "Zachary Scott", "Kazuki Yamaguchi"] spec.email = ["ruby-core@ruby-lang.org"] spec.summary = %q{OpenSSL provides SSL, TLS and general purpose cryptography.} -- cgit v1.2.3