File tree Expand file tree Collapse file tree 2 files changed +8
-26
lines changed Expand file tree Collapse file tree 2 files changed +8
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 68
68
69
69
version ( '3.0.6' ) { source sha256 : '6e6cbd490030d7910c0ff20edefab4294dfcd1046f0f8f47f78b597987ac683e' }
70
70
version ( '3.1.4' ) { source sha256 : 'a3d55879a0dfab1d7141fdf10d22a07dbf8e5cdc4415da1bde06127d5cc3c7b6' }
71
- version ( '3.2.2 ' ) { source sha256 : '96c57558871a6748de5bc9f274e93f4b5aad06cd8f37befa0e8d94e7b8a423bc ' }
71
+ version ( '3.2.3 ' ) { source sha256 : 'af7f1757d9ddb630345988139211f1fd570ff5ba830def1cc7c468ae9b65c9ba ' }
72
72
73
73
source url : "https://cache.ruby-lang.org/pub/ruby/#{ version . match ( /^(\d +\. \d +)/ ) [ 0 ] } /ruby-#{ version } .tar.gz"
74
74
109
109
# 1. Enable custom patch created by ayufan that allows to count memory allocations
110
110
# per-thread. This is asked to be upstreamed as part of https://github.com/ruby/ruby/pull/3978
111
111
# 2. Backport Ruby upstream patch to fix seg faults in libxml2/Nokogiri: https://bugs.ruby-lang.org/issues/19580
112
- # This has been merged for Ruby 3.3 but not yet backported: https://github.com/ruby/ruby/pull/7663
113
- patches = %w[ thread-memory-allocations fix-ruby-xfree-for-libxml2 ]
112
+ # This has been merged for Ruby 3.2.3 but not yet backported: https://github.com/ruby/ruby/pull/7663
113
+ patches = if version . satisfies? ( '>= 3.2.3' )
114
+ %w[ thread-memory-allocations ]
115
+ else
116
+ %w[ thread-memory-allocations fix-ruby-xfree-for-libxml2 ]
117
+ end
118
+
114
119
ruby_version = Gem ::Version . new ( version ) . canonical_segments [ 0 ..1 ] . join ( '.' )
115
120
116
121
patches . each do |patch_name |
You can’t perform that action at this time.
0 commit comments