redux.rb 646 B

12345678910111213141516171819202122232425262728
  1. module Docs
  2. class Redux < UrlScraper
  3. self.type = 'simple'
  4. self.release = '3.7.2'
  5. self.base_url = 'http://redux.js.org/docs/'
  6. self.links = {
  7. home: 'http://redux.js.org/',
  8. code: 'https://github.com/reactjs/redux/'
  9. }
  10. html_filters.push 'redux/entries', 'redux/clean_html'
  11. options[:skip] = %w(Feedback.html)
  12. options[:attribution] = <<-HTML
  13. &copy; 2015&ndash;2017 Dan Abramov<br>
  14. Licensed under the MIT License.
  15. HTML
  16. stub '' do
  17. request_one('http://redux.js.org/index.html').body
  18. end
  19. def get_latest_version(opts)
  20. get_npm_version('redux', opts)
  21. end
  22. end
  23. end