diff --git a/app/overrides/lib/rdf/model/uri_override.rb b/app/overrides/lib/rdf/model/uri_override.rb new file mode 100644 index 000000000..66d2d8d9b --- /dev/null +++ b/app/overrides/lib/rdf/model/uri_override.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true +# [hyc-override] https://github.com/ruby-rdf/rdf/blob/3.2.11/lib/rdf/model/uri.rb +RDF::URI.class_eval do + # [hyc-override] Wrap the entire method in mutex, rather than just the interior of the unless block + def freeze + @mutex.synchronize do + unless frozen? + # Create derived components + authority; userinfo; user; password; host; port + @value = value.freeze + @object = object.freeze + @hash = hash.freeze + super + end + end + self + end +end