diff options
| author | Josh Hagins | 2016-10-09 19:44:24 -0400 | 
|---|---|---|
| committer | Josh Hagins | 2016-10-24 16:21:08 -0400 | 
| commit | ce33f593b4259d5710cdf36da808be884ddedeef (patch) | |
| tree | 6924d2b55396c2f991d02c52ba02ecba0116acaa | |
| parent | c46155aba48b1b4ee99aa9d9fb1e0067e899e1e1 (diff) | |
| download | brew-ce33f593b4259d5710cdf36da808be884ddedeef.tar.bz2 | |
metafiles: convert EXTENSIONS and BASENAMES from Array to Set
| -rw-r--r-- | Library/Homebrew/metafiles.rb | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/Library/Homebrew/metafiles.rb b/Library/Homebrew/metafiles.rb index bef48f3cf..d2d9e1877 100644 --- a/Library/Homebrew/metafiles.rb +++ b/Library/Homebrew/metafiles.rb @@ -1,13 +1,15 @@ +require "set" +  class Metafiles    # https://github.com/github/markup#markups    EXTENSIONS = %w[      .adoc .asc .asciidoc .creole .html .markdown .md .mdown .mediawiki .mkdn      .org .pod .rdoc .rst .rtf .textile .txt .wiki -  ].freeze +  ].to_set.freeze    BASENAMES = %w[      about authors changelog changes copying copyright history license licence      news notes notice readme todo -  ].freeze +  ].to_set.freeze    def self.list?(file)      return false if %w[.DS_Store INSTALL_RECEIPT.json].include?(file) | 
