html-pipeline 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -0
- data/lib/html/pipeline/email_reply_filter.rb +1 -1
- data/lib/html/pipeline/version.rb +1 -1
- data/test/html/pipeline/email_reply_filter_test.rb +34 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35aa83bb8902a72b012f930cafe924e7177a6d80
|
4
|
+
data.tar.gz: 808e09472fdeaf1cf294bf4715e6754b38b0157b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 214b479a825e9b5199e2e0c38a3d73519c56df8950786f12b2c5a35107081ffdec9a3fedcdbe1903428e276bfb2b893f353462e0acdf116f7fb2bfb53dd7c4bd
|
7
|
+
data.tar.gz: b0868ef474821065d9f4feb9c3769e66ccded085435931f2cbcdb03ddf66f42a4b469f60f8cd5719580f368a9d04316780581a157d481eca0a1d60dd0af51e35
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -250,6 +250,9 @@ Here are some extensions people have built:
|
|
250
250
|
* [html-pipeline-vimeo](https://github.com/dlackty/html-pipeline-vimeo) - An HTML::Pipeline filter for Vimeo links
|
251
251
|
* [html-pipeline-hashtag](https://github.com/mr-dxdy/html-pipeline-hashtag) - An HTML::Pipeline filter for hashtags
|
252
252
|
* [html-pipeline-linkify_github](https://github.com/jollygoodcode/html-pipeline-linkify_github) - An HTML::Pipeline filter to autolink GitHub urls
|
253
|
+
* [html-pipeline-redcarpet_filter](https://github.com/bmikol/html-pipeline-redcarpet_filter) - Render Markdown source text into Markdown HTML using Redcarpet
|
254
|
+
* [html-pipeline-typogruby_filter](https://github.com/bmikol/html-pipeline-typogruby_filter) - Add Typogruby text filters to your HTML::Pipeline
|
255
|
+
|
253
256
|
|
254
257
|
## Instrumenting
|
255
258
|
|
@@ -29,4 +29,38 @@ EMAIL
|
|
29
29
|
refute_match %r(boatymcboatface@example.com), doc
|
30
30
|
refute_match %r(alreadyleaked@example.com), doc
|
31
31
|
end
|
32
|
+
|
33
|
+
def test_preserves_non_email_content_while_filtering
|
34
|
+
str = <<-EMAIL
|
35
|
+
> Thank you! I have some thoughts on this pull request.
|
36
|
+
>
|
37
|
+
> * acme provides cmake and a wrapper for it. Please use '$(TARGET)-cmake' instead of cmake -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' -DCMAKE_BUILD_TYPE=Release.
|
38
|
+
|
39
|
+
Okay -- I'm afraid I just blindly copied the eigen3.mk file, since that's a library I'm familiar with :-)
|
40
|
+
|
41
|
+
> * Do you need -DCMAKE_SYSTEM_PROCESSOR=x86?
|
42
|
+
|
43
|
+
Yes, this is a bit dumb, but vc checks for that (or amd) to determine that it's not being built on ARM.
|
44
|
+
|
45
|
+
--
|
46
|
+
Boaty McBoatface | http://example.org
|
47
|
+
EMAIL
|
48
|
+
|
49
|
+
filter = EmailReplyFilter.new(str, :hide_quoted_email_addresses => true)
|
50
|
+
doc = filter.call.to_s
|
51
|
+
|
52
|
+
expected = <<-EXPECTED
|
53
|
+
<div class="email-quoted-reply"> Thank you! I have some thoughts on this pull request.
|
54
|
+
|
55
|
+
* acme provides cmake and a wrapper for it. Please use '$(TARGET)-cmake' instead of cmake -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' -DCMAKE_BUILD_TYPE=Release.</div>
|
56
|
+
<div class="email-fragment">Okay -- I'm afraid I just blindly copied the eigen3.mk file, since that's a library I'm familiar with :-)</div>
|
57
|
+
<div class="email-quoted-reply"> * Do you need -DCMAKE_SYSTEM_PROCESSOR=x86?</div>
|
58
|
+
<div class="email-fragment">Yes, this is a bit dumb, but vc checks for that (or amd) to determine that it's not being built on ARM.</div>
|
59
|
+
<span class="email-hidden-toggle"><a href="#">…</a></span><div class="email-hidden-reply" style="display:none"><div class="email-signature-reply">--
|
60
|
+
Boaty McBoatface | http://example.org</div>
|
61
|
+
</div>
|
62
|
+
EXPECTED
|
63
|
+
|
64
|
+
assert_equal(expected.chomp, doc)
|
65
|
+
end
|
32
66
|
end
|
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: 2.4.
|
4
|
+
version: 2.4.1
|
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: 2016-
|
12
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|