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

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/useragent/bin/testfiles.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/useragent/bin/testfiles.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/useragent/bin/testfiles.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/useragent/bin/testfiles.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/useragent/bin/testfiles.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/useragent/bin/testfiles.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/useragent/bin/testfiles.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/useragent/bin/testfiles.js