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

Sync upstream #1

Merged
merged 62 commits into from
Aug 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
a8580b5
add between adapter (#2722)
Shimogatsu Aug 1, 2018
96c39dd
Solve custom download issues with freewheel-ssp bid adapter (#2910)
guillaume-sticky Aug 1, 2018
a8b0b3e
BizzClick SSP header bidding adapter (#2877)
devBizzclick Aug 1, 2018
9cb61aa
switch to circleci instead of travis-ci (#2895)
mkendall07 Aug 1, 2018
16a621b
don't allow null or undefined bid properties (#2923)
snapwich Aug 1, 2018
47d3c3e
update dmx adapter file name part 2 (#2911)
stevealliance Aug 1, 2018
c1a04f1
Pass the "vastUrl" property from the bid to the outstream renderer (#…
arikkfir Aug 2, 2018
a568fdf
Sending window location to server if possible (#2914)
rade-popovic Aug 2, 2018
198013e
1206 eslint repair camel case (#2925)
jrosendahl Aug 3, 2018
aca5fb7
fix domain extraction in undertone adapter (#2921)
omerko Aug 3, 2018
d303d1d
Telaria Bid Adapter (#2924)
telariaEng Aug 6, 2018
752e234
PROPS IPAX - GIANTS Adapter (#2933)
PROPSIPAX Aug 7, 2018
4682ae3
prebidServerBidAdapter cleanup (#2844)
jaiminpanchal27 Aug 7, 2018
21b517a
Prebid 1.19.0 Release
snapwich Aug 7, 2018
cce4595
Increment pre version
snapwich Aug 7, 2018
f4a3d4f
Revert "Increment pre version"
snapwich Aug 7, 2018
a2c29b2
Revert "Revert "Increment pre version""
snapwich Aug 7, 2018
7787ddc
remove alias from request URL as it's no longer needed (#2951)
naffis Aug 8, 2018
1f652e5
Updating core members
mkendall07 Aug 8, 2018
356a6bf
add a default ttl to undertone adapter (#2955)
omerko Aug 9, 2018
a2e5ac6
Fixed the prebid-server example page, and updated it to use openrtb. …
dbemiller Aug 13, 2018
970e863
update and refactor of consumable adapter (#2962)
naffis Aug 13, 2018
10b318a
returning tracking pixels (#2876)
nwlosinski Aug 13, 2018
bd60750
Fidelity Media fmxSSP. Adding GDPR Support (#2935)
onaydenov Aug 13, 2018
700d5f2
lint fix (#2972)
jaiminpanchal27 Aug 13, 2018
5b4e382
Fix safeFrame resize issue (#2947)
mkendall07 Aug 13, 2018
aa28600
kargo analytics adapter (#2939)
samuelhorwitz Aug 13, 2018
6f43b6b
Add wtimeout parameter in ad request for TrustX Bid Adapter (#2968)
PWyrembak Aug 13, 2018
8134b03
Add LGTM.com alert count badge (#2956)
sjvs Aug 14, 2018
e643997
modified console logging to include a Prebid label, and normalized th…
andyblackwell Aug 14, 2018
6cc84aa
Feature : Display counter at Adslot level (#2940)
vedantseta Aug 14, 2018
4ba1d45
Kargo adapter BidID support (#2958)
samuelhorwitz Aug 14, 2018
ba1671c
1.20.0 release.
mkendall07 Aug 14, 2018
caa9c0f
1.21.0-pre
mkendall07 Aug 14, 2018
5e430e3
Added render param in Sonobi adapter (#2970)
jeteve Aug 15, 2018
2fb1d95
AJA adapter (#2934)
yoshito0523 Aug 15, 2018
ee02e13
Add DivReach adapter (#2946)
AdmixerTech Aug 15, 2018
ab2d7fc
Add adUnitCode to LockerDome bid requests (#2979)
margsliu Aug 16, 2018
17f11da
AdForm Adapter - setting alias code in received bids (#2976)
Saigredan Aug 16, 2018
014fffe
changing rubicon endpoint to openrtb2 endpoint (#2996)
bretg Aug 20, 2018
db2fdfa
SomoAudience Adapter Enhancements (#2986)
SuprPhatAnon Aug 20, 2018
e36f10e
Audience Network: correct TTL, allow platform override (#2974)
lovell Aug 20, 2018
c09d9db
fix tests running in headless chrome inside a docker environment (#2965)
danielrussellLA Aug 20, 2018
18bf1a1
33Across: GDPR compliancy (#2985)
curlyblueeagle Aug 20, 2018
65df3bb
Appnexus adaptor - Added App parameters for hybrid apps. (#2973)
aneuway2 Aug 21, 2018
dc8c822
fix lint errors in 33across files (#3002)
jsnellbaker Aug 21, 2018
031943c
fix getHighestCpmBids function (#2990)
jaiminpanchal27 Aug 21, 2018
7546257
Update from travis to circle CI in release documentation
snapwich Aug 21, 2018
7442613
moved assignment of `bid.getCpmInNewCurrency` function for currency (…
snapwich Aug 21, 2018
40c368f
Prebid 1.21.0 Release
snapwich Aug 21, 2018
11ec22a
Increment pre version
snapwich Aug 21, 2018
e1e03db
update gulp test to include lint (#3003)
jsnellbaker Aug 22, 2018
322a7b8
AdOcean adapter: GDPR support (#2988)
jdrobiecki Aug 22, 2018
3838a8f
update appnexus md file with working examples (#3014)
jsnellbaker Aug 23, 2018
ab2c050
support gdpr for one video adapter (#2981)
ankur-modi Aug 23, 2018
bf3beef
Rubicon adapter: adding size 320x180 (#3018)
bretg Aug 24, 2018
ce1ea59
few tweaks and clarifications to release documentation (#3020)
snapwich Aug 24, 2018
d7f3f90
OpenX Adapter: Fixed a bug where video requests do not have a bidder …
jimee02 Aug 27, 2018
0bfe013
Revert "Added render param in Sonobi adapter (#2970)" (#3027)
jaiminpanchal27 Aug 28, 2018
e83f3e8
check for null in data (#3026)
jaiminpanchal27 Aug 28, 2018
69a275a
Prebid 1.22.0 Release
jaiminpanchal27 Aug 28, 2018
fa78634
Increment pre version
jaiminpanchal27 Aug 28, 2018
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
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:7.10

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/Prebid.js

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: sudo npm install -g gulp
# Download and run BrowserStack local
- run:
name : Download BrowserStack Local binary and start it.
command : |
# Download the browserstack binary file
wget "https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip"
# Unzip it
unzip BrowserStackLocal-linux-x64.zip
# Run the file with user's access key
./BrowserStackLocal ${BROWSERSTACK_ACCESS_KEY} &
# run tests!
- run:
name: BrowserStack testing
command: gulp test --browserstack
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = {
// Violations of these styles should be fixed, and the exceptions removed over time.
//
// See Issue #1111.
"camelcase": "off",
"eqeqeq": "off",
"no-return-assign": "off",
"no-throw-literal": "off",
Expand Down
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[![Build Status](https://travis-ci.org/prebid/Prebid.js.svg?branch=master)](https://travis-ci.org/prebid/Prebid.js)
[![Build Status](https://circleci.com/gh/prebid/Prebid.js.svg?style=svg)](https://circleci.com/gh/prebid/Prebid.js)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/prebid/Prebid.js.svg)](http://isitmaintained.com/project/prebid/Prebid.js "Percentage of issues still open")
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/prebid/Prebid.js.svg)](http://isitmaintained.com/project/prebid/Prebid.js "Average time to resolve an issue")
[![Code Climate](https://codeclimate.com/github/prebid/Prebid.js/badges/gpa.svg)](https://codeclimate.com/github/prebid/Prebid.js)
[![Coverage Status](https://coveralls.io/repos/github/prebid/Prebid.js/badge.svg)](https://coveralls.io/github/prebid/Prebid.js)
[![devDependencies Status](https://david-dm.org/prebid/Prebid.js/dev-status.svg)](https://david-dm.org/prebid/Prebid.js?type=dev)
[![Total Alerts](https://img.shields.io/lgtm/alerts/g/prebid/Prebid.js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/prebid/Prebid.js/alerts/)

# Prebid.js

Expand Down
26 changes: 22 additions & 4 deletions RELEASE_SCHEDULE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ Announcements regarding releases will be made to the #headerbidding-dev channel

## Release Process

1. Make Sure all browserstack tests are passing. On PR merge to master travis will run unit tests on browserstack. Checking the last travis build [here](https://travis-ci.org/prebid/Prebid.js/branches) for master branch will show you detailed results.
_Note: If `github.com/prebid/Prebid.js` is not configured as the git origin for your repo, all of the following git commands will have to be modified to reference the proper remote (e.g. `upstream`)_

1. Make Sure all browserstack tests are passing. On PR merge to master CircleCI will run unit tests on browserstack. Checking the last CircleCI build [here](https://circleci.com/gh/prebid) for master branch will show you detailed results.

In case of failure do following,
- Try to fix the failing tests.
- If you are not able to fix tests in time. Skip the test, create issue and tag contributor.

#### How to run tests in browserstack

_Note: the following browserstack information is only relevant for debugging purposes, if you will not be debugging then it can be skipped._

Set the environment variables. You may want to add these to your `~/.bashrc` for convenience.

Expand Down Expand Up @@ -59,11 +63,12 @@ Announcements regarding releases will be made to the #headerbidding-dev channel
Pull these changes locally by running command
```
git pull
git fetch --tags
```

and verify the tag.

5. Update coveralls
5. Update coveralls _(skip for legacy)_

We use https://coveralls.io/ to show parts of code covered by unit tests.

Expand All @@ -75,22 +80,35 @@ Announcements regarding releases will be made to the #headerbidding-dev channel

Run `gulp coveralls` to update code coverage history.

6. Distribute the code
6. Distribute the code

_Note: do not go to step 7 until step 6 has been verified completed._

Reach out to any of the Appnexus folks to trigger the jenkins job.

// TODO
Jenkins job is moving files to appnexus cdn, pushing prebid.js to npm, purging cache and sending notification to slack.
Move all the files from Appnexus CDN to jsDelivr and create bash script to do above tasks.

7. Post Release Steps
7. Post Release Version

Update the version
Manually edit Prebid's package.json to become "1.x.x-pre" (using the values for the next release). Then commit your changes.
```
git commit -m "Increment pre version"
git push
```

8. Create new release draft

Go to [github releases](https://github.com/prebid/Prebid.js/releases) and add a new draft for the next version of Prebid.js with the following template:
```
## 🚀New Features

## 🛠Maintenance

## 🐛Bug Fixes
```

## Beta Releases

Expand Down
8 changes: 4 additions & 4 deletions governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

This document describes the governance model for the Prebid project. The Prebid project’s stated mission is to facilitate fair, transparent, and effective header bidding across the industry, and is responsible for creating and maintaining such projects as [Prebid.js](https://github.com/prebid/Prebid.js).

1. A single Tech Lead oversees the technical direction of the project and appoints Core Team members
1. A single Tech Lead (PMC Chair) oversees the technical direction of the project and appoints Core Team members
2. The Core Team members maintain the project on an ongoing basis with direction from the Tech Lead.
3. In the event of any disagreements, the Tech Lead will make a final decision.
4. If there is no Tech Lead available to perform his/her duties, AppNexus Inc. will appoint one.
4. If there is no Tech Lead available to perform his/her duties, Prebid.org will appoint one.

### Roles and Responsibilities:
- **User:** Any individual who consumes / uses the Prebid.js library.
Expand All @@ -15,9 +15,9 @@ This document describes the governance model for the Prebid project. The Prebid

### Current Prebid.js Core Team
- @mkendall07 (Tech Lead)
- @protonate
- @jsnellbaker
- @matthewlane
- @jaiminpanchal27
- @snapwich
- @harpere
- @dbemiller
- @mike-chowla
34 changes: 17 additions & 17 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var port = 9999;
// Tasks
gulp.task('default', ['webpack']);

gulp.task('serve', ['lint', 'build-bundle-dev', 'watch', 'test']);
gulp.task('serve', ['build-bundle-dev', 'watch', 'test']);

gulp.task('serve-nw', ['lint', 'watch', 'e2etest']);

Expand All @@ -49,8 +49,8 @@ gulp.task('build', ['build-bundle-prod']);

gulp.task('clean', function () {
return gulp.src(['build'], {
read: false
})
read: false
})
.pipe(clean());
});

Expand Down Expand Up @@ -78,13 +78,13 @@ var explicitModules = [

function bundle(dev, moduleArr) {
var modules = moduleArr || helpers.getArgModules(),
allModules = helpers.getModuleNames(modules);
allModules = helpers.getModuleNames(modules);

if(modules.length === 0) {
if (modules.length === 0) {
modules = allModules.filter(module => !explicitModules.includes(module));
} else {
var diff = _.difference(modules, allModules);
if(diff.length !== 0) {
if (diff.length !== 0) {
throw new gutil.PluginError({
plugin: 'bundle',
message: 'invalid modules: ' + diff.join(', ')
Expand All @@ -106,13 +106,13 @@ function bundle(dev, moduleArr) {
gutil.log('Generating bundle:', outputFileName);

return gulp.src(
entries
)
entries
)
.pipe(gulpif(dev, sourcemaps.init({loadMaps: true})))
.pipe(concat(outputFileName))
.pipe(gulpif(!argv.manualEnable, footer('\n<%= global %>.processQueue();', {
global: prebid.globalVarName
}
global: prebid.globalVarName
}
)))
.pipe(gulpif(dev, sourcemaps.write('.')));
}
Expand Down Expand Up @@ -186,7 +186,7 @@ gulp.task('webpack', ['clean'], function () {
// If --file "<path-to-test-file>" is given, the task will only run tests in the specified file.
// If --browserstack is given, it will run the full suite of currently supported browsers.
// If --browsers is given, browsers can be chosen explicitly. e.g. --browsers=chrome,firefox,ie9
gulp.task('test', ['clean'], function (done) {
gulp.task('test', ['clean', 'lint'], function (done) {
var karmaConf = karmaConfMaker(false, argv.browserstack, argv.watch, argv.file);

var browserOverride = helpers.parseBrowserArgs(argv).map(helpers.toCapitalCase);
Expand Down Expand Up @@ -229,7 +229,7 @@ gulp.task('watch', function () {
'modules/**/*.js',
'test/spec/**/*.js',
'!test/spec/loaders/**/*.js'
], ['lint', 'build-bundle-dev', 'test']);
], ['build-bundle-dev', 'test']);
gulp.watch([
'loaders/**/*.js',
'test/spec/loaders/**/*.js'
Expand Down Expand Up @@ -264,7 +264,7 @@ gulp.task('docs', ['clean-docs'], function () {

gulp.task('e2etest', ['devpack', 'webpack'], function() {
var cmdQueue = [];
if(argv.browserstack) {
if (argv.browserstack) {
var browsers = require('./browsers.json');
delete browsers['bs_ie_9_windows_7'];

Expand All @@ -276,11 +276,11 @@ gulp.task('e2etest', ['devpack', 'webpack'], function() {

var startWith = 'bs';

Object.keys(browsers).filter(function(v){
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) {
}).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);
}
Expand Down
15 changes: 15 additions & 0 deletions integrationExamples/gpt/pbjs_example_gpt.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,21 @@
host: 'dsp-staging.adkernel.com' //OPTIONAL
}
},
{
bidder: 'bizzclick',
params: {
placementId: 0,
type: "banner"
}
},
{
bidder: 'zedo',
params: {
channelCode: 2264002816, //REQUIRED
dimId: 9 //REQUIRED
}
}

]
}, {
code: 'div-gpt-ad-12345678-1',
Expand Down Expand Up @@ -427,6 +435,13 @@
params: {
zone: '276' // REQUIRED Zone Id (276 is a test zone)
}
},
{
bidder: 'bizzclick',
params: {
placementId: 0,
type: "banner"
}
}
]
}
Expand Down
9 changes: 4 additions & 5 deletions integrationExamples/gpt/prebidServer_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
var PREBID_TIMEOUT = 3000;

var googletag = googletag || {};
var sizes = [[728, 90],[300, 250], [300,600]];
googletag.cmd = googletag.cmd || [];

function initAdserver() {
Expand Down Expand Up @@ -37,12 +36,12 @@
pbjs.que.push(function() {
var adUnits = [{
code: 'div-gpt-ad-1460505748561-0',
sizes: [[300, 250], [300,600]],
sizes: [[300, 250]],
bids: [
{
bidder: 'appnexus',
params: {
placementId: '10433394'
placementId: '13144370'
}
}
]
Expand All @@ -56,7 +55,7 @@
bidders : ['appnexus'],
timeout : 1000, //default value is 1000
adapter : 'prebidServer', //if we have any other s2s adapter, default value is s2s
endpoint : 'https://prebid.adnxs.com/pbs/v1/auction?url_override=http%3A%2F%2Fwww.nytimes.com'
endpoint : 'https://prebid.adnxs.com/pbs/v1/openrtb2/auction'
}
});

Expand All @@ -72,7 +71,7 @@

<script>
googletag.cmd.push(function() {
var rightSlot = googletag.defineSlot('/19968336/header-bid-tag-0', [[300, 250], [300, 600]], 'div-gpt-ad-1460505748561-0').addService(googletag.pubads());
var rightSlot = googletag.defineSlot('/19968336/header-bid-tag-0', [[300, 250]], 'div-gpt-ad-1460505748561-0').addService(googletag.pubads());

pbjs.que.push(function() {
pbjs.setTargetingForGPTAsync();
Expand Down
14 changes: 13 additions & 1 deletion karma.conf.maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,19 @@ function setBrowsers(karmaConf, browserstack) {
karmaConf.customLaunchers = require('./browsers.json')
karmaConf.browsers = Object.keys(karmaConf.customLaunchers);
} else {
karmaConf.browsers = ['ChromeHeadless'];
var isDocker = require('is-docker')();
if (isDocker) {
karmaConf.customLaunchers = karmaConf.customLaunchers || {};
karmaConf.customLaunchers.ChromeCustom = {
base: 'ChromeHeadless',
// We must disable the Chrome sandbox when running Chrome inside Docker (Chrome's sandbox needs
// more permissions than Docker allows by default)
flags: ['--no-sandbox']
}
karmaConf.browsers = ['ChromeCustom'];
} else {
karmaConf.browsers = ['ChromeHeadless'];
}
}
}

Expand Down
Loading