summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2024-01-30 08:20:59 -0500
committergit <svn-admin@ruby-lang.org>2024-02-02 21:38:04 +0000
commit31e4300ea704365e4578841d99ffadb1dfe5fd24 (patch)
tree6e904266f8d48cb9f872bf637d7b4e18fb06b1f2 /include/ruby
parent66a6f2b15a8827f830db7bf8cf8c8ebba79fa237 (diff)
[rubygems/rubygems] feat: Gem::Specification#initialize_copy deep-copies requirements
to avoid accidentally mutating the original's state when doing: ```ruby spec2 = spec.dup spec2.required_rubygems_version.concat([">= 3.3.22"]) ``` see https://github.com/rake-compiler/rake-compiler/pull/236 for a real-world use case that would be made simpler with this behavior. https://github.com/rubygems/rubygems/commit/c1d52389f0
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions