email_reply_trimmer 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/email_reply_trimmer.rb +1 -1
- data/lib/email_reply_trimmer/embedded_email_matcher.rb +3 -3
- 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: 649c29d096bbfcd86d56aea7aafe931b4d22da77
|
4
|
+
data.tar.gz: ac6cf6be4a5878b0a73572ec7e34845d1b2f5309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6f4b39c19af20f07230ec842d694f83e892b999704e5ae2993ada99de848dc838fa7b15156ca7bc1a57b4a15bd4fe53b1098517437787b87fb1a5692534dabb
|
7
|
+
data.tar.gz: 9a1ad2db13b1555911dd7c59effa97e7e13bb26a5724226b82a348937a2de3232572ffcd1b69420b44ca7b523a4996732b5454a0ee59bd739cecb7e7c1bee996
|
data/Gemfile.lock
CHANGED
data/lib/email_reply_trimmer.rb
CHANGED
@@ -67,8 +67,8 @@ class EmbeddedEmailMatcher
|
|
67
67
|
|
68
68
|
DATE_SOMEONE_WROTE_REGEXES = DATE_SOMEONE_WROTE_MARKERS.map do |user, wrote|
|
69
69
|
user.size == 0 ?
|
70
|
-
|
71
|
-
|
70
|
+
/\d{4}.{1,80}\n?.{0,80}?#{wrote}:/ :
|
71
|
+
/\d{4}.{1,80}#{user}.{0,80}\n?.{0,80}?#{wrote}:/
|
72
72
|
end
|
73
73
|
|
74
74
|
# Max Mustermann <try_discourse@discoursemail.com> schrieb am Fr., 28. Apr. 2017 um 11:53 Uhr:
|
@@ -86,7 +86,7 @@ class EmbeddedEmailMatcher
|
|
86
86
|
# 2013/10/2 camilohollanda <info@discourse.org>
|
87
87
|
# вт, 5 янв. 2016 г. в 23:39, Erlend Sogge Heggen <info@discourse.org>:
|
88
88
|
# ср, 1 апр. 2015, 18:29, Denis Didkovsky <info@discourse.org>:
|
89
|
-
DATE_SOMEONE_EMAIL_REGEX =
|
89
|
+
DATE_SOMEONE_EMAIL_REGEX = /\d{4}.{1,80}\s?<[^@<>]+@[^@<>.]+\.[^@<>]+>:?$/
|
90
90
|
|
91
91
|
# codinghorror via Discourse Meta wrote:
|
92
92
|
# codinghorror via Discourse Meta <info@discourse.org> schrieb:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_reply_trimmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Régis Hanol
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|