From b00449cf534bda574461ed1d231ac64be89cec85 Mon Sep 17 00:00:00 2001 From: Victor Grau Serrat Date: Thu, 5 Mar 2020 10:03:29 -0700 Subject: [PATCH] MAINT: updated CHANGELOG with v0.3.0 --- CHANGELOG.md | 5 ++++- scripts/check-filenames.bash | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83946b5a3..5cd46bdab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.3.0] - 2020-03-03 +## [0.3.0] - 2020-03-05 ### Added - Added `scripts/migrate-v0.3.0.js` to automatically migrate to the new version of the JSON schema. +- Imported more than 200 new nominees from [publicgoods/products](https://github.com/publicgoods/products) +- Added `scripts/check-filenames.bash` to automatically check the proper naming of nominees. +- Added `scripts/order-fields.js` to automatically check the proper ordering of properties in each nominee file. ### Changed - Modified 'nominee-schema.json' to match the product-schema.json available at https://github.com/publicgoods/data-schema diff --git a/scripts/check-filenames.bash b/scripts/check-filenames.bash index 82c8bb141..1b8c1bc33 100755 --- a/scripts/check-filenames.bash +++ b/scripts/check-filenames.bash @@ -11,7 +11,7 @@ pushd $SELFDIR/.. > /dev/null 2>&1 if [ `ls -1 ./nominees/*.json 2>/dev/null | wc -l` -gt 0 ]; then for f in ./nominees/*.json; do - filename=`grep -Eo -m 1 '"name":.*?[^\\]",' "$f" | awk -F':' '{print $2}' | sed -e 's/"//g' -e 's/,//g' -e 's/^[[:space:]]*//' -e 's/[[:space:]]/-/g' -e 's/---/-/g' -e 'y/āáǎàēéěèīíǐìōóǒòūúǔùüǖǘǚǜĀÁǍÀĒÉĚÈĪÍǏÌŌÓǑÒŪÚǓÙÜǕǗǙǛ@/aaaaeeeeiiiioooouuuuuuuuuAAAAEEEEIIIIOOOOUUUUUUUUUa/'| tr '[:upper:]' '[:lower:]'` + filename=`grep -Eo -m 1 '"name":.*?[^\\]",' "$f" | awk -F':' '{print $2}' | sed -e 's/"//g' -e 's/,//g' -e 's/^[[:space:]]*//' -e 's/[[:space:]]/-/g' -e 's/---/-/g' -e 'y/āáǎàēéěèīíǐìōóǒòūúǔùüǖǘǚǜĀÁǍÀĒÉĚÈĪÍǏÌŌÓǑÒŪÚǓÙÜǕǗǙǛ/aaaaeeeeiiiioooouuuuuuuuuAAAAEEEEIIIIOOOOUUUUUUUUU/'| tr '[:upper:]' '[:lower:]'` if [ "$filename.json" = "$(basename -- "$f")" ]; then echo "Filename is valid: $filename.json" else