diff options
| author | Xu Cheng | 2015-02-19 00:21:25 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-02-19 02:02:43 +0800 |
| commit | a70500f28fb4c2b2e9eba3a595dbe4241fc78239 (patch) | |
| tree | cd3034559c39d3c69241ae291a724a2ab151f5fb /Library/Homebrew | |
| parent | c11c459acf3325eb2a367eaf501ad734503b53dc (diff) | |
| download | homebrew-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.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 |
