File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Portaudio < Formula
1313 regex ( /href=.*?pa[._-]stable[._-]v?(\d +)(?:[._-]\d +)?\. t/i )
1414 strategy :page_match do |page , regex |
1515 # Modify filename version (190700) to match formula version (19.7.0)
16- page . scan ( regex ) . map { |match | match &. first &. scan ( /\d {2}/ ) & .map ( &:to_i ) & .join ( "." ) }
16+ page . scan ( regex ) . map { |match | match [ 0 ] . scan ( /\d {2}/ ) . map ( &:to_i ) . join ( "." ) }
1717 end
1818 end
1919
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def caveats
138138
139139 flags = [ "x" , "w" , "r" ] * 3
140140 perms = flags . each_with_index . reduce ( "" ) do |sum , ( flag , index ) |
141- sum . insert 0 , ( ( stat . mode & ( 2 ** index ) ) . zero? ? "-" : flag )
141+ sum . insert 0 , ( stat . mode . nobits? ( 2 ** index ) ? "-" : flag )
142142 end
143143
144144 out = shell_output ( "#{ bin } /namei -lx /usr" ) . split ( "\n " ) . last . split
You can’t perform that action at this time.
0 commit comments