Skip to content

Commit

Permalink
update ruby patch file
Browse files Browse the repository at this point in the history
Signed-off-by: poorndm <poorndm@progress.com>
  • Loading branch information
poorndm committed Feb 21, 2025
1 parent a38b097 commit 665d3b5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions config/software/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,20 @@
# over the top of it. AFAIK no sane ruby code should need to do that, and the
# cost of this behavior in core ruby is enormous.
#
if version.satisfies?("< 3.1")
patch source: "ruby-fast-load_26.patch", plevel: 1, env: patch_env
if version.satisfies?("~> 2.6.0")
patch source: "ruby-faster-load_26.patch", plevel: 1, env: patch_env
end
if version.satisfies?(">=3.3")
if version.satisfies?(>=3.4)
patch source: "ruby-faster-load_34.patch", plevel: 1, env: patch_env
else
patch source: "ruby-faster-load_33.patch", plevel: 1, env: patch_env
end
else
patch source: "ruby-fast-load_31.patch", plevel: 1, env: patch_env
if version.satisfies?(">= 2.7")
patch source: "ruby-faster-load_27.patch", plevel: 1, env: patch_env
end
end

# this removes a checks for windows nano in the win32-ole files.
# windows nano is a dead platform and not supported by chef so we can avoid
# registry lookups by patching away this code
Expand Down

0 comments on commit 665d3b5

Please sign in to comment.