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