| 12345678910111213141516171819202122232425262728293031 |
- module Docs
- class Minitest < Rdoc
- # Instructions:
- # 1. Run "gem update rdoc hoe"
- # 2. Download the source code at https://github.com/seattlerb/minitest
- # 3. Run "rake docs" (in the Minitest directory)
- # 4. Copy the "docs" directory to "docs/minitest"
- self.name = 'Ruby / Minitest'
- self.slug = 'minitest'
- self.release = '5.20.0'
- self.links = {
- code: 'https://github.com/minitest/minitest'
- }
- self.base_url = 'https://docs.seattlerb.org/minitest/'
- html_filters.replace 'rdoc/entries', 'minitest/entries'
- options[:root_title] = 'Minitest'
- options[:attribution] = <<-HTML
- © Ryan Davis, seattle.rb<br>
- Licensed under the MIT License.
- HTML
- def get_latest_version(opts)
- contents = get_github_file_contents('seattlerb', 'minitest', 'History.rdoc', opts)
- contents.scan(/([0-9.]+)/)[0][0]
- end
- end
- end
|