Skip to content

Commit

Permalink
Merge pull request #7 from GoldenBadger/release-0.1.0
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
benmcmahon100 authored Dec 3, 2017
2 parents f438810 + 18c5743 commit 5f54f31
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 2 deletions.
74 changes: 74 additions & 0 deletions CODE-OF-CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
education, socio-economic status, nationality, personal appearance, race,
religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
name = "good_stv"
version = "0.1.0"
authors = ["Terry Bolt <[email protected]>"]
description = "A tool for evaluating elections using Single Transferable Vote."

categories = ["command-line-interface","command-line-utilities","parsing","algorithms"]
keywords = ["redbrick","vote","cli"]
license = "GPL-3.0"
readme = "README.md"

[badges]
travis-ci = { repository = "redbrick/good_stv" }

[dependencies]
clap = "2.27.1"
Expand Down
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,44 @@
# good_stv

A good stv utility.
A tool for evaluating elections using [Single Transferable
Vote](https://en.wikipedia.org/wiki/Single_transferable_vote).

[![Build Status](https://travis-ci.org/redbrick/good_stv.svg?branch=master)](https://travis-ci.org/redbrick/good_stv)

## Usage

good_stv expects to receive CSV-formatted data, either on stdin or a file. The
only required argument is a positive integer representing the number of seats
to fill in the election. Example invocations are:

```sh
$ good_stv -f test.csv 3
```

```sh
$ good_stv 3 < test.csv
```

### CSV format

The input data is expected to be in the following format:

One (1) header line, with a list of candidates to be elected, in any order.
This is followed by any number of body lines, each containing a list of
candidates, in order of preference from highest to lowest, left to right,
representing a single vote. Any candidates listed in the body who are not also
in the header will be ignored. Each vote does not need to include every
candidate, although votes listing zero (0) candidates will be ignored.

#### Example

```csv
alice,bob,charlie
alice,bob
bob,charlie,alice
bob
```

## License

```text
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn run() -> Result<(), Error> {
.version(VERSION.unwrap_or("unknown"))
.author("Terry Bolt <[email protected]>")
.about(
"A good single transferable vote utility for simple elections.",
"A tool for evaluating elections using Single Transferable Vote."
)
.arg(Arg::with_name("seats").index(1).required(true).help(
"Number of seats to be filled.",
Expand Down

0 comments on commit 5f54f31

Please sign in to comment.