| 123456789101112131415161718192021222324252627 |
- module Docs
- class Pygame < UrlScraper
- self.type = 'simple'
- self.release = '1.9.4'
- self.base_url = 'https://www.pygame.org/docs/'
- self.root_path = 'py-modindex.html'
- self.links = {
- home: 'https://www.pygame.org/',
- code: 'https://github.com/pygame/pygame'
- }
- html_filters.push 'pygame/clean_html', 'pygame/entries'
- options[:only_patterns] = [/ref\//]
- options[:attribution] = <<-HTML
- © Pygame Developpers.<br>
- Licensed under the GNU LGPL License version 2.1.
- HTML
- def get_latest_version(options, &block)
- get_latest_github_release('pygame', 'pygame', options) do |release|
- block.call release['tag_name']
- end
- end
- end
- end
|