Unified · Split
| @@ -46,7 +46,9 @@ module Docs · 45 unmodified lines | ||
| 46 | 46 | end |
| 47 | 47 | |
| 48 | 48 | def request_bcd_uris |
| 49 | − index_json = JSON.load(Net::HTTP.get(URI(current_url.to_s + '/index.json'))) | |
| 49 | + url = current_url.to_s + '/index.json' | |
| 50 | + response = Request.run url | |
| 51 | + index_json = JSON.load response.body | |
| 50 | 52 | |
| 51 | 53 | uris = [] |
| 52 | 54 | |
| @@ -63,9 +65,9 @@ module Docs · 10 unmodified lines | ||
| 63 | 65 | return uris |
| 64 | 66 | end |
| 65 | 67 | |
| 66 | − def generate_compatibility_table_wrapper(uri) | |
| 67 | − | |
| 68 | − @json_data = JSON.load(Net::HTTP.get(URI(uri)))['data'] | |
| 68 | + def generate_compatibility_table_wrapper(url) | |
| 69 | + response = Request.run url | |
| 70 | + @json_data = JSON.load(response.body)['data'] | |
| 69 | 71 | |
| 70 | 72 | html_table = generate_basic_html_table() |
| 71 | 73 | |