`collect_concat` is not available in Ruby 1.8

`collect` is fine here. References #4719.
plus bugfix: join into a string so that `render_with_none`
knows to substitute "<NONE>"
This commit is contained in:
Roland Walker 2014-06-06 21:37:46 -04:00
parent 8da1d588bb
commit bd30615a88
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class Cask::CLI::Doctor
end
def self.locale_variables
ENV.keys.grep(/^(?:LC_\S+|LANG|LANGUAGE)\Z/).collect_concat { |v| %Q{#{v}="#{ENV[v]}"} }.sort
ENV.keys.grep(/^(?:LC_\S+|LANG|LANGUAGE)\Z/).collect { |v| %Q{#{v}="#{ENV[v]}"} }.sort.join("\n")
end
def self.privileged_uid