I hereby claim:
- I am rstellar on github.
- I am rstellar (https://keybase.io/rstellar) on keybase.
- I have a public key ASAStJua61xfS479wt_S_RJ9L8LKrSYEoXb5VjEjhBEnwwo
To claim this, I am signing this object:
const filterConsecutiveNumbers = (array) => { | |
const regex = /\d{5}$/; | |
return array.filter(item => regex.test(item) && isConsecutive(item.slice(-5))); | |
}; | |
const isConsecutive = (numStr) => { | |
for (let i = 0; i < numStr.length - 1; i++) { | |
if (parseInt(numStr[i]) + 1 !== parseInt(numStr[i + 1])) { | |
return false; | |
} |
#!/bin/bash -eo pipefail | |
set -eux | |
mkdir -p /tmp/test-results/cucumber | |
TEST_FILES="$(ruby ../.circleci/split_cukes.rb split | circleci tests split --split-by=timings --timings-type=testname | ruby ../.circleci/split_cukes.rb files)" | |
bundle exec cucumber -p ci --format junit --out /tmp/test-results/cucumber/junit.xml --format rerun --out /tmp/rerun.txt $TEST_FILES || \ | |
bundle exec cucumber -p ci --format junit --out /tmp/test-results/cucumber/junit2.xml --format rerun --out /tmp/rerun2.txt @/tmp/rerun.txt || \ | |
bundle exec cucumber -p ci --format junit --out /tmp/test-results/cucumber/junit3.xml @/tmp/rerun2.txt | |
+ mkdir -p /tmp/test-results/cucumber | |
++ ruby ../.circleci/split_cukes.rb split | |
++ circleci tests split --split-by=timings --timings-type=testname |
+ mkdir -p /tmp/test-results/cucumber | |
++ ruby ../.circleci/split_cukes.rb split | |
++ ruby ../.circleci/split_cukes.rb files | |
++ circleci tests split --split-by=timings --timings-type=testname | |
+ TEST_FILES='features/documents.feature:132 | |
features/login.feature:73' | |
+ bundle exec cucumber -p ci --format junit --out /tmp/test-results/cucumber/junit.xml --format rerun --out /tmp/rerun.txt features/documents.feature:132 features/login.feature:73 | |
Deprecated: Found tagged hook with '~@javascript'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead. | |
Deprecated: Found tagged hook with '~@no-database-cleaner'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead. | |
Deprecated: Found tagged hook with '~@no-database-cleaner'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead. |
I hereby claim:
To claim this, I am signing this object:
-----> Fetching custom git buildpack... done | |
-----> Multipack app detected | |
=====> Downloading Buildpack: https://github.com/peterkeen/heroku-buildpack-vendorbinaries.git | |
=====> Detected Framework: VendorBinaries | |
-----> Found a .vendor_urls file | |
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git | |
=====> Detected Framework: Node.js | |
-----> Resetting git environment | |
-----> Requested node range: 0.10.x | |
-----> Resolved node version: 0.10.34 |
[ Launch: Tributary inlet ] 927eb2e8b90abee6c35d by rstellar
'use strict'; | |
//var config = require('./config.json'); | |
var _ = require('underscore'); | |
var passport = require('passport'); | |
var LocalStrategy = require('passport-local').Strategy; | |
var FacebookStrategy = require('passport-facebook').Strategy; |
runkeeperStrategy: function() { | |
if(!config.runkeeper.clientID) { throw new Error('A Runkeeper App ID is required if you want to enable login via Facebook.');} | |
if(!config.runkeeper.clientSecret) { throw new Error('A Runkeeper App Secret is required if you want to enable login via Facebook.');} | |
return new RunkeeperStrategy({ | |
clientID: config.runkeeper.clientID, | |
clientSecret: config.runkeeper.clientSecret, | |
callbackURL: config.runkeeper.callbackURL || 'http://localhost:3000/auth/runkeeper/callback' | |
}, | |
function(accessToken, refreshToken, profile, done) { |