Skip to content

Commit 096a3e7

Browse files
authored
Merge pull request #28 from epage/misc
Documentation and Licensing
2 parents 2529281 + 112b493 commit 096a3e7

11 files changed

+99
-8
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!-- If you want to report a bug, please fill out the information below.
2+
Otherwise, feel free to remove these lines.-->
3+
4+
5+
<!-- Insert short summary -->
6+
7+
I tried this code:
8+
9+
<!-- Insert code sample -->
10+
11+
I expected to see this happen:
12+
13+
Instead this happened:
14+
15+
## Meta
16+
17+
predicates-rs version:
18+
`rustc --version --verbose`:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!--
2+
Quick reminders:
3+
- Were tests written?
4+
- Is commit history clean?
5+
- Were copyright statements updated?
6+
-->

CONTRIBUTING.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Contributing to predicates-rs
2+
3+
Thanks for wanting to contribute! There are many ways to contribute and we
4+
appreciate any level you're willing to do.
5+
6+
## Feature Requests
7+
8+
Need some new functionality to help? You can let us know by opening an
9+
[issue][new issue]. It's helpful to look through [all issues][all issues] in
10+
case its already being talked about.
11+
12+
## Bug Reports
13+
14+
Please let us know about what problems you run into, whether in behavior or
15+
ergonomics of API. You can do this by opening an [issue][new issue]. It's
16+
helpful to look through [all issues][all issues] in case its already being
17+
talked about.
18+
19+
## Pull Requests
20+
21+
Looking for an idea? Check our [issues][issues]. If it's look more open ended,
22+
it is probably best to post on the issue how you are thinking of resolving the
23+
issue so you can get feedback early in the process. We want you to be
24+
successful and it can be discouraging to find out a lot of re-work is needed.
25+
26+
Already have an idea? It might be good to first [create an issue][new issue]
27+
to propose it so we can make sure we are aligned and lower the risk of having
28+
to re-work some of it and the discouragement that goes along with that.
29+
30+
### Process
31+
32+
When you first post a PR, we request that the the commit history get cleaned
33+
up. We recommend avoiding this during the PR to make it easier to review how
34+
feedback was handled. Once the commit is ready, we'll ask you to clean up the
35+
commit history. Once you let us know this is done, we can move forward with
36+
merging! If you are uncomfortable with these parts of git, let us know and we
37+
can help.
38+
39+
We ask that all new files have the copyright header. Please update the
40+
copyright year for files you are modifying.
41+
42+
As a heads up, we'll be running your PR through the following gauntlet:
43+
- warnings turned to compile errors
44+
- `cargo test`
45+
- `rustfmt`
46+
- `clippy`
47+
- `rustdoc`
48+
49+
Check out our [CI][travis] for more information.
50+
51+
## Releasing
52+
53+
When we're ready to release, a project owner should do the following
54+
- Determine what the next version is, according to semver
55+
- Bump version in a commit
56+
- Update CHANGELOG.md
57+
- Update the version in `Cargo.toml`
58+
- Update the dependency version in `src/lib.rs`
59+
- Update the dependency version in `README.md`
60+
- Tag the commit via `git tag -am "v<X>.<Y>.<Z>" v<X>.<Y>.<Z>`
61+
- `git push upstream master --tag v<X>.<Y>.<Z>`
62+
- Run `cargo publish` (run `cargo login` first if needed)
63+
64+
[issues]: https://github.com/assert-rs/predicates-rs/issues
65+
[new issue]: https://github.com/assert-rs/predicates-rs/issues/new
66+
[all issues]: https://github.com/assert-rs/predicates-rs/issues?utf8=%E2%9C%93&q=is%3Aissue
67+
[travis]: https://github.com/assert-rs/predicates-rs/blob/master/.travis.yml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Next, add this to your crate:
2525
```rust
2626
extern crate predicates;
2727

28-
use predicates::Predicate;
28+
use predicates::prelude::*;
2929
```
3030

3131
For more information on using predicates, look at the

src/boolean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, Nick Stevens <[email protected]>
1+
// Copyright (c) 2018 The predicates-rs Project Developers.
22
//
33
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
44
// http://www.apache.org/license/LICENSE-2.0> or the MIT license

src/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, Nick Stevens <[email protected]>
1+
// Copyright (c) 2018 The predicates-rs Project Developers.
22
//
33
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
44
// http://www.apache.org/license/LICENSE-2.0> or the MIT license

src/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, Nick Stevens <[email protected]>
1+
// Copyright (c) 2018 The predicates-rs Project Developers.
22
//
33
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
44
// http://www.apache.org/license/LICENSE-2.0> or the MIT license

src/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, Nick Stevens <[email protected]>
1+
// Copyright (c) 2018 The predicates-rs Project Developers.
22
//
33
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
44
// http://www.apache.org/license/LICENSE-2.0> or the MIT license

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, Nick Stevens <[email protected]>
1+
// Copyright (c) 2018 The predicates-rs Project Developers.
22
//
33
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
44
// http://www.apache.org/license/LICENSE-2.0> or the MIT license

src/ord.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, Nick Stevens <[email protected]>
1+
// Copyright (c) 2018 The predicates-rs Project Developers.
22
//
33
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
44
// http://www.apache.org/license/LICENSE-2.0> or the MIT license

src/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, Nick Stevens <[email protected]>
1+
// Copyright (c) 2018 The predicates-rs Project Developers.
22
//
33
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
44
// http://www.apache.org/license/LICENSE-2.0> or the MIT license

0 commit comments

Comments
 (0)