Skip to content

Commit 46bc72f

Browse files
author
Simeon Willbanks
committed
Merge pull request gjtorikian#115 from jch/contributing-doc
Initial Contributing Guidelines
2 parents 8eed2e5 + b778f68 commit 46bc72f

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

CONTRIBUTING.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Contributing
2+
3+
Thanks for using and improving `HTML::Pipeline`!
4+
5+
- [Submitting a New Issue](#submitting-a-new-issue)
6+
- [Sending a Pull Request](#sending-a-pull-request)
7+
8+
## Submitting a New Issue
9+
10+
If there's an idea you'd like to propose, or a design change, feel free to file a new issue.
11+
12+
If you have an implementation question or believe you've found a bug, please provide as many details as possible:
13+
14+
- Input document
15+
- Output HTML document
16+
- the exact `HTML::Pipeline` code you are using
17+
- output of the following from your project
18+
19+
```
20+
ruby -v
21+
bundle exec nokogiri -v
22+
```
23+
24+
## Sending a Pull Request
25+
26+
[Pull requests][pr] are always welcome!
27+
28+
Check out [the project's issues list][issues] for ideas on what could be improved.
29+
30+
Before sending, please add tests and ensure the test suite passes.
31+
32+
### Running the Tests
33+
34+
To run the full suite:
35+
36+
`bundle exec rake`
37+
38+
To run a specific test file:
39+
40+
`bundle exec ruby -Itest test/html/pipeline_test.rb`
41+
42+
To run a specific test:
43+
44+
`bundle exec ruby -Itest test/html/pipeline/markdown_filter_test.rb -n test_disabling_gfm`
45+
46+
To run the full suite with all [supported rubies][travisyaml] in bash:
47+
48+
```bash
49+
rubies=(ree-1.8.7-2011.03 1.9.2-p290 1.9.3-p429 2.0.0-p247)
50+
for r in ${rubies[*]}
51+
do
52+
rbenv local $r # switch to your version manager of choice
53+
bundle install
54+
bundle exec rake
55+
done
56+
```
57+
58+
[issues]: https://github.com/jch/html-pipeline/issues
59+
[pr]: https://help.github.com/articles/using-pull-requests
60+
[travisyaml]: https://github.com/jch/html-pipeline/blob/master/.travis.yml

0 commit comments

Comments
 (0)