aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-07 18:12:24 -0500
committerJack Nagel2014-07-07 18:12:24 -0500
commitd96b53c6e9292be774649afced073376e3abca8c (patch)
tree0f98b7073bbe419fbaed6673641d2e242e2c4a12 /Library
parent81638c90785608921346cef16f14aedcd8c1878a (diff)
downloadhomebrew-d96b53c6e9292be774649afced073376e3abca8c.tar.bz2
Remove knowledge of serialization details by marshaling twice
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/build_environment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/build_environment.rb b/Library/Homebrew/build_environment.rb
index 1ac51d157..9b987f112 100644
--- a/Library/Homebrew/build_environment.rb
+++ b/Library/Homebrew/build_environment.rb
@@ -29,11 +29,11 @@ class BuildEnvironment
end
def _dump(*)
- @settings.to_a.join(":")
+ Marshal.dump(@settings)
end
def self._load(s)
- new(*s.split(":").map(&:to_sym))
+ new(Marshal.load(s))
end
end