aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-14 01:00:23 -0500
committerJack Nagel2014-08-14 01:00:23 -0500
commit19e738db57a43550236722df5ed7bcf834e71c0c (patch)
tree24d0d9041bbd8350500980ea45329132e3c6d1f1 /Library/Homebrew/tab.rb
parent90a19a24542c27a1a3b11c77d009bd86b6896065 (diff)
downloadhomebrew-19e738db57a43550236722df5ed7bcf834e71c0c.tar.bz2
Use the as_flags method instead of map
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index c5286ea4e..c295fe90e 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -11,8 +11,8 @@ class Tab < OpenStruct
FILENAME = 'INSTALL_RECEIPT.json'
def self.create(formula, compiler, stdlib, build)
- Tab.new :used_options => build.used_options.map(&:to_s),
- :unused_options => build.unused_options.map(&:to_s),
+ Tab.new :used_options => build.used_options.as_flags,
+ :unused_options => build.unused_options.as_flags,
:tabfile => formula.prefix.join(FILENAME),
:built_as_bottle => !!ARGV.build_bottle?,
:poured_from_bottle => false,
@@ -122,8 +122,8 @@ class Tab < OpenStruct
def to_json
Utils::JSON.dump({
- :used_options => used_options.map(&:to_s),
- :unused_options => unused_options.map(&:to_s),
+ :used_options => used_options.as_flags,
+ :unused_options => unused_options.as_flags,
:built_as_bottle => built_as_bottle,
:poured_from_bottle => poured_from_bottle,
:tapped_from => tapped_from,