summaryrefslogtreecommitdiff
path: root/variable.h
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2025-03-24 10:48:42 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-05-19 11:15:28 +0900
commiteb48418b4024c6a19725598ce088918c6392b69f (patch)
tree2c146bfcfa6563e8c3ec4be467abfd3ef4659941 /variable.h
parent72387ebd0e9520f0730bc959e2dff14d045c5d83 (diff)
[rubygems/rubygems] Ensure that Gem::Platform parses strings to a fix point
The issue was that the property that ```ruby platform = Gem::Platform.new $string platform == Gem::Platform.new(platform.to_s) ``` was not always true. This property (of acchieving a fix point) is important, since `Gem::Platform` gets serialized to a string and then deserialized back to a `Gem::Platform` object. If it doesn't deserialize to the same object, then different platforms are used for the initial serialization than subsequent runs. I used https://github.com/segiddins/Scratch/blob/main/2025/03/rubygems-platform.rb to find the failing cases and then fixed them. With this patch, the prop check test now passes. https://github.com/rubygems/rubygems/commit/313fb4bcec
Diffstat (limited to 'variable.h')
0 files changed, 0 insertions, 0 deletions