aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-02-19 00:21:25 +0800
committerXu Cheng2015-02-19 02:02:43 +0800
commit40087e30df7518114c47b570cc0c53898b0f678b (patch)
treeaea4147e84e03f838a311ac52b510b15a1e86add /Library
parentce956eda8ec08c8955d1591a0f76701d7172b513 (diff)
downloadbrew-40087e30df7518114c47b570cc0c53898b0f678b.tar.bz2
ruby 1.8 doesn't have `sort_by!`
Closes Homebrew/homebrew#36935 Closes Homebrew/homebrew#36936. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 6e76a34d8..2edb44f59 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -615,7 +615,7 @@ class Formula
}
end
- hsh["installed"].sort_by! { |i| Version.new(i["version"]) }
+ hsh["installed"] = hsh["installed"].sort_by { |i| Version.new(i["version"]) }
end
hsh