mirror of
https://github.com/ivuorinen/homebrew-tap.git
synced 2026-03-13 11:00:55 +00:00
refactor: fix Style/OneClassPerFile by extracting top-level definitions into separate files (#18)
This commit is contained in:
@@ -6,14 +6,7 @@ require "json"
|
||||
require "fileutils"
|
||||
require "pathname"
|
||||
require "date"
|
||||
|
||||
# Simple polyfill for Homebrew extensions
|
||||
class String
|
||||
def blank?
|
||||
# Polyfill implementation to avoid external dependencies
|
||||
nil? || empty? # rubocop:disable Homebrew/Blank, Lint/RedundantCopDisableDirective
|
||||
end
|
||||
end
|
||||
require_relative "string_extensions"
|
||||
|
||||
# Parser class for extracting metadata from Homebrew formulae
|
||||
class FormulaParser
|
||||
|
||||
Reference in New Issue
Block a user