minitest.rb 910 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class Minitest < Rdoc
  3. # Instructions:
  4. # 1. Run "gem update rdoc hoe"
  5. # 2. Download the source code at https://github.com/seattlerb/minitest
  6. # 3. Run "rake docs" (in the Minitest directory)
  7. # 4. Copy the "docs" directory to "docs/minitest"
  8. self.name = 'Ruby / Minitest'
  9. self.slug = 'minitest'
  10. self.release = '5.20.0'
  11. self.links = {
  12. code: 'https://github.com/minitest/minitest'
  13. }
  14. self.base_url = 'https://docs.seattlerb.org/minitest/'
  15. html_filters.replace 'rdoc/entries', 'minitest/entries'
  16. options[:root_title] = 'Minitest'
  17. options[:attribution] = <<-HTML
  18. &copy; Ryan Davis, seattle.rb<br>
  19. Licensed under the MIT License.
  20. HTML
  21. def get_latest_version(opts)
  22. contents = get_github_file_contents('seattlerb', 'minitest', 'History.rdoc', opts)
  23. contents.scan(/([0-9.]+)/)[0][0]
  24. end
  25. end
  26. end