Sha256: 2c3d0e4a78c818a6b1e2c9bdeb3e1bfaf9562f4fc4fe7e37084c2444f0cf965c
Contents?: true
Size: 809 Bytes
Versions: 17
Compression:
Stored size: 809 Bytes
Contents
#!/usr/bin/env node var request = require('request') , path = require('path') , fs = require('fs'); var files = { 'pgts.yaml': 'https://raw.github.com/tobie/ua-parser/master/test_resources/pgts_browser_list.yaml' , 'testcases.yaml': 'https://raw.github.com/tobie/ua-parser/master/test_resources/test_user_agent_parser.yaml' , 'firefoxes.yaml': 'https://raw.github.com/tobie/ua-parser/master/test_resources/firefox_user_agent_strings.yaml' }; /** * Update the fixtures */ Object.keys(files).forEach(function (key) { request(files[key], function response (err, res, data) { if (err || res.statusCode !== 200) return console.error('failed to update'); console.log('downloaded', files[key]); fs.writeFileSync(path.join(__dirname, '..', 'tests', 'fixtures', key), data); }); });
Version data entries
17 entries across 17 versions & 2 rubygems