email_reply_trimmer 0.0.2 → 0.0.3
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
- metadata +2 -3
- data/email_reply_trimmer-0.0.1.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: 19680db20ccb52fcd7afbe30ac86f2dffa360816
|
4
|
+
data.tar.gz: 484401a6ae908fe55394c98bba290325dc38abfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c19ef6e183267482daa65035970f0820f3e062204fd97798e78ee87336a1beef0b8a0ad7e524df60541b8b6da18fdb4f51822a1c655ca159c2bb51bf4a27b8a
|
7
|
+
data.tar.gz: 259b5ed0c0e7f08bd8934c8c050bd85bdbe52fe1c9e4bb676269ed9e9d86f496fdcc9ea4a2501fcb58c7d8c45f510f7d8d736930b5dac9f2232d94b1283e0c15
|
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.3"
|
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,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.0.
|
4
|
+
version: 0.0.3
|
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: 2016-01-
|
11
|
+
date: 2016-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: EmailReplyTrimmer is a small library to trim replies from plain text
|
14
14
|
email.
|
@@ -21,7 +21,6 @@ files:
|
|
21
21
|
- LICENSE
|
22
22
|
- README.md
|
23
23
|
- Rakefile
|
24
|
-
- email_reply_trimmer-0.0.1.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
|