File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ class RubyAT33 < Formula
4
4
url "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.9.tar.gz"
5
5
sha256 "d1991690a4e17233ec6b3c7844c1e1245c0adce3e00d713551d0458467b727b1"
6
6
license "Ruby"
7
+ revision 1
7
8
8
9
livecheck do
9
10
url "https://www.ruby-lang.org/en/downloads/"
@@ -47,6 +48,13 @@ class RubyAT33 < Formula
47
48
end
48
49
end
49
50
51
+ # Update the bundled openssl gem for compatibility with OpenSSL 3.6+
52
+ # Using 3.2.x series to match major/minor version of bundled gem
53
+ resource "openssl" do
54
+ url "https://github.com/ruby/openssl/archive/refs/tags/v3.2.2.tar.gz"
55
+ sha256 "07b282b43090e9b223c7f1df54d5883851a63fa90faebcc4e18217a2e3c7faba"
56
+ end
57
+
50
58
def api_version
51
59
"3.3.0"
52
60
end
@@ -56,6 +64,15 @@ def rubygems_bindir
56
64
end
57
65
58
66
def install
67
+ openssl_gem_version = File . read ( "ext/openssl/openssl.gemspec" ) [ /spec\. version\s *=\s *"(\d +(?:\. \d +)+)/ , 1 ]
68
+ odie "Remove openssl resource!" if Version . new ( openssl_gem_version ) >= "3.2.2"
69
+ rm_r ( %w[ ext/openssl test/openssl ] )
70
+ resource ( "openssl" ) . stage do
71
+ ( buildpath /"ext" ) . install "ext/openssl"
72
+ ( buildpath /"ext/openssl" ) . install "lib" , "History.md" , "openssl.gemspec"
73
+ ( buildpath /"test" ) . install "test/openssl"
74
+ end
75
+
59
76
# otherwise `gem` command breaks
60
77
ENV . delete ( "SDKROOT" )
61
78
You can’t perform that action at this time.
0 commit comments