diff options
| author | Xu Cheng | 2015-02-19 00:21:25 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-02-19 02:02:43 +0800 |
| commit | 40087e30df7518114c47b570cc0c53898b0f678b (patch) | |
| tree | aea4147e84e03f838a311ac52b510b15a1e86add /Library | |
| parent | ce956eda8ec08c8955d1591a0f76701d7172b513 (diff) | |
| download | brew-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.rb | 2 |
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 |
