Skip to content

Commit

Permalink
Minorr modifications to the README and release script
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarcireau committed Jan 7, 2020
1 parent bd701d3 commit d43bdc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ Origami saves and load collections in [JSON](https://www.json.org) format. The g
[ # each publication is a two-elements list containg a string and an object
"10.1109/tpami.2016.2574707", # the publication's DOI
{ # object containing the publication's data
"status": "PUBLICATION_STATUS_IN_COLLECTION", # the publication's statusin Origami, which can be:
# "PUBLICATION_STATUS_UNVALIDATED": the DOI was added, but not valdiated
"status": "PUBLICATION_STATUS_IN_COLLECTION", # the publication's status in Origami, which can be:
# "PUBLICATION_STATUS_UNVALIDATED": the DOI was added, but not validated
# "PUBLICATION_STATUS_DEFAULT": suggested publication
# "PUBLICATION_STATUS_IN_COLLECTION": in-collection publication
"title": "HOTS: A Hierarchy of Event-Based Time-Surfaces for Pattern Recognition",
Expand All @@ -123,7 +123,7 @@ Origami saves and load collections in [JSON](https://www.json.org) format. The g
"Ryad B. Benosman"
],
"journal": "Institute of Electrical and Electronics Engineers (IEEE)",
"date": [ # the publication's release date, list of one to three integer values (optionnal month and day)
"date": [ # the publication's release date, list of one to three integer values (optional month and day)
2016,
7,
14
Expand Down Expand Up @@ -156,7 +156,6 @@ Origami saves and load collections in [JSON](https://www.json.org) format. The g
}
]
}

```

## Contribute
Expand All @@ -179,10 +178,6 @@ In order to create a new release, run:

The code documentation is held in the [Wiki](https://github.com/aMarcireau/origami/wiki).

### Help out

Check the [Projects](https://github.com/aMarcireau/origami/projects) page to see what's urgent or expected by the community.

## License

See the [LICENSE](LICENSE.txt) file for license rights and limitations (MIT).
7 changes: 4 additions & 3 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ usernameInterface.question('username: ', username => {
console.error(`${path.dirname(__dirname)}/build/archives/${directoryToZip}.zip`, error);
process.exit(1);
}
const url = urlTemplate.parse(body.upload_url).expand({name: `${directoryToZip}.zip`});
request.post({
url: urlTemplate.parse(body.upload_url).expand({name: `${directoryToZip}.zip`}),
url,
auth: {
user: username,
pass: password,
Expand All @@ -160,11 +161,11 @@ usernameInterface.question('username: ', username => {
body: archive,
}, (error, httpIncomingMessage, body) => {
if (error) {
console.error(urlTemplate.parse(body.upload_url).expand({name: `${directoryToZip}.zip`}), error);
console.error(url, error);
process.exit(1);
}
if (httpIncomingMessage.statusCode !== 201) {
console.error(urlTemplate.parse(body.upload_url).expand({name: `${directoryToZip}.zip`}), body);
console.error(url, body);
process.exit(1);
}
console.log(`Uploaded '${directoryToZip}'`);
Expand Down

0 comments on commit d43bdc2

Please sign in to comment.