email_reply_trimmer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/email_reply_trimmer.rb +2 -2
- data/test/test_email_reply_trimmer.rb +1 -1
- metadata +1 -2
- data/email_reply_trimmer-0.0.3.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 524c9c03a9b4861ebc85dda7fa41280e8926564e
|
4
|
+
data.tar.gz: 067ae372e94788afc8f41a821dca98758a5259d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6156175d8c7bed81b5244b44fc15cb450e264aa932c3080708b3326b1250b641cc6f100bd95d00c644ba5085fe08ae3fdf4bfcbb37aedb75d022a9f817d1e27
|
7
|
+
data.tar.gz: 4480e8776f1ca3867ff8f656c8b3298bf8e37d249146f38deeee7aba70ba86fc4565ed06a5d794aa3a8898ae93bec8aa719bcd0dde11c130d188632544503c7a
|
data/lib/email_reply_trimmer.rb
CHANGED
@@ -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.0.
|
9
|
+
VERSION = "0.0.5"
|
10
10
|
|
11
11
|
DELIMITER = "d"
|
12
12
|
EMBEDDED = "b"
|
@@ -30,7 +30,7 @@ class EmailReplyTrimmer
|
|
30
30
|
return "" if text.nil? || text =~ /\A[[:space:]]*\Z/m
|
31
31
|
|
32
32
|
# normalize line endings
|
33
|
-
text
|
33
|
+
text.gsub!(/\r*\n/, "\n")
|
34
34
|
|
35
35
|
# fix embedded email markers that might span over multiple lines
|
36
36
|
EmbeddedEmailMatcher::ON_DATE_SOMEONE_WROTE_REGEXES.each do |r|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_reply_trimmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Régis Hanol
|
@@ -21,7 +21,6 @@ files:
|
|
21
21
|
- LICENSE
|
22
22
|
- README.md
|
23
23
|
- Rakefile
|
24
|
-
- email_reply_trimmer-0.0.3.gem
|
25
24
|
- email_reply_trimmer.gemspec
|
26
25
|
- lib/email_reply_trimmer.rb
|
27
26
|
- lib/email_reply_trimmer/delimiter_matcher.rb
|
Binary file
|