diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2020-02-22 17:38:08 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2020-02-22 17:38:08 +0900 |
commit | b68559efc7c9c08d3b343c98d3b3c9666c20d12d (patch) | |
tree | cc5ce925fdc7a8411124364c2f107c40308a8154 | |
parent | 325aae1dc4cbcb18071d9069c019af9db89de081 (diff) | |
download | ruby-openssl-b68559efc7c9c08d3b343c98d3b3c9666c20d12d.tar.gz |
lib/openssl.rb: require openssl/version.rbky/fix-openssl-version-constant
The OpenSSL::VERSION constant is now defined by lib/openssl/version.rb
instead of by the extension. Add missing require statement.
Fixes: 0cddb0b736c8 ("Simplify handling of version constant.", 2019-10-31)
Reference: https://github.com/ruby/openssl/issues/347
-rw-r--r-- | lib/openssl.rb | 1 | ||||
-rw-r--r-- | lib/openssl/version.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/openssl.rb b/lib/openssl.rb index 7ba2229a..00e2db1f 100644 --- a/lib/openssl.rb +++ b/lib/openssl.rb @@ -21,6 +21,7 @@ require_relative 'openssl/hmac' require_relative 'openssl/x509' require_relative 'openssl/ssl' require_relative 'openssl/pkcs5' +require_relative 'openssl/version' module OpenSSL # call-seq: diff --git a/lib/openssl/version.rb b/lib/openssl/version.rb index b07bb330..9c7515ba 100644 --- a/lib/openssl/version.rb +++ b/lib/openssl/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module OpenSSL - VERSION = "2.2.0" unless defined?(VERSION) + VERSION = "2.2.0" end |