mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Remove knowledge of serialization details by marshaling twice
This commit is contained in:
parent
8c4569b7c2
commit
cbdb46887a
@ -29,11 +29,11 @@ class BuildEnvironment
|
|||||||
end
|
end
|
||||||
|
|
||||||
def _dump(*)
|
def _dump(*)
|
||||||
@settings.to_a.join(":")
|
Marshal.dump(@settings)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self._load(s)
|
def self._load(s)
|
||||||
new(*s.split(":").map(&:to_sym))
|
new(Marshal.load(s))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user