Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incrementing version to the latest #11

Merged
merged 104 commits into from
Apr 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
966cff1
adxcgBidAdapter native update (#3647)
adxcgcom Mar 18, 2019
f584653
Update Bidder Code (#3646)
trchandraprakash Mar 18, 2019
70d2808
Add brand ID to OpenX bid responses (#3630)
kelvin-chappell Mar 18, 2019
4fd7c47
Sonobi - Analytics Adapter (#3615)
JonGoSonobi Mar 18, 2019
63c1d36
add 'hb_cache_host' and 'hb_cache_path' targeting for video bids usin…
Mar 19, 2019
9e0f11f
Adding Optimera/AppNexus workaround documentation #3597 (#3598)
Mar 19, 2019
b5b27aa
Add buyer data to Pubmatic bid responses (#3619)
kelvin-chappell Mar 19, 2019
90cefb8
Revert "add 'hb_cache_host' and 'hb_cache_path' targeting for video b…
Mar 19, 2019
c0fdf02
modules: Implement SmartRTB adapter and spec. (#3575)
evanmsmrtb Mar 19, 2019
2163303
add tmax to BidRequest params (#3626)
kusapan Mar 19, 2019
633b9b9
Prebid 2.7.0 Release
bretg Mar 19, 2019
6cd91f9
Increment pre version
bretg Mar 19, 2019
97eb9d6
OpenX: Bugfix/update custom floors (#3658)
lambdarho Mar 21, 2019
460740b
Adpone Bid Adapter + test (#3663)
seergiioo6 Mar 22, 2019
e604ab3
ADman Media new bidder adapter (#3639)
admanmedia Mar 22, 2019
eba2ab5
sortable bidadapter replace syncurl to camel case (#3667)
ileonovdima Mar 22, 2019
033e76b
Update Adikteev adapter (PR updated) (#3391)
piotr-yuxuan Mar 24, 2019
b46e0b5
Synacormedia new features (position & bid floor) (#3662)
amuraco Mar 24, 2019
04b1ec2
Improve Digital adapter: use Prebid sizes param (#3648)
jbartek25 Mar 25, 2019
f77b78c
Add new s2s config option (#3643)
thomas-33across Mar 25, 2019
3e5190d
Adjust TTL for MANTIS adapter (#3676)
parisholley Mar 25, 2019
b9fb264
Add hb_uuid and hb_cache_id back to dfp module (#3668)
jaiminpanchal27 Mar 26, 2019
12882f9
fix spelling of 'country' (#3679)
Mar 26, 2019
010f203
Kargo migration to localstorage alternatives (#3672)
samuelhorwitz Mar 26, 2019
876a714
ReklamStore Bid Adapter (#3634)
ReklamStoreIT Mar 26, 2019
cc80fe3
support userId module (#3675)
HolzAndrew Mar 26, 2019
c1fbba2
Cedato new bid adapter (#3629)
alexkh13 Mar 26, 2019
0f01ce3
Rubicon Bid Adapter: custom price granularity fix (#3670)
Mar 26, 2019
9d8a37b
Added MediaFuse Lift alias to Orbitsoft adapter (#3682)
Macheta Mar 26, 2019
e74bf6c
Add buyer data to Index bid responses (#3585)
kelvin-chappell Mar 26, 2019
cce5b6e
Ensure width and height are integers (#3674)
benjaminclot Mar 26, 2019
6d8ad70
Prebid 2.8.0 Release
jsnellbaker Mar 26, 2019
68a342c
increment pre version
jsnellbaker Mar 26, 2019
b06919c
add privacyLink for native (#3680)
naoto0822 Mar 27, 2019
155b42a
Finteza adapter: fix request params (#3690)
finteza Mar 29, 2019
9b0fd37
update stalebot labels (#3697)
jsnellbaker Apr 1, 2019
d3f4d28
Rvr 2369 Refactor events handling (#3683)
Apr 1, 2019
3b43f25
Native related code refactor (#3637)
pm-harshad-mane Apr 1, 2019
6723904
Rvr 2369 add trackable add ad units event (#3691)
Apr 1, 2019
14ecb8a
Bidphysics Bid Adapter (#3666)
bidphysics Apr 1, 2019
95872c1
Update vidazooBidAdapter.js (#3689)
thewizarodofoz Apr 2, 2019
f95267b
Add gdpr_consented_providers for google gdpr (#3688)
xiaofengC Apr 2, 2019
c060a5c
Add 'hb_cache_host' targeting for video bids when cache is set (#3654)
Apr 2, 2019
3b2093a
remove removeRequestId logic (#3698)
jsnellbaker Apr 3, 2019
19bdc65
Prebid 2.9.0 Release
Apr 3, 2019
98b7f7e
increment prebid version
Apr 3, 2019
eeddc24
User ID Module (#3424)
Apr 4, 2019
edbe587
Rubicon Adapter - support User ID module (#3531)
Apr 4, 2019
2ff4226
Report og:url when present (#3699)
afro-cloud Apr 5, 2019
111b82f
Telaria Adapter: GDPR support (#3701)
telariaEng Apr 5, 2019
e7c39f9
PubMatic adapter: adding support for IAB bcat parameter (#3702)
pm-harshad-mane Apr 5, 2019
b6f0e6c
Update Cedato bid adapter (#3704)
alexkh13 Apr 5, 2019
f6cf5e8
Add user id support to Beachfront adapter (#3708)
jsalis Apr 5, 2019
0664a18
[QuantumBidAdapter][Other] Change maintainer email and resize service…
elebruchec-adux Apr 5, 2019
df312c1
add console message when number of adunits exceeds point (#3707)
jsnellbaker Apr 5, 2019
140f73c
[QuantumBidAdapter][Feature] Add eventrackers field in response inter…
elebruchec-adux Apr 5, 2019
711016d
Sonobi Adapter - support User ID module (#3532)
Apr 5, 2019
d877177
Update Grid Bid Adapter (#3681)
TheMediaGrid Apr 9, 2019
9b7b407
feat(adyoulikeAdapter): use only https protocol (#3692)
j343my Apr 9, 2019
a53deb9
added an auctionId parameter to requestBids (#3622)
Apr 9, 2019
ac2ef45
fix bidTimeout event (#3696)
thewizarodofoz Apr 9, 2019
0b1486e
Default debug change and remove setConfig hook (#3714)
snapwich Apr 9, 2019
538d46d
Sonobi - Add ius param to bid request endpoint (#3657)
JonGoSonobi Apr 9, 2019
0af99c6
Add support for getting video player size from playerSize property. (…
sa1omon Apr 9, 2019
40efe8a
reject invalid values in adpod adunit (#3729)
jsnellbaker Apr 10, 2019
cde8f16
Revert "Default debug change and remove setConfig hook (#3714)" (#3736)
jsnellbaker Apr 10, 2019
94897e4
Prebid 2.10.0 Release
jsnellbaker Apr 10, 2019
b7bd1ed
increment pre version
jsnellbaker Apr 10, 2019
481c79a
removed depricated function and added referer to request (#3728)
nwlosinski Apr 11, 2019
a55528a
Gamoshi: Fix video player size (#3718)
sa1omon Apr 11, 2019
8a5fb79
Update og:url param key (#3732)
afro-cloud Apr 11, 2019
220f80f
add stv adapter (#3737)
onlsol Apr 11, 2019
f9eca77
YIELDONE adapter - add outstream video renderer (#3655)
kusapan Apr 12, 2019
ac38957
Updated IX Adapter (#3744)
ix-prebid-development Apr 15, 2019
2431715
Sortable - Analytics Adapter (#3705)
danielMi16 Apr 16, 2019
cc2f394
Yieldnexus: Add video player size (#3727)
sa1omon Apr 16, 2019
f3244db
Update rubiconBidAdapter.js (#3753)
robertrmartinez Apr 16, 2019
2f0e98d
Prebid 2.11.0 Release
Apr 16, 2019
8de1fac
Increment pre version
Apr 17, 2019
984dfb1
PubCommonId - Add support for localStorage (#3661)
pycnvr Apr 18, 2019
e119938
Rubicon BidAdapter - SRA support for >10 bids (#3514)
Apr 18, 2019
8016edb
SpotX: Add hide_skin parameter (#3760)
spotxslagle Apr 19, 2019
9ffff94
Added dealId to response (#3762)
richaudience Apr 19, 2019
12eceea
add ShowHeroes Adapter (#3733)
vadim-mazzherin Apr 19, 2019
fee6194
adding instream capabilities to emx_digital adapter (#3752)
EMXDigital Apr 19, 2019
3e97e59
change externalUid to camelcase (#3757)
sumit116 Apr 19, 2019
542b990
Sonobi Adapter - Support UnifiedId/tradedesk from user id module (#3743)
JonGoSonobi Apr 19, 2019
69f114a
change matching url (#3730)
ignat-one Apr 19, 2019
8ff71ae
update aja adaptor: add page_url parameter (#3722)
naoto0822 Apr 20, 2019
95e9cdf
Update supported sizes in adapter bid response (#3738)
madma Apr 20, 2019
b481489
wrapperType and wrapperVersion parameters for TrustX Bid Adapter (#3751)
PWyrembak Apr 20, 2019
7e39777
Add Go2Net Adapter (#3763)
AdmixerTech Apr 20, 2019
71d5753
[Native] Add privacyIcon for native ad (#3770)
zhenyi2697 Apr 22, 2019
1ef6197
Synacormedia: Added video support to adapter. (#3695)
amuraco Apr 22, 2019
253cbf4
Improve emoteevBidAdapter (#3673)
piotr-yuxuan Apr 22, 2019
c14f915
fix handling of gdpr object (#3756)
Apr 23, 2019
b491a05
Add NAF Digital Bidder Adapter (#3750)
vyatsun Apr 23, 2019
49afe63
Automated functional tests for longform testpages (#3659)
jsnellbaker Apr 23, 2019
449fc72
Prebid 2.12.0 Release
Apr 23, 2019
b42627b
Increment pre version
Apr 23, 2019
2741f95
Sovrn Analytics Adapter (#3761)
aprakash-sovrn Apr 25, 2019
f1aeb85
Update VIS.X bid adapter (#3777)
mk0x9 Apr 25, 2019
16b46ae
Debug Unit Test Issue in CircleCI (#3754)
Apr 26, 2019
b1e174f
updating lock file
Apr 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exemptLabels:
- security
- bug
- feature
- on hold
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
Expand Down
40 changes: 24 additions & 16 deletions browsers.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{
"bs_ie_14_windows_10": {
"bs_edge_16_windows_10": {
"base": "BrowserStack",
"os_version": "10",
"browser": "edge",
"browser_version": "14.0",
"browser_version": "16.0",
"device": null,
"os": "Windows"
},
"bs_edge_17_windows_10": {
"base": "BrowserStack",
"os_version": "10",
"browser": "edge",
"browser_version": "17.0",
"device": null,
"os": "Windows"
},
Expand All @@ -15,51 +23,51 @@
"device": null,
"os": "Windows"
},
"bs_chrome_62_windows_10": {
"bs_chrome_72_windows_10": {
"base": "BrowserStack",
"os_version": "10",
"browser": "chrome",
"browser_version": "62.0",
"browser_version": "72.0",
"device": null,
"os": "Windows"
},
"bs_chrome_61_windows_10": {
"bs_chrome_71_windows_10": {
"base": "BrowserStack",
"os_version": "10",
"browser": "chrome",
"browser_version": "61.0",
"browser_version": "71.0",
"device": null,
"os": "Windows"
},
"bs_firefox_58_windows_10": {
"bs_firefox_65_windows_10": {
"base": "BrowserStack",
"os_version": "10",
"browser": "firefox",
"browser_version": "58.0",
"browser_version": "65.0",
"device": null,
"os": "Windows"
},
"bs_firefox_57_windows_10": {
"bs_firefox_64_windows_10": {
"base": "BrowserStack",
"os_version": "10",
"browser": "firefox",
"browser_version": "57.0",
"browser_version": "64.0",
"device": null,
"os": "Windows"
},
"bs_safari_9.1_mac_elcapitan": {
"bs_safari_11_mac_high_sierra": {
"base": "BrowserStack",
"os_version": "El Capitan",
"os_version": "High Sierra",
"browser": "safari",
"browser_version": "9.1",
"browser_version": "11.1",
"device": null,
"os": "OS X"
},
"bs_safari_8_mac_yosemite": {
"bs_safari_12_mac_mojave": {
"base": "BrowserStack",
"os_version": "Yosemite",
"os_version": "Mojave",
"browser": "safari",
"browser_version": "8.0",
"browser_version": "12.0",
"device": null,
"os": "OS X"
}
Expand Down
78 changes: 9 additions & 69 deletions gulpHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const fs = require('fs.extra');
const path = require('path');
const argv = require('yargs').argv;
const MANIFEST = 'package.json';
const exec = require('child_process').exec;
const through = require('through2');
const _ = require('lodash');
const gutil = require('gulp-util');
Expand All @@ -13,7 +12,6 @@ const BUILD_PATH = './build/dist';
const DEV_PATH = './build/dev';
const ANALYTICS_PATH = '../analytics';


// get only subdirectories that contain package.json with 'main' property
function isModuleDirectory(filePath) {
try {
Expand All @@ -22,8 +20,7 @@ function isModuleDirectory(filePath) {
const module = require(manifestPath);
return module && module.main;
}
}
catch (error) {}
} catch (error) {}
}

module.exports = {
Expand All @@ -38,8 +35,8 @@ module.exports = {
jsonifyHTML: function (str) {
console.log(arguments);
return str.replace(/\n/g, '')
.replace(/<\//g, '<\\/')
.replace(/\/>/g, '\\/>');
.replace(/<\//g, '<\\/')
.replace(/\/>/g, '\\/>');
},
getArgModules() {
var modules = (argv.modules || '').split(',').filter(module => !!module);
Expand All @@ -52,7 +49,7 @@ module.exports = {
fs.readFileSync(moduleFile, 'utf8')
);
}
} catch(e) {
} catch (e) {
throw new gutil.PluginError({
plugin: 'modules',
message: 'failed reading: ' + argv.modules
Expand All @@ -72,19 +69,19 @@ module.exports = {
var moduleName = file.split(new RegExp('[.\\' + path.sep + ']'))[0];
var modulePath = path.join(absoluteModulePath, file);
if (fs.lstatSync(modulePath).isDirectory()) {
modulePath = path.join(modulePath, "index.js")
modulePath = path.join(modulePath, 'index.js')
}
memo[modulePath] = moduleName;
return memo;
}, {});
} catch(err) {
} catch (err) {
internalModules = {};
}
return Object.assign(externalModules.reduce((memo, module) => {
try {
var modulePath = require.resolve(module);
memo[modulePath] = module;
} catch(err) {
} catch (err) {
// do something
}
return memo;
Expand All @@ -93,7 +90,7 @@ module.exports = {

getBuiltModules: function(dev, externalModules) {
var modules = this.getModuleNames(externalModules);
if(Array.isArray(externalModules)) {
if (Array.isArray(externalModules)) {
modules = _.intersection(modules, externalModules);
}
return modules.map(name => path.join(__dirname, dev ? DEV_PATH : BUILD_PATH, name + '.js'));
Expand Down Expand Up @@ -128,7 +125,7 @@ module.exports = {
* Returns an array of source files for inclusion in build process
*/
getAnalyticsSources: function() {
if (!argv.analytics) {return [];} // empty arrays won't affect a standard build
if (!argv.analytics) { return []; } // empty arrays won't affect a standard build

const directoryContents = fs.readdirSync(ANALYTICS_PATH);
return directoryContents
Expand All @@ -155,62 +152,5 @@ module.exports = {
}

return options;
},

createEnd2EndTestReport : function(targetDestinationDir) {
var browsers = require('./browsers.json');
var env = [];
var input = 'bs';
for(var key in browsers) {
if(key.substring(0, input.length) === input && browsers[key].browser !== 'iphone') {
env.push(key);
}
}

//create new directory structure
fs.rmrfSync(targetDestinationDir);
env.forEach(item => {
fs.mkdirpSync(targetDestinationDir + '/' + item);
});

//move xml files to newly created directory
var walker = fs.walk('./build/coverage/e2e/reports');
walker.on("file", function (root, stat, next) {
env.forEach(item => {
if(stat.name.search(item) !== -1) {
var src = root + '/' + stat.name;
var dest = targetDestinationDir + '/' + item + '/' + stat.name;
fs.copy(src, dest, {replace: true}, function(err) {
if(err) {
throw err;
}
});
}
});
next();
});

//run junit-viewer to read xml and create html
env.forEach(item => {
//junit-viewer --results="./custom-reports/chrome51" --save="./chrome.html"
var cmd = 'junit-viewer --results="' + targetDestinationDir + '/' + item + '" --save="' + targetDestinationDir + '/' + item +'.html"';
exec(cmd);
});

//create e2e-results.html
var html = '<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>End to End Testing Result</title><link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css"><script src="https://code.jquery.com/jquery-1.12.4.js"></script><script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script><script>$( function() {$( "#tabs" ).tabs({heightStyle: "fill"});});</script></head><body><div style="font-weight: bold;">Note: Refresh in 2-3 seconds if it says "Cannot get ....."</div><div id="tabs" style="height:2000px;">';
var li = '';
var tabs = '';
env.forEach(function(item,i) {
i++;
li = li + '<li><a href="#tabs-'+i+'">'+item+'</a></li>';
tabs = tabs + '<div id="tabs-'+i+'"><iframe name="'+item+'" src="/' + targetDestinationDir.slice(2) + '/'+item+'.html" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;top:50px;left:0px;right:0px;bottom:0px" height="100%" width="100%"></iframe></div>';
});
html = html + '<ul>' + li + '</ul>' + tabs;
html = html + '</div></body></html>';

var filepath = targetDestinationDir + '/results.html';
fs.openSync(filepath, 'w+');
fs.writeFileSync(filepath, html);
}
};
77 changes: 27 additions & 50 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var sourcemaps = require('gulp-sourcemaps');
var through = require('through2');
var fs = require('fs');
var jsEscape = require('gulp-js-escape');
const path = require('path');
const execa = require('execa');

var prebid = require('./package.json');
var dateString = 'Updated : ' + (new Date()).toISOString().substring(0, 10);
Expand All @@ -51,22 +53,6 @@ function clean() {
.pipe(gulpClean());
}

function e2etestReport() {
var reportPort = 9010;
var targetDestinationDir = './e2etest-report';
helpers.createEnd2EndTestReport(targetDestinationDir);
connect.server({
port: reportPort,
root: './',
livereload: true
});

setTimeout(function() {
opens('http://localhost:' + reportPort + '/' + targetDestinationDir.slice(2) + '/results.html');
}, 5000);
};
e2etestReport.displayName = 'e2etest-report';

// Dependant task for building postbid. It escapes postbid-config file.
function escapePostbidConfig() {
gulp.src('./integrationExamples/postbid/oas/postbid-config.js')
Expand All @@ -92,13 +78,14 @@ function lint(done) {
// View the code coverage report in the browser.
function viewCoverage(done) {
var coveragePort = 1999;
var mylocalhost = (argv.host) ? argv.host : 'localhost';

connect.server({
port: coveragePort,
root: 'build/coverage/karma_html',
livereload: false
});
opens('http://localhost:' + coveragePort);
opens('http://' + mylocalhost + ':' + coveragePort);
done();
};

Expand Down Expand Up @@ -244,6 +231,13 @@ function newKarmaCallback(done) {
function test(done) {
if (argv.notest) {
done();
} else if (argv.e2e) {
let wdioCmd = path.join(__dirname, 'node_modules/.bin/wdio');
let wdioConf = path.join(__dirname, 'wdio.conf.js');
let wdioOpts = [
wdioConf
];
return execa(wdioCmd, wdioOpts, { stdio: 'inherit' });
} else {
var karmaConf = karmaConfMaker(false, argv.browserstack, argv.watch, argv.file);

Expand All @@ -268,35 +262,6 @@ function coveralls() { // 2nd arg is a dependency: 'test' must be finished
.pipe(shell('cat build/coverage/lcov.info | node_modules/coveralls/bin/coveralls.js'));
}

function e2eTest() {
var cmdQueue = [];
if (argv.browserstack) {
var browsers = require('./browsers.json');
delete browsers['bs_ie_9_windows_7'];

var cmdStr = ' --config nightwatch.conf.js';
if (argv.group) {
cmdStr = cmdStr + ' --group ' + argv.group;
}
cmdStr = cmdStr + ' --reporter ./test/spec/e2e/custom-reporter/pbjs-html-reporter.js';

var startWith = 'bs';

Object.keys(browsers).filter(function(v) {
return v.substring(0, startWith.length) === startWith && browsers[v].browser !== 'iphone';
}).map(function(v, i, arr) {
var newArr = (i % 2 === 0) ? arr.slice(i, i + 2) : null;
if (newArr) {
var cmd = 'nightwatch --env ' + newArr.join(',') + cmdStr;
cmdQueue.push(cmd);
}
});
}

return gulp.src('')
.pipe(shell(cmdQueue.join(';')));
}

// This task creates postbid.js. Postbid setup is different from prebid.js
// More info can be found here http://prebid.org/overview/what-is-post-bid.html

Expand All @@ -308,6 +273,21 @@ function buildPostbid() {
.pipe(gulp.dest('build/postbid/'));
}

function setupE2e(done) {
if (!argv.host) {
throw new gutil.PluginError({
plugin: 'E2E test',
message: gutil.colors.red('Host should be defined e.g. ap.localhost, anlocalhost. localhost cannot be used as safari browserstack is not able to connect to localhost')
});
}
process.env.TEST_SERVER_HOST = argv.host;
if (argv.https) {
process.env.TEST_SERVER_PROTOCOL = argv.https;
}
argv.e2e = true;
done();
}

// support tasks
gulp.task(lint);
gulp.task(watch);
Expand All @@ -333,12 +313,9 @@ gulp.task('build-postbid', gulp.series(escapePostbidConfig, buildPostbid));
gulp.task('serve', gulp.series(clean, lint, gulp.parallel('build-bundle-dev', watch, test)));
gulp.task('default', gulp.series(clean, makeWebpackPkg));

gulp.task(e2etestReport);
gulp.task('e2etest', gulp.series(clean, gulp.parallel(makeDevpackPkg, makeWebpackPkg), e2eTest));

gulp.task('e2e-test', gulp.series(clean, setupE2e, gulp.parallel('build-bundle-dev', watch), test))
// other tasks
gulp.task(bundleToStdout);
gulp.task('bundle', gulpBundle.bind(null, false)); // used for just concatenating pre-built files with no build step
gulp.task('serve-nw', gulp.parallel(lint, watch, 'e2etest'));

module.exports = nodeBundle;
Loading