-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathhomebrew.rb
More file actions
27 lines (22 loc) · 775 Bytes
/
homebrew.rb
File metadata and controls
27 lines (22 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module Docs
class Homebrew < UrlScraper
self.name = 'Homebrew'
self.type = 'simple'
self.release = '4.0.15'
self.base_url = 'https://docs.brew.sh/'
self.links = {
home: 'https://brew.sh',
code: 'https://github.com/Homebrew/brew'
}
html_filters.push 'homebrew/entries', 'homebrew/clean_html'
options[:container] = ->(filter) { filter.root_page? ? '#home' : '#page' }
options[:skip_patterns] = [/maintainer/i, /core\-contributor/i, /kickstarter/i, /governance/i]
options[:attribution] = <<-HTML
© 2009–present Homebrew contributors<br>
Licensed under the BSD 2-Clause License.
HTML
def get_latest_version(opts)
get_latest_github_release('Homebrew', 'brew', opts)
end
end
end