diff options
| -rw-r--r-- | Library/Homebrew/formula.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 93671ecb4..72c8bdff0 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -749,6 +749,15 @@ class Formula "caveats" => caveats } + hsh["requirements"] = requirements.map do |req| + { + "name" => req.name, + "default_formula" => req.default_formula, + "cask" => req.cask, + "download" => req.download + } + end + hsh["options"] = options.map { |opt| { "option" => opt.flag, "description" => opt.description } } |
