Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
MAINT: updated CHANGELOG with v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lacabra committed Mar 5, 2020
1 parent 589c70c commit b00449c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-filenames.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b00449c

Please sign in to comment.