aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index ab708bd2..b1bee2ac 100644
--- a/Rakefile
+++ b/Rakefile
@@ -38,7 +38,18 @@ task :debug_compiler do
end
task :debug do
- ruby "-I./lib -ropenssl -ve'puts OpenSSL::OPENSSL_VERSION, OpenSSL::OPENSSL_LIBRARY_VERSION'"
+ ruby_code = <<~'EOF'
+ openssl_version_number_str = OpenSSL::OPENSSL_VERSION_NUMBER.to_s(16)
+ libressl_version_number_str = (defined? OpenSSL::LIBRESSL_VERSION_NUMBER) ?
+ OpenSSL::LIBRESSL_VERSION_NUMBER.to_s(16) : "undefined"
+ puts <<~MESSAGE
+ OpenSSL::OPENSSL_VERSION: #{OpenSSL::OPENSSL_VERSION}
+ OpenSSL::OPENSSL_LIBRARY_VERSION: #{OpenSSL::OPENSSL_LIBRARY_VERSION}
+ OpenSSL::OPENSSL_VERSION_NUMBER: #{openssl_version_number_str}
+ OpenSSL::LIBRESSL_VERSION_NUMBER: #{libressl_version_number_str}
+ MESSAGE
+ EOF
+ ruby %Q(-I./lib -ropenssl -ve'#{ruby_code}')
end
task :default => :test