support_tables: update, use npm versioning
Unified · Split
| @@ -7,6 +7,7 @@ module Docs · 6 unmodified lines | |||
| 7 | self.name = 'Support Tables' | 7 | self.name = 'Support Tables' |
| 8 | self.slug = 'browser_support_tables' | 8 | self.slug = 'browser_support_tables' |
| 9 | self.type = 'support_tables' | 9 | self.type = 'support_tables' |
| 10 | self.release = '1.0.30001159' | ||
| 10 | 11 | ||
| 11 | def build_pages | 12 | def build_pages |
| 12 | url = 'https://github.com/Fyrd/caniuse/raw/master/data.json' | 13 | url = 'https://github.com/Fyrd/caniuse/raw/master/data.json' |
| @@ -174,15 +175,13 @@ module Docs · 161 unmodified lines | |||
| 174 | <p class="_attribution-p"> | 175 | <p class="_attribution-p"> |
| 175 | Data by caniuse.com<br> | 176 | Data by caniuse.com<br> |
| 176 | Licensed under the Creative Commons Attribution License v4.0.<br> | 177 | Licensed under the Creative Commons Attribution License v4.0.<br> |
| 177 | <a href="http://caniuse.com/#feat=<%= feature_id %>" class="_attribution-link">http://caniuse.com/#feat=<%= feature_id %></a> | 178 | <a href="https://caniuse.com/<%= feature_id %>" class="_attribution-link">https://caniuse.com/<%= feature_id %></a> |
| 178 | </p> | 179 | </p> |
| 179 | </div> | 180 | </div> |
| 180 | HTML | 181 | HTML |
| 181 | 182 | ||
| 182 | def get_latest_version(opts) | 183 | def get_latest_version(opts) |
| 183 | body = fetch('https://feeds.feedburner.com/WhenCanIUse?format=xml', opts) | 184 | get_npm_version('caniuse-db', opts) |
| 184 | timestamp = body.scan(/<updated>([^<]+)<\/updated>/)[0][0] | ||
| 185 | DateTime.parse(timestamp).to_time.to_i | ||
| 186 | end | 185 | end |
| 187 | end | 186 | end |
| 188 | end | 187 | end |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| @@ -1 +1,2 @@ | |||
| 1 | http://www.entypo.com/ | 1 | https://caniuse.com/img/favicon-16.png |
| 2 | https://caniuse.com/img/favicon-128.png | ||