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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7394892053e17114efa7dfb63444527df829dc6c
4
- data.tar.gz: f598839360be70ef5c0ce255c4a00f1b1b73b2dd
3
+ metadata.gz: 649c29d096bbfcd86d56aea7aafe931b4d22da77
4
+ data.tar.gz: ac6cf6be4a5878b0a73572ec7e34845d1b2f5309
5
5
  SHA512:
6
- metadata.gz: f27fda91801b09d266821ffa643421832efb3c729872b4e65ed1d7122858ff08bef7745be6216e8ab0b870a07b4ef0c7eeb87e3b1252cef60f52e2f1e0a31ac9
7
- data.tar.gz: 1bd713d10c0294a6dd9fc1865e3d31a8c76dd4025807b1ca554c58bd52176f1d262eaf57ee029484c6c0dd0a700d071714c7c83d2a1b112820894846269b4eed
6
+ metadata.gz: a6f4b39c19af20f07230ec842d694f83e892b999704e5ae2993ada99de848dc838fa7b15156ca7bc1a57b4a15bd4fe53b1098517437787b87fb1a5692534dabb
7
+ data.tar.gz: 9a1ad2db13b1555911dd7c59effa97e7e13bb26a5724226b82a348937a2de3232572ffcd1b69420b44ca7b523a4996732b5454a0ee59bd739cecb7e7c1bee996
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- email_reply_trimmer (0.1.9)
4
+ email_reply_trimmer (0.1.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -6,7 +6,7 @@ require_relative "email_reply_trimmer/email_header_matcher"
6
6
  require_relative "email_reply_trimmer/quote_matcher"
7
7
 
8
8
  class EmailReplyTrimmer
9
- VERSION = "0.1.10"
9
+ VERSION = "0.1.11"
10
10
 
11
11
  DELIMITER = "d"
12
12
  EMBEDDED = "b"
@@ -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
- /^.*\d{4}.+\n?.*#{wrote}:/ :
71
- /^.*\d{4}.+#{user}.*\n?.*#{wrote}:/
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 = /^.*\d{4}.+\s?<[^@<>]+@[^@<>.]+\.[^@<>]+>:?$/
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.10
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-02-06 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake