From 7a9c6e3e9ed7fea4091e5e3756e422468bed3285 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Sat, 20 Jan 2018 19:47:13 +0100 Subject: [PATCH] Switch hubot brain to Azure --- external-scripts.json | 2 +- package-lock.json | 233 ++++++++++++++++++++++++++++++++++++------ package.json | 2 +- 3 files changed, 202 insertions(+), 35 deletions(-) diff --git a/external-scripts.json b/external-scripts.json index 4963425..a543c40 100644 --- a/external-scripts.json +++ b/external-scripts.json @@ -5,7 +5,7 @@ "hubot-google-translate", "hubot-maps", "hubot-rcbrb", - "hubot-redis-brain", + "hubot-azure-brain", "hubot-reload-scripts", "hubot-commit-streak", "hubot-github-webhook-listener", diff --git a/package-lock.json b/package-lock.json index e5289d3..a139f77 100644 --- a/package-lock.json +++ b/package-lock.json @@ -111,6 +111,11 @@ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, + "aws-sign": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/aws-sign/-/aws-sign-0.3.0.tgz", + "integrity": "sha1-PYHKabR0seFlGHKLUcJP8Lvtxuk=" + }, "aws-sign2": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", @@ -121,6 +126,155 @@ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" }, + "azure-storage": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/azure-storage/-/azure-storage-0.2.1.tgz", + "integrity": "sha1-rqQZcDlHYG+swioYzI0i5WRyLA0=", + "requires": { + "extend": "1.2.1", + "mime": "1.2.11", + "node-uuid": "1.4.8", + "request": "2.27.0", + "underscore": "1.4.4", + "validator": "3.1.0", + "xml2js": "0.2.7", + "xmlbuilder": "0.4.3" + }, + "dependencies": { + "asn1": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz", + "integrity": "sha1-VZvhg3bQik7E2+gId9J4GGObLfc=" + }, + "assert-plus": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz", + "integrity": "sha1-7nQAlBMALYTOxyGcasgRgS5yMWA=" + }, + "boom": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/boom/-/boom-0.4.2.tgz", + "integrity": "sha1-emNune1O/O+xnO9JR6PGffrukRs=", + "requires": { + "hoek": "0.9.1" + } + }, + "combined-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz", + "integrity": "sha1-ATfmV7qlp1QcV6w3rF/AfXO03B8=", + "requires": { + "delayed-stream": "0.0.5" + } + }, + "cryptiles": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-0.2.2.tgz", + "integrity": "sha1-7ZH/HxetE9N0gohZT4pIoNJvMlw=", + "requires": { + "boom": "0.4.2" + } + }, + "delayed-stream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz", + "integrity": "sha1-1LH0OpPoKW3+AmlPRoC8N6MTxz8=" + }, + "extend": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/extend/-/extend-1.2.1.tgz", + "integrity": "sha1-oPX9bPyDpf5J72mNYOyKYk3UV2w=" + }, + "forever-agent": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.5.2.tgz", + "integrity": "sha1-bQ4JxJIflKJ/Y9O0nF/v8epMUTA=" + }, + "form-data": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-0.1.4.tgz", + "integrity": "sha1-kavXiKupcCsaq/qLwBAxoqyeOxI=", + "requires": { + "async": "0.9.2", + "combined-stream": "0.0.7", + "mime": "1.2.11" + } + }, + "hawk": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz", + "integrity": "sha1-uQuxaYByhUEdp//LjdJZhQLTtS0=", + "requires": { + "boom": "0.4.2", + "cryptiles": "0.2.2", + "hoek": "0.9.1", + "sntp": "0.2.4" + } + }, + "hoek": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz", + "integrity": "sha1-PTIkYrrfB3Fup+uFuviAec3c5QU=" + }, + "http-signature": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-0.10.1.tgz", + "integrity": "sha1-T72sEyVZqoMjEh5UB3nAoBKyfmY=", + "requires": { + "asn1": "0.1.11", + "assert-plus": "0.1.5", + "ctype": "0.5.3" + } + }, + "oauth-sign": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz", + "integrity": "sha1-y1QPk7srIqfVlBaRoojWDo6pOG4=" + }, + "qs": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/qs/-/qs-0.6.6.tgz", + "integrity": "sha1-bgFQmP9RlouKPIGQAdXyyJvEsQc=" + }, + "request": { + "version": "2.27.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.27.0.tgz", + "integrity": "sha1-37GiJN06Wput5DNwElA9cQ5Thmg=", + "requires": { + "aws-sign": "0.3.0", + "cookie-jar": "0.3.0", + "forever-agent": "0.5.2", + "form-data": "0.1.4", + "hawk": "1.0.0", + "http-signature": "0.10.1", + "json-stringify-safe": "5.0.1", + "mime": "1.2.11", + "node-uuid": "1.4.8", + "oauth-sign": "0.3.0", + "qs": "0.6.6", + "tunnel-agent": "0.3.0" + } + }, + "sntp": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-0.2.4.tgz", + "integrity": "sha1-+4hfGLDzqtGJ+CSGJTa87ux1CQA=", + "requires": { + "hoek": "0.9.1" + } + }, + "tunnel-agent": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz", + "integrity": "sha1-rWgbaPUyGtKCfEz7G31d8s/pQu4=" + }, + "underscore": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz", + "integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ=" + } + } + }, "base64-url": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/base64-url/-/base64-url-1.2.1.tgz", @@ -567,6 +721,11 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" }, + "cookie-jar": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz", + "integrity": "sha1-vJon1OK5fhhs1XyeIGPLmfpozMw=" + }, "cookie-parser": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.3.5.tgz", @@ -664,6 +823,11 @@ } } }, + "ctype": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/ctype/-/ctype-0.5.3.tgz", + "integrity": "sha1-gsGMJGH3QRTvFsE1IkrQuRRMoS8=" + }, "cycle": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/cycle/-/cycle-1.0.3.tgz", @@ -749,11 +913,6 @@ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz", "integrity": "sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0=" }, - "double-ended-queue": { - "version": "2.1.0-0", - "resolved": "https://registry.npmjs.org/double-ended-queue/-/double-ended-queue-2.1.0-0.tgz", - "integrity": "sha1-ED01J/0xUo9AGIEwyEHv3XgmTlw=" - }, "ecc-jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", @@ -1267,6 +1426,14 @@ } } }, + "hubot-azure-brain": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hubot-azure-brain/-/hubot-azure-brain-1.0.0.tgz", + "integrity": "sha1-UMvSruNCsAWH3KipPmU737DsNSo=", + "requires": { + "azure-storage": "0.2.1" + } + }, "hubot-commit-streak": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/hubot-commit-streak/-/hubot-commit-streak-1.0.7.tgz", @@ -1337,14 +1504,6 @@ "resolved": "https://registry.npmjs.org/hubot-rcbrb/-/hubot-rcbrb-1.0.5.tgz", "integrity": "sha1-zU+7cegOU46t1OeQPFzGgltNPeE=" }, - "hubot-redis-brain": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/hubot-redis-brain/-/hubot-redis-brain-0.0.4.tgz", - "integrity": "sha1-kYLFd1YAZbNKBaLqHdq6Ix0JMCM=", - "requires": { - "redis": "2.6.5" - } - }, "hubot-reload-scripts": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/hubot-reload-scripts/-/hubot-reload-scripts-0.1.4.tgz", @@ -1519,6 +1678,11 @@ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" }, + "mime": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz", + "integrity": "sha1-WCA+7Ybjpe8XrtK32evUfwpg3RA=" + }, "mime-db": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.12.0.tgz", @@ -1730,26 +1894,6 @@ "string_decoder": "0.10.31" } }, - "redis": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/redis/-/redis-2.6.5.tgz", - "integrity": "sha1-h8Hv9KSJ+Utwhx89CLaYjyOpVoc=", - "requires": { - "double-ended-queue": "2.1.0-0", - "redis-commands": "1.3.1", - "redis-parser": "2.6.0" - } - }, - "redis-commands": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.1.tgz", - "integrity": "sha1-gdgm9F+pyLIBH0zXoP5ZfSQdRCs=" - }, - "redis-parser": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-2.6.0.tgz", - "integrity": "sha1-Uu0J2srBCPGmMcB+m2mUHnoZUEs=" - }, "request": { "version": "2.76.0", "resolved": "https://registry.npmjs.org/request/-/request-2.76.0.tgz", @@ -1816,6 +1960,11 @@ "resolved": "https://registry.npmjs.org/rndm/-/rndm-1.2.0.tgz", "integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w=" }, + "sax": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/sax/-/sax-0.5.2.tgz", + "integrity": "sha1-c1/6o5oc/4/7lZjwIjq9sDqfsuo=" + }, "scoped-http-client": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/scoped-http-client/-/scoped-http-client-0.11.0.tgz", @@ -2064,6 +2213,11 @@ "resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz", "integrity": "sha1-/FZaPMy/93MMd19WQflVV5FDnyE=" }, + "validator": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-3.1.0.tgz", + "integrity": "sha1-LqH/fpIlTWk2fzhfAVKZ5erYdVs=" + }, "vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -2120,6 +2274,19 @@ "ultron": "1.0.2" } }, + "xml2js": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.2.7.tgz", + "integrity": "sha1-GDhRi7AXQcrgh4urSRXklMMjBq8=", + "requires": { + "sax": "0.5.2" + } + }, + "xmlbuilder": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-0.4.3.tgz", + "integrity": "sha1-xGFLp04K0ZbmCcknLNnh3bKKilg=" + }, "xtend": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", diff --git a/package.json b/package.json index 08b3613..408c364 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "coffee-script": "^1.12.7", "github": "^13.1.0", "hubot": "^2.19.0", + "hubot-azure-brain": "^1.0.0", "hubot-commit-streak": "^1.0.7", "hubot-diagnostics": "0.0.2", "hubot-github-pr-reporter": "^1.1.5", @@ -17,7 +18,6 @@ "hubot-heroku-keepalive": "^1.0.3", "hubot-maps": "0.0.3", "hubot-rcbrb": "^1.0.5", - "hubot-redis-brain": "0.0.4", "hubot-reload-scripts": "^0.1.4", "hubot-scripts": "^2.17.2", "hubot-slack": "^4.4.0",