aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2015-02-19 00:21:25 +0800
committerXu Cheng2015-02-19 02:02:43 +0800
commita70500f28fb4c2b2e9eba3a595dbe4241fc78239 (patch)
treecd3034559c39d3c69241ae291a724a2ab151f5fb /Library/Homebrew
parentc11c459acf3325eb2a367eaf501ad734503b53dc (diff)
downloadhomebrew-a70500f28fb4c2b2e9eba3a595dbe4241fc78239.tar.bz2
ruby 1.8 doesn't have `sort_by!`
Closes #36935 Closes #36936. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew')
-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