Skip to content
Permalink
Browse files

test: Check for stringed gravatar

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
  • Loading branch information...
Richienb committed Sep 30, 2019
1 parent d2d0e2c commit d37c0ff964973131055c28fda9bcfe7db5a0b2cc
Showing with 124 additions and 117 deletions.
  1. +7 −0 test.js
  2. +1 −1 users/DanielArthurUK.json
  3. +1 −1 users/aarjithn.json
  4. +2 −2 users/absorbingchaos.json
  5. +2 −2 users/akash-singh.json
  6. +2 −2 users/alfmo.json
  7. +3 −3 users/armando.json
  8. +2 −2 users/bshaikh.json
  9. +1 −1 users/cdipietro.json
  10. +2 −2 users/chad-loether.json
  11. +2 −2 users/cheese.json
  12. +2 −2 users/chemars.json
  13. +2 −2 users/david-intveld.json
  14. +1 −1 users/dayflower.json
  15. +1 −1 users/dcunited001.json
  16. +2 −2 users/dennohpeter.json
  17. +1 −1 users/djohnson.json
  18. +2 −2 users/domdomegg.json
  19. +1 −1 users/dvrein.json
  20. +2 −2 users/eai.json
  21. +1 −1 users/egeriis.json
  22. +1 −1 users/eilertenstudio.json
  23. +2 −2 users/erruption.json
  24. +1 −1 users/fabioluciano.json
  25. +2 −2 users/gabrielsegalla.json
  26. +2 −2 users/gamal-abdulnasser.json
  27. +2 −2 users/gamalan.json
  28. +2 −2 users/gianfrancopiana.json
  29. +1 −1 users/greenify.json
  30. +1 −1 users/guilhermemarconi.json
  31. +3 −3 users/imgios.json
  32. +3 −3 users/infrony.json
  33. +2 −2 users/jacob-shaw.json
  34. +2 −2 users/karol-stumski.json
  35. +1 −1 users/krolow.json
  36. +2 −2 users/ktg.json
  37. +2 −2 users/luis-matute.json
  38. +2 −2 users/machii.json
  39. +2 −2 users/machii028.json
  40. +2 −2 users/machii28.json
  41. +2 −2 users/mark-cornelio.json
  42. +2 −2 users/mit-license-generator.json
  43. +2 −2 users/mizucoffee.json
  44. +2 −2 users/myproject.json
  45. +1 −1 users/nemo.json
  46. +2 −2 users/nils-andresen.json
  47. +3 −3 users/noplanman.json
  48. +2 −2 users/not-akash-singh.json
  49. +1 −1 users/pb.json
  50. +2 −2 users/pikachu.json
  51. +2 −2 users/rayraegah.json
  52. +1 −1 users/ri7nz.json
  53. +2 −2 users/rodrigokono.json
  54. +1 −1 users/romanboiko.json
  55. +2 −2 users/roseauhan.json
  56. +2 −2 users/ryan-senn.json
  57. +2 −2 users/sarmadbilal.json
  58. +2 −2 users/sdgags.json
  59. +1 −1 users/sillysina.json
  60. +1 −1 users/snhack.json
  61. +2 −2 users/stan-williams.json
  62. +2 −2 users/startvm.json
  63. +2 −2 users/syl2010.json
  64. +2 −2 users/thomas-placais.json
  65. +1 −1 users/tom.json
  66. +2 −2 users/vilja.json
  67. +1 −1 users/yungsang.json
  68. +2 −2 users/zishu-liu.json
@@ -40,6 +40,13 @@ function report(content, fix) {
fs.writeFile(path.join('users', user), stringified, () => {});
});
}
if (typeof u.gravatar === 'string') {
report(`Gravatar boolean encoded as string found in ${user}`, () => {
u.gravatar = u.gravatar === 'true';
const stringified = `${JSON.stringify(u, 0, 2)}\n`;
fs.writeFile(path.join('users', user), stringified, () => {});
});
}
} catch ({ message }) {
report(`Invalid JSON in ${user} (${message})`);
}
@@ -2,5 +2,5 @@
"copyright": "Daniel Arthur, https://danielarthur.uk",
"url": "https://danielarthur.uk",
"email": "me@danielarthur.uk",
"gravatar": "true"
"gravatar": true
}
@@ -2,5 +2,5 @@
"copyright": "Aarjith Nandakumar",
"url": "http://aarjithn.github.io",
"email": "aarjithn[at]gmail.com",
"gravatar": "true"
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "default-dark",
"gravatar": "true"
}
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "true"
}
"gravatar": true
}
@@ -1,9 +1,9 @@
{
"copyright": "Armando Lüscher, https://noplanman.ch",
"copyright": "Armando L�scher, https://noplanman.ch",
"url": "https://noplanman.ch",
"email": "armando@noplanman.ch",
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "true"
}
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -2,6 +2,6 @@
"copyright": "Carlos A. Di Pietro, http://cdipietro.com.ar",
"url": "http://cdipietro.com.ar",
"email": "carlos@cdipietro.com.ar",
"gravatar": "true",
"gravatar": true,
"theme": "default"
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "material-blue",
"gravatar": "true"
}
"gravatar": true
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -5,5 +5,5 @@
"format": "text",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -1,4 +1,4 @@
{
"copyright": "dayflower",
"gravatar": "true"
"gravatar": true
}
@@ -2,7 +2,7 @@
"copyright": "David Conner",
"email": "dconner.pro@gmail.com",
"format": "html",
"gravatar": "true",
"gravatar": true,
"url": "http://te.xel.io",
"theme": "opensans"
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "true"
}
"gravatar": true
}
@@ -3,6 +3,6 @@
"url": "http://duncanjohnson.ca/",
"email": "duncan@duncanjohnson.ca",
"format": "html",
"gravatar": "true",
"gravatar": true,
"theme": "double-windsor"
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -1,7 +1,7 @@
{
"copyright": "dvrein",
"url": "https://github.com/dvrein",
"gravatar": "false",
"gravatar": false,
"format": "html",
"theme": "xtansia"
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "true"
}
"gravatar": true
}
@@ -2,5 +2,5 @@
"copyright": "Ronni Egeriis Persson",
"url": "http://egeriis.me",
"email": "ronni@egeriis.me",
"gravatar": "true"
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "dusk",
"gravatar": "true"
"gravatar": true
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -3,6 +3,6 @@
"url": "http://naoimporta.com",
"email": "fabio@naoimporta.com",
"format": "html",
"gravatar": "true",
"gravatar": true,
"theme": "flesch"
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "true"
}
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "true"
}
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -3,6 +3,6 @@
"url": "https://github.com/greenify",
"email": "greeenify@gmail.com",
"format": "html",
"gravatar": "true",
"gravatar": true,
"theme": "magicmint"
}
@@ -3,5 +3,5 @@
"url": "http://guilhermemarconi.me",
"email": "oi@guilhermemarconi.me",
"format": "txt",
"gravatar": "gwyer"
"gravatar": false
}
@@ -1,9 +1,9 @@
{
"copyright": "Giosuè",
"copyright": "Giosu�",
"url": "https://www.giosuesulipano.it",
"email": "contact@giosuesulipano.it",
"format": "html",
"license": "mit",
"theme": "8bits-monochrome",
"gravatar": "true"
}
"gravatar": true
}
@@ -1,9 +1,9 @@
{
"copyright": "Rodney Guillén",
"copyright": "Rodney Guill�n",
"url": "https://www.infrony.net/",
"email": "infrony@gmail.com",
"format": "html",
"license": "mit",
"theme": "friendly",
"gravatar": "true"
}
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "8bits-monochrome-blue-white",
"gravatar": "false"
}
"gravatar": false
}
@@ -2,5 +2,5 @@
"copyright": "Vinícius Krolow",
"url": "http://krolow.com.br",
"email": "krolow@gmail.com",
"gravatar": "true"
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "material-grey",
"gravatar": "false"
}
"gravatar": false
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "dusk",
"gravatar": "true"
}
"gravatar": true
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "true"
}
"gravatar": true
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "material-lime",
"gravatar": "true"
}
"gravatar": true
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "8bits-monochrome-amber",
"gravatar": "true"
}
"gravatar": true
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "true"
}
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "material-indigo",
"gravatar": "true"
}
"gravatar": true
}
@@ -5,5 +5,5 @@
"format": "html",
"license": "mit",
"theme": "material-indigo",
"gravatar": "true"
}
"gravatar": true
}
@@ -4,5 +4,5 @@
"format": "html",
"license": "mit",
"theme": "default",
"gravatar": "false"
}
"gravatar": false
}

0 comments on commit d37c0ff

Please sign in to comment.
You can’t perform that action at this time.