support_tables: update, use npm versioning

pull/1367/head
Simon Legner 4 years ago
parent 17e422192c
commit fc65b1bc39

@ -7,6 +7,7 @@ module Docs
self.name = 'Support Tables'
self.slug = 'browser_support_tables'
self.type = 'support_tables'
self.release = '1.0.30001159'
def build_pages
url = 'https://github.com/Fyrd/caniuse/raw/master/data.json'
@ -174,15 +175,13 @@ module Docs
<p class="_attribution-p">
Data by caniuse.com<br>
Licensed under the Creative Commons Attribution License v4.0.<br>
<a href="http://caniuse.com/#feat=<%= feature_id %>" class="_attribution-link">http://caniuse.com/#feat=<%= feature_id %></a>
<a href="https://caniuse.com/<%= feature_id %>" class="_attribution-link">https://caniuse.com/<%= feature_id %></a>
</p>
</div>
HTML
def get_latest_version(opts)
body = fetch('https://feeds.feedburner.com/WhenCanIUse?format=xml', opts)
timestamp = body.scan(/<updated>([^<]+)<\/updated>/)[0][0]
DateTime.parse(timestamp).to_time.to_i
get_npm_version('caniuse-db', opts)
end
end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 747 B

After

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -1 +1,2 @@
http://www.entypo.com/
https://caniuse.com/img/favicon-16.png
https://caniuse.com/img/favicon-128.png

Loading…
Cancel
Save