`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:
parent
8da1d588bb
commit
bd30615a88
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue