28 lines · 658 B · Ruby
RawDownload
module Docs  class Composer < UrlScraper    self.type = 'simple'    self.release = '2.4.1'    self.base_url = 'https://getcomposer.org/doc/'    self.links = {      home: 'https://getcomposer.org',      code: 'https://github.com/composer/composer'    }     html_filters.push 'composer/clean_html', 'composer/entries'     options[:container] = '#main'     options[:skip_patterns] = [      /^faqs/    ]     options[:attribution] = <<-HTML      &copy; Nils Adermann, Jordi Boggiano<br>      Licensed under the MIT License.    HTML     def get_latest_version(opts)      get_latest_github_release('composer', 'composer', opts)    end  endend

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t