|
|
|
@ -7,10 +7,10 @@ module Docs
|
|
|
|
|
self.name = 'Support Tables'
|
|
|
|
|
self.slug = 'browser_support_tables'
|
|
|
|
|
self.type = 'support_tables'
|
|
|
|
|
self.release = '1.0.30001159'
|
|
|
|
|
self.release = '1.0.30001204'
|
|
|
|
|
|
|
|
|
|
def build_pages
|
|
|
|
|
url = 'https://github.com/Fyrd/caniuse/raw/master/data.json'
|
|
|
|
|
url = 'https://github.com/Fyrd/caniuse/raw/main/data.json'
|
|
|
|
|
instrument 'running.scraper', urls: [url]
|
|
|
|
|
|
|
|
|
|
response = Request.run(url)
|
|
|
|
@ -36,7 +36,7 @@ module Docs
|
|
|
|
|
yield index_page
|
|
|
|
|
|
|
|
|
|
data['data'].each do |feature_id, feature|
|
|
|
|
|
url = "https://github.com/Fyrd/caniuse/raw/master/features-json/#{feature_id}.json"
|
|
|
|
|
url = "https://github.com/Fyrd/caniuse/raw/main/features-json/#{feature_id}.json"
|
|
|
|
|
|
|
|
|
|
response = Request.run(url)
|
|
|
|
|
instrument 'process_response.scraper', response: response
|
|
|
|
|