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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfa08e2fe81cc760935dd3581815a6b2e5a49ffc
4
- data.tar.gz: cb319cb76c4a6428e8fdc4e20eab8aff083fbc8c
3
+ metadata.gz: 524c9c03a9b4861ebc85dda7fa41280e8926564e
4
+ data.tar.gz: 067ae372e94788afc8f41a821dca98758a5259d4
5
5
  SHA512:
6
- metadata.gz: fc0450c91a3c56dd692a688310046fc3560a9b9bce00c0998bb68b4077370a8a9c34464006a970800f29d4abb0b1ecba1e8b5d5ced8456c750373dbde54954ff
7
- data.tar.gz: d350b84fbbc4c8df6d613f2097072465f326f43ab9538ccc7ac6164251b1cf8b1e77e2200fe08231edc7a0cd9944eef72bc022d69c1f8f1a4f485f985308915a
6
+ metadata.gz: b6156175d8c7bed81b5244b44fc15cb450e264aa932c3080708b3326b1250b641cc6f100bd95d00c644ba5085fe08ae3fdf4bfcbb37aedb75d022a9f817d1e27
7
+ data.tar.gz: 4480e8776f1ca3867ff8f656c8b3298bf8e37d249146f38deeee7aba70ba86fc4565ed06a5d794aa3a8898ae93bec8aa719bcd0dde11c130d188632544503c7a
@@ -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.4"
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 = text.gsub!(/\r*\n/, "\n")
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|
@@ -22,7 +22,7 @@ class TestEmailReplyTrimmer < Minitest::Unit::TestCase
22
22
  end
23
23
 
24
24
  def trim(filename)
25
- body = File.read("test/emails/#{filename}")
25
+ body = File.read("test/emails/#{filename}").strip
26
26
  EmailReplyTrimmer.trim(body)
27
27
  end
28
28
 
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
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