1
0

minitest.rb 852 B

123456789101112131415161718192021222324252627282930
  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.11.3'
  11. self.links = {
  12. code: 'https://github.com/seattlerb/minitest'
  13. }
  14. html_filters.replace 'rdoc/entries', 'minitest/entries'
  15. options[:root_title] = 'Minitest'
  16. options[:attribution] = <<-HTML
  17. &copy; Ryan Davis, seattle.rb<br>
  18. Licensed under the MIT License.
  19. HTML
  20. def get_latest_version(opts)
  21. contents = get_github_file_contents('seattlerb', 'minitest', 'History.rdoc', opts)
  22. contents.scan(/([0-9.]+)/)[0][0]
  23. end
  24. end
  25. end