html-pipeline 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/CONTRIBUTING.md +60 -0
- data/Gemfile +8 -2
- data/README.md +8 -0
- data/lib/html/pipeline/sanitization_filter.rb +1 -1
- data/lib/html/pipeline/version.rb +1 -1
- data/script/package +7 -0
- data/script/release +16 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3b868abc13fac903776f091b0e0e5111c3f2fb
|
4
|
+
data.tar.gz: 52048ee1cf9300f16e37c1a4b11c009a8dabf441
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51c354c77f8e6f25f7e25a512e1b4d93274b447597929d9562dedc3537b4b94c02f5b5adbfa48e75a592b200fd5bb542c412100f61df569b8faf6054dd9ce39
|
7
|
+
data.tar.gz: 308a373470a7f7f935df533e99a045d1b47c02805d70a2f14983a7844cb8a71760c33420287d3b012e2aeb891563f7b4e41606c94d5edb8a81b73c20daa7882a
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
ADDED
@@ -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
|
data/Gemfile
CHANGED
@@ -12,11 +12,17 @@ group :test do
|
|
12
12
|
gem "rinku", "~> 1.7", :require => false
|
13
13
|
gem "gemoji", "~> 1.0", :require => false
|
14
14
|
gem "RedCloth", "~> 4.2.9", :require => false
|
15
|
-
gem "escape_utils", "~> 0.3", :require => false
|
16
|
-
gem "github-linguist", "~> 2.6.2", :require => false
|
17
15
|
gem "github-markdown", "~> 0.5", :require => false
|
18
16
|
gem "email_reply_parser", "~> 0.5", :require => false
|
19
17
|
|
18
|
+
if RUBY_VERSION < "2.1.0"
|
19
|
+
gem "escape_utils", "~> 0.3", :require => false
|
20
|
+
gem "github-linguist", "~> 2.6.2", :require => false
|
21
|
+
else
|
22
|
+
gem "escape_utils", "~> 1.0", :require => false
|
23
|
+
gem "github-linguist", "~> 2.10", :require => false
|
24
|
+
end
|
25
|
+
|
20
26
|
if RUBY_VERSION < "1.9.2"
|
21
27
|
gem "sanitize", ">= 2", "< 2.0.4", :require => false
|
22
28
|
else
|
data/README.md
CHANGED
@@ -281,6 +281,14 @@ bundle
|
|
281
281
|
rake test
|
282
282
|
```
|
283
283
|
|
284
|
+
## Releasing a new version
|
285
|
+
|
286
|
+
This section is for gem maintainers to cut a new version of the gem.
|
287
|
+
|
288
|
+
* update lib/html/pipeline/version.rb to next version number X.X.X following [semver](http://semver.org).
|
289
|
+
* update CHANGELOG.md. Get latest changes with `git log --oneline vLAST_RELEASE..HEAD | grep Merge`
|
290
|
+
* on the master branch, run `script/release`
|
291
|
+
|
284
292
|
## Contributing
|
285
293
|
|
286
294
|
1. [Fork it](https://help.github.com/articles/fork-a-repo)
|
@@ -45,7 +45,7 @@ module HTML
|
|
45
45
|
:elements => %w(
|
46
46
|
h1 h2 h3 h4 h5 h6 h7 h8 br b i strong em a pre code img tt
|
47
47
|
div ins del sup sub p ol ul table thead tbody tfoot blockquote
|
48
|
-
dl dt dd kbd q samp var hr ruby rt rp li tr td th
|
48
|
+
dl dt dd kbd q samp var hr ruby rt rp li tr td th s strike
|
49
49
|
),
|
50
50
|
:remove_contents => ['script'],
|
51
51
|
:attributes => {
|
data/script/package
ADDED
data/script/release
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
# Usage: script/release
|
3
|
+
# Build the package, tag a commit, push it to origin, and then release the
|
4
|
+
# package publicly.
|
5
|
+
|
6
|
+
set -e
|
7
|
+
|
8
|
+
version="$(script/package | grep Version: | awk '{print $2}')"
|
9
|
+
[ -n "$version" ] || exit 1
|
10
|
+
|
11
|
+
echo $version
|
12
|
+
git commit --allow-empty -a -m "Release $version"
|
13
|
+
git tag "v$version"
|
14
|
+
git push origin
|
15
|
+
git push origin "v$version"
|
16
|
+
gem push pkg/*-${version}.gem
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -50,6 +50,7 @@ files:
|
|
50
50
|
- .gitignore
|
51
51
|
- .travis.yml
|
52
52
|
- CHANGELOG.md
|
53
|
+
- CONTRIBUTING.md
|
53
54
|
- Gemfile
|
54
55
|
- LICENSE
|
55
56
|
- README.md
|
@@ -75,6 +76,8 @@ files:
|
|
75
76
|
- lib/html/pipeline/textile_filter.rb
|
76
77
|
- lib/html/pipeline/toc_filter.rb
|
77
78
|
- lib/html/pipeline/version.rb
|
79
|
+
- script/package
|
80
|
+
- script/release
|
78
81
|
- test/helpers/mocked_instrumentation_service.rb
|
79
82
|
- test/html/pipeline/absolute_source_filter_test.rb
|
80
83
|
- test/html/pipeline/autolink_filter_test.rb
|