From 19e738db57a43550236722df5ed7bcf834e71c0c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 14 Aug 2014 01:00:23 -0500 Subject: Use the as_flags method instead of map --- Library/Homebrew/tab.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Library/Homebrew/tab.rb') 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, -- cgit v1.2.3