sinon.rb 753 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class Sinon < UrlScraper
  3. self.name = 'Sinon.JS'
  4. self.slug = 'sinon'
  5. self.type = 'sinon'
  6. self.links = {
  7. home: 'http://sinonjs.org/',
  8. code: 'https://github.com/sinonjs/sinon'
  9. }
  10. html_filters.push 'sinon/clean_html', 'sinon/entries'
  11. options[:title] = 'Sinon.JS'
  12. options[:container] = '.content .container'
  13. options[:attribution] = <<-HTML
  14. &copy; 2010&ndash;2017 Christian Johansen<br>
  15. Licensed under the BSD License.
  16. HTML
  17. version '2' do
  18. self.release = '2.3.8'
  19. self.base_url = "http://sinonjs.org/releases/v#{release}/"
  20. end
  21. version '1' do
  22. self.release = '1.17.7'
  23. self.base_url = "http://sinonjs.org/releases/v#{release}/"
  24. end
  25. end
  26. end