1
0

pig.rb 872 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. module Docs
  2. class Pig < UrlScraper
  3. self.name = 'Pig'
  4. self.type = 'pig'
  5. self.links = {
  6. home: 'https://pig.apache.org/'
  7. }
  8. html_filters.push 'pig/clean_html', 'pig/entries'
  9. options[:skip] = %w( pig-index.html )
  10. options[:skip_patterns] = [
  11. /\Aapi/,
  12. /\Ajdiff/
  13. ]
  14. options[:attribution] = <<-HTML
  15. &copy; 2007&ndash;2016 Apache Software Foundation<br>
  16. Licensed under the Apache Software License version 2.0.
  17. HTML
  18. version '0.15.0' do
  19. self.release = '0.15.0'
  20. self.base_url = "http://pig.apache.org/docs/r#{release}/"
  21. end
  22. version '0.14.0' do
  23. self.release = '0.14.0'
  24. self.base_url = "http://pig.apache.org/docs/r#{release}/"
  25. end
  26. version '0.13.0' do
  27. self.release = '0.13.0'
  28. self.base_url = "http://pig.apache.org/docs/r#{release}/"
  29. end
  30. end
  31. end