runger_email_reply_trimmer 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +7 -0
  3. data/Gemfile +17 -0
  4. data/Gemfile.lock +72 -0
  5. data/LICENSE +9 -0
  6. data/README.md +21 -0
  7. data/Rakefile +17 -0
  8. data/bin/release +27 -0
  9. data/lib/runger_email_reply_trimmer/delimiter_matcher.rb +12 -0
  10. data/lib/runger_email_reply_trimmer/email_header_matcher.rb +72 -0
  11. data/lib/runger_email_reply_trimmer/embedded_email_matcher.rb +158 -0
  12. data/lib/runger_email_reply_trimmer/empty_line_matcher.rb +9 -0
  13. data/lib/runger_email_reply_trimmer/quote_matcher.rb +9 -0
  14. data/lib/runger_email_reply_trimmer/signature_matcher.rb +52 -0
  15. data/lib/runger_email_reply_trimmer/version.rb +5 -0
  16. data/lib/runger_email_reply_trimmer.rb +226 -0
  17. data/runger_email_reply_trimmer.gemspec +21 -0
  18. data/test/before/email_headers_1.txt +1 -0
  19. data/test/before/email_headers_2.txt +1 -0
  20. data/test/before/email_headers_3.txt +1 -0
  21. data/test/before/email_headers_4.txt +1 -0
  22. data/test/before/embedded_email_10.txt +25 -0
  23. data/test/before/embedded_email_german_3.txt +1 -0
  24. data/test/before/embedded_email_spanish_2.txt +1 -0
  25. data/test/before/forwarded_apple.txt +1 -0
  26. data/test/before/forwarded_gmail.txt +1 -0
  27. data/test/before/forwarded_message.txt +0 -0
  28. data/test/elided/delimiters.txt +10 -0
  29. data/test/elided/dual_embedded.txt +10 -0
  30. data/test/elided/email_headers_1.txt +14 -0
  31. data/test/elided/email_headers_2.txt +9 -0
  32. data/test/elided/email_headers_3.txt +16 -0
  33. data/test/elided/email_headers_4.txt +15 -0
  34. data/test/elided/email_headers_5.txt +23 -0
  35. data/test/elided/embedded_ception.txt +38 -0
  36. data/test/elided/embedded_email_1.txt +6 -0
  37. data/test/elided/embedded_email_10.txt +40 -0
  38. data/test/elided/embedded_email_11.txt +3 -0
  39. data/test/elided/embedded_email_12.txt +8 -0
  40. data/test/elided/embedded_email_13.txt +9 -0
  41. data/test/elided/embedded_email_14.txt +11 -0
  42. data/test/elided/embedded_email_15.txt +4 -0
  43. data/test/elided/embedded_email_16.txt +4 -0
  44. data/test/elided/embedded_email_17.txt +2 -0
  45. data/test/elided/embedded_email_18.txt +1 -0
  46. data/test/elided/embedded_email_19.txt +0 -0
  47. data/test/elided/embedded_email_2.txt +9 -0
  48. data/test/elided/embedded_email_3.txt +14 -0
  49. data/test/elided/embedded_email_4.txt +15 -0
  50. data/test/elided/embedded_email_5.txt +3 -0
  51. data/test/elided/embedded_email_6.txt +3 -0
  52. data/test/elided/embedded_email_7.txt +10 -0
  53. data/test/elided/embedded_email_8.txt +3 -0
  54. data/test/elided/embedded_email_9.txt +3 -0
  55. data/test/elided/embedded_email_chinese.txt +4 -0
  56. data/test/elided/embedded_email_dutch_1.txt +10 -0
  57. data/test/elided/embedded_email_dutch_2.txt +59 -0
  58. data/test/elided/embedded_email_french_1.txt +9 -0
  59. data/test/elided/embedded_email_french_2.txt +19 -0
  60. data/test/elided/embedded_email_german_1.txt +22 -0
  61. data/test/elided/embedded_email_german_2.txt +3 -0
  62. data/test/elided/embedded_email_german_3.txt +7 -0
  63. data/test/elided/embedded_email_german_4.txt +15 -0
  64. data/test/elided/embedded_email_german_5.txt +20 -0
  65. data/test/elided/embedded_email_german_6.txt +8 -0
  66. data/test/elided/embedded_email_italian.txt +28 -0
  67. data/test/elided/embedded_email_norwegian.txt +9 -0
  68. data/test/elided/embedded_email_polish_1.txt +32 -0
  69. data/test/elided/embedded_email_polish_2.txt +7 -0
  70. data/test/elided/embedded_email_portuguese.txt +14 -0
  71. data/test/elided/embedded_email_quote_text.txt +6 -0
  72. data/test/elided/embedded_email_russian_1.txt +25 -0
  73. data/test/elided/embedded_email_russian_2.txt +23 -0
  74. data/test/elided/embedded_email_spanish_1.txt +32 -0
  75. data/test/elided/embedded_email_spanish_2.txt +10 -0
  76. data/test/elided/embedded_email_swedish.txt +8 -0
  77. data/test/elided/embedded_email_ukrainian.txt +17 -0
  78. data/test/elided/forwarded_apple.txt +15 -0
  79. data/test/elided/forwarded_gmail.txt +15 -0
  80. data/test/elided/forwarded_message.txt +6 -0
  81. data/test/elided/normalize_line_endings.txt +0 -0
  82. data/test/elided/quote_and_text.txt +0 -0
  83. data/test/elided/quote_only.txt +0 -0
  84. data/test/elided/retains_spaces_and_formatting.txt +0 -0
  85. data/test/elided/signatures.txt +31 -0
  86. data/test/elided/spam_1.txt +75 -0
  87. data/test/elided/spam_2.txt +152 -0
  88. data/test/elided/strip.txt +0 -0
  89. data/test/elided/text_only.txt +0 -0
  90. data/test/elided/usenet.txt +7 -0
  91. data/test/emails/delimiters.txt +14 -0
  92. data/test/emails/dual_embedded.txt +13 -0
  93. data/test/emails/email_headers_1.txt +17 -0
  94. data/test/emails/email_headers_2.txt +10 -0
  95. data/test/emails/email_headers_3.txt +18 -0
  96. data/test/emails/email_headers_4.txt +17 -0
  97. data/test/emails/email_headers_5.txt +37 -0
  98. data/test/emails/embedded_ception.txt +47 -0
  99. data/test/emails/embedded_email_1.txt +8 -0
  100. data/test/emails/embedded_email_10.txt +42 -0
  101. data/test/emails/embedded_email_11.txt +5 -0
  102. data/test/emails/embedded_email_12.txt +18 -0
  103. data/test/emails/embedded_email_13.txt +14 -0
  104. data/test/emails/embedded_email_14.txt +16 -0
  105. data/test/emails/embedded_email_15.txt +9 -0
  106. data/test/emails/embedded_email_16.txt +16 -0
  107. data/test/emails/embedded_email_17.txt +38 -0
  108. data/test/emails/embedded_email_18.txt +7 -0
  109. data/test/emails/embedded_email_19.txt +13 -0
  110. data/test/emails/embedded_email_2.txt +16 -0
  111. data/test/emails/embedded_email_3.txt +24 -0
  112. data/test/emails/embedded_email_4.txt +19 -0
  113. data/test/emails/embedded_email_5.txt +5 -0
  114. data/test/emails/embedded_email_6.txt +11 -0
  115. data/test/emails/embedded_email_7.txt +20 -0
  116. data/test/emails/embedded_email_8.txt +5 -0
  117. data/test/emails/embedded_email_9.txt +5 -0
  118. data/test/emails/embedded_email_chinese.txt +7 -0
  119. data/test/emails/embedded_email_dutch_1.txt +13 -0
  120. data/test/emails/embedded_email_dutch_2.txt +62 -0
  121. data/test/emails/embedded_email_french_1.txt +12 -0
  122. data/test/emails/embedded_email_french_2.txt +21 -0
  123. data/test/emails/embedded_email_german_1.txt +26 -0
  124. data/test/emails/embedded_email_german_2.txt +6 -0
  125. data/test/emails/embedded_email_german_3.txt +10 -0
  126. data/test/emails/embedded_email_german_4.txt +18 -0
  127. data/test/emails/embedded_email_german_5.txt +23 -0
  128. data/test/emails/embedded_email_german_6.txt +14 -0
  129. data/test/emails/embedded_email_italian.txt +31 -0
  130. data/test/emails/embedded_email_norwegian.txt +11 -0
  131. data/test/emails/embedded_email_polish_1.txt +34 -0
  132. data/test/emails/embedded_email_polish_2.txt +11 -0
  133. data/test/emails/embedded_email_portuguese.txt +18 -0
  134. data/test/emails/embedded_email_quote_text.txt +10 -0
  135. data/test/emails/embedded_email_russian_1.txt +27 -0
  136. data/test/emails/embedded_email_russian_2.txt +26 -0
  137. data/test/emails/embedded_email_spanish_1.txt +41 -0
  138. data/test/emails/embedded_email_spanish_2.txt +12 -0
  139. data/test/emails/embedded_email_swedish.txt +20 -0
  140. data/test/emails/embedded_email_ukrainian.txt +19 -0
  141. data/test/emails/forwarded_apple.txt +17 -0
  142. data/test/emails/forwarded_gmail.txt +17 -0
  143. data/test/emails/forwarded_message.txt +9 -0
  144. data/test/emails/normalize_line_endings.txt +4 -0
  145. data/test/emails/quote_and_text.txt +3 -0
  146. data/test/emails/quote_only.txt +1 -0
  147. data/test/emails/retains_spaces_and_formatting.txt +14 -0
  148. data/test/emails/signatures.txt +33 -0
  149. data/test/emails/spam_1.txt +75 -0
  150. data/test/emails/spam_2.txt +174 -0
  151. data/test/emails/strip.txt +10 -0
  152. data/test/emails/text_only.txt +1 -0
  153. data/test/emails/usenet.txt +9 -0
  154. data/test/embedded/email_headers_1.txt +12 -0
  155. data/test/embedded/email_headers_2.txt +8 -0
  156. data/test/embedded/email_headers_3.txt +16 -0
  157. data/test/embedded/email_headers_4.txt +15 -0
  158. data/test/embedded/embedded_email_10.txt +15 -0
  159. data/test/embedded/embedded_email_german_3.txt +6 -0
  160. data/test/embedded/embedded_email_spanish_2.txt +9 -0
  161. data/test/embedded/forwarded_apple.txt +13 -0
  162. data/test/embedded/forwarded_gmail.txt +14 -0
  163. data/test/embedded/forwarded_message.txt +8 -0
  164. data/test/matchers/does_not_contain_embedded_email.txt +5 -0
  165. data/test/test_email_matcher.rb +17 -0
  166. data/test/test_email_reply_trimmer.rb +87 -0
  167. data/test/trimmed/delimiters.txt +3 -0
  168. data/test/trimmed/dual_embedded.txt +1 -0
  169. data/test/trimmed/email_headers_1.txt +1 -0
  170. data/test/trimmed/email_headers_2.txt +1 -0
  171. data/test/trimmed/email_headers_3.txt +1 -0
  172. data/test/trimmed/email_headers_4.txt +1 -0
  173. data/test/trimmed/email_headers_5.txt +11 -0
  174. data/test/trimmed/embedded_ception.txt +4 -0
  175. data/test/trimmed/embedded_email_1.txt +1 -0
  176. data/test/trimmed/embedded_email_10.txt +1 -0
  177. data/test/trimmed/embedded_email_11.txt +1 -0
  178. data/test/trimmed/embedded_email_12.txt +1 -0
  179. data/test/trimmed/embedded_email_13.txt +3 -0
  180. data/test/trimmed/embedded_email_14.txt +3 -0
  181. data/test/trimmed/embedded_email_15.txt +3 -0
  182. data/test/trimmed/embedded_email_16.txt +11 -0
  183. data/test/trimmed/embedded_email_17.txt +35 -0
  184. data/test/trimmed/embedded_email_18.txt +5 -0
  185. data/test/trimmed/embedded_email_19.txt +13 -0
  186. data/test/trimmed/embedded_email_2.txt +3 -0
  187. data/test/trimmed/embedded_email_3.txt +7 -0
  188. data/test/trimmed/embedded_email_4.txt +2 -0
  189. data/test/trimmed/embedded_email_5.txt +1 -0
  190. data/test/trimmed/embedded_email_6.txt +7 -0
  191. data/test/trimmed/embedded_email_7.txt +10 -0
  192. data/test/trimmed/embedded_email_8.txt +1 -0
  193. data/test/trimmed/embedded_email_9.txt +1 -0
  194. data/test/trimmed/embedded_email_chinese.txt +2 -0
  195. data/test/trimmed/embedded_email_dutch_1.txt +1 -0
  196. data/test/trimmed/embedded_email_dutch_2.txt +2 -0
  197. data/test/trimmed/embedded_email_french_1.txt +1 -0
  198. data/test/trimmed/embedded_email_french_2.txt +1 -0
  199. data/test/trimmed/embedded_email_german_1.txt +1 -0
  200. data/test/trimmed/embedded_email_german_2.txt +1 -0
  201. data/test/trimmed/embedded_email_german_3.txt +1 -0
  202. data/test/trimmed/embedded_email_german_4.txt +1 -0
  203. data/test/trimmed/embedded_email_german_5.txt +1 -0
  204. data/test/trimmed/embedded_email_german_6.txt +4 -0
  205. data/test/trimmed/embedded_email_italian.txt +1 -0
  206. data/test/trimmed/embedded_email_norwegian.txt +1 -0
  207. data/test/trimmed/embedded_email_polish_1.txt +1 -0
  208. data/test/trimmed/embedded_email_polish_2.txt +2 -0
  209. data/test/trimmed/embedded_email_portuguese.txt +2 -0
  210. data/test/trimmed/embedded_email_quote_text.txt +2 -0
  211. data/test/trimmed/embedded_email_russian_1.txt +1 -0
  212. data/test/trimmed/embedded_email_russian_2.txt +1 -0
  213. data/test/trimmed/embedded_email_spanish_1.txt +6 -0
  214. data/test/trimmed/embedded_email_spanish_2.txt +1 -0
  215. data/test/trimmed/embedded_email_swedish.txt +9 -0
  216. data/test/trimmed/embedded_email_ukrainian.txt +1 -0
  217. data/test/trimmed/forwarded_apple.txt +1 -0
  218. data/test/trimmed/forwarded_gmail.txt +1 -0
  219. data/test/trimmed/forwarded_message.txt +1 -0
  220. data/test/trimmed/normalize_line_endings.txt +4 -0
  221. data/test/trimmed/quote_and_text.txt +3 -0
  222. data/test/trimmed/quote_only.txt +1 -0
  223. data/test/trimmed/retains_spaces_and_formatting.txt +14 -0
  224. data/test/trimmed/signatures.txt +1 -0
  225. data/test/trimmed/spam_1.txt +0 -0
  226. data/test/trimmed/spam_2.txt +21 -0
  227. data/test/trimmed/strip.txt +1 -0
  228. data/test/trimmed/text_only.txt +1 -0
  229. data/test/trimmed/usenet.txt +1 -0
  230. metadata +275 -0
@@ -0,0 +1,35 @@
1
+ The intent was to return nil when the first value was nil.
2
+ That was the op's issue.
3
+ If one of the values was nil, she/he wanted nil.
4
+
5
+ Nil && anything_else will always return nil, and I will not evaluate the
6
+ second clause.
7
+
8
+
9
+ > >>>>>>>>
10
+ > It should be:
11
+ > 2.0 && 2.0 + 12.0
12
+ > <<<<<<<<<
13
+ >
14
+ > Ah! Yes, that works.
15
+ >
16
+ >
17
+ People are intent on not understanding, aren't they.
18
+
19
+ def nil_add_12 f
20
+ f && f + 12.0
21
+ end
22
+
23
+ Generalised to two parameters:
24
+
25
+ def nil_add a, b
26
+ a && b && a + b
27
+ end
28
+
29
+ The only quirk is the way they handle `false`.
30
+
31
+ This is not tested, but it may be possible to do this, too:
32
+
33
+ f&.+ b
34
+
35
+ Cheers
@@ -0,0 +1,5 @@
1
+ nil && 2.0 + 12.0
2
+
3
+ It should be:
4
+
5
+ 2.0 && 2.0 + 12.0
@@ -0,0 +1,13 @@
1
+ I had a really hard time with the official guide, so when I finally
2
+ figured it out, I wrote one of my own:
3
+
4
+
5
+ http://ryanlue.com/posts/2017-02-18-how-to-publish-a-gem
6
+
7
+
8
+
9
+ Let me know if you like it (or if you don't) – any feedback is highly
10
+ appreciated!
11
+
12
+
13
+ —Ryan
@@ -0,0 +1,3 @@
1
+ I have checked the available documentation/links to find out the end points. If there are some other endpoints, can you please tell the endpoints
2
+
3
+ Best Regards
@@ -0,0 +1,7 @@
1
+ Sure, [Bitnami](http://bitnami.com/stack/discourse) supports EC2 and there
2
+ are several topics here about it.
3
+
4
+ Our [official install guide](
5
+ https://github.com/discourse/discourse/blob/master/docs/INSTALL-ubuntu.md)
6
+ also works great on an Amazon EC2 provisioned virtual machine with very
7
+ little change.
@@ -0,0 +1,2 @@
1
+ If I do exactly that, then the test group won't be saved after a refresh of
2
+ the page.
@@ -0,0 +1 @@
1
+ I am testing the SOMEONE_EMAIL_WROTE_REGEX regular expression.
@@ -0,0 +1,7 @@
1
+ Ensuring that ON_DATE_SOMEONE_WROTE_REGEXES is not greedy.
2
+
3
+ On this day
4
+
5
+ I wrote something
6
+
7
+ which was very interesting.
@@ -0,0 +1,10 @@
1
+ This is a line before the embedded email.
2
+ > Hello
3
+ >
4
+ > This is the embedded email.
5
+
6
+ This is some text
7
+
8
+ after the
9
+
10
+ embedded email.
@@ -0,0 +1 @@
1
+ Foo
@@ -0,0 +1 @@
1
+ Bar
@@ -0,0 +1,2 @@
1
+ Hi Erlend Sogge Heggen,
2
+ Thank you for your reply.
@@ -0,0 +1 @@
1
+ Nice of you to pick it up! Could you make a PR? Then other people can use it too. Would be great.
@@ -0,0 +1,2 @@
1
+ The adblocker idea from @elberet might be it. Regretfully I only have time
2
+ to test this in 2 weeks. I will let you know then...
@@ -0,0 +1 @@
1
+ C'est super !
@@ -0,0 +1 @@
1
+ Thanks for your answer.
@@ -0,0 +1 @@
1
+ alright, no big deal - I assume in this case the code needs some refactoring to better support I18N anyway.
@@ -0,0 +1 @@
1
+ Hey:)
@@ -0,0 +1 @@
1
+ Gruß Discourse
@@ -0,0 +1 @@
1
+ Hi there! I am replying from my german Google Inbox.
@@ -0,0 +1 @@
1
+ Okay. Will give it a whirl.
@@ -0,0 +1,4 @@
1
+ Ich habe konzeptionell eine Präferenz für die zweite Option. Die 2 VLs
2
+ stellen die Inhalte vor, und präsentieren diese in einen größeren Kontext.
3
+ Dann beginnt das Training der technischen Finessen mit Trainingsblatt,
4
+ Trainingsvideos usw. Bin gleichzeitig robust, sofern nötig.
@@ -0,0 +1 @@
1
+ Ok, will do. As a test, this is a reply from a webmail client.
@@ -0,0 +1 @@
1
+ Thanx :-)
@@ -0,0 +1 @@
1
+ Oh, I've forgot to add. MIT
@@ -0,0 +1,2 @@
1
+ Hi Neil,
2
+ Thanks for prompt response!
@@ -0,0 +1,2 @@
1
+ Olá,
2
+ Qualquer dúvida estamos ai.
@@ -0,0 +1,2 @@
1
+ when I said looks possible, I pointed to rack because that's still the web
2
+ server level
@@ -0,0 +1 @@
1
+ Why don't you override particular strings with JS?
@@ -0,0 +1 @@
1
+ Yes.
@@ -0,0 +1,6 @@
1
+ I've configured Twitter Authentication, so this error happends on the
2
+ application, after twitter posts to my discourse install via the callback.
3
+
4
+ In the front error I can get a correct message saying "Something waa wrong,
5
+ check you usename and password" and in the backend I see that error in the
6
+ logs.
@@ -0,0 +1 @@
1
+ Igual que siempre (inclusive ahora), sin nada raro :/
@@ -0,0 +1,9 @@
1
+ Hi everyone!
2
+
3
+ Here you can find the pictures that I took https://foo.bar
4
+
5
+ It was a pleasure to support this event.
6
+
7
+ Best regards
8
+
9
+ Some One
@@ -0,0 +1 @@
1
+ Спасибо еще раз.
@@ -0,0 +1 @@
1
+ This email has been forwarded from Apple Mail.
@@ -0,0 +1 @@
1
+ This email has been forwarded from Gmail.
@@ -0,0 +1 @@
1
+ This is a forwarded email. And just that.
@@ -0,0 +1,4 @@
1
+ Email with
2
+ windows
3
+ line
4
+ endings
@@ -0,0 +1,3 @@
1
+ > This is a quote.
2
+
3
+ And this is some text.
@@ -0,0 +1 @@
1
+ > Email with only quote.
@@ -0,0 +1,14 @@
1
+ Formatting and
2
+
3
+ spaces
4
+
5
+ - A
6
+ - B
7
+ - C
8
+
9
+ should be retained
10
+
11
+
12
+ - Item #1
13
+ - Item #2
14
+
@@ -0,0 +1 @@
1
+ This email was sent from way too much different devices ;)
File without changes
@@ -0,0 +1,21 @@
1
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet dictum
2
+ lectus, at efficitur neque. Class aptent taciti sociosqu ad litora torquent per
3
+ conubia nostra, per inceptos himenaeos. Aenean dictum pulvinar tortor non
4
+ ultricies. Maecenas cursus lobortis dolor quis feugiat. Integer efficitur,
5
+ mauris sit amet lobortis consectetur, urna augue feugiat mi, et tempor dui
6
+ sapien vehicula dolor. Aenean sit amet ultrices tortor. Praesent vel porttitor
7
+ risus, eu fringilla nibh. Phasellus sollicitudin elit id tortor dapibus, at
8
+ euismod odio sodales. Ut est ex, pharetra malesuada dui maximus, ullamcorper
9
+ fringilla turpis. Nullam gravida, elit blandit commodo blandit, velit sem
10
+ ornare odio, eu ultricies arcu ex sit amet libero. Vestibulum eu fringilla
11
+ ante, nec blandit nunc.
12
+
13
+ Nullam nec viverra ipsum. Nullam semper eu urna id facilisis. Nam blandit
14
+ dictum eros, sit amet auctor dui fermentum a. Quisque finibus magna nisi, ac
15
+ hendrerit purus lacinia ut. Donec maximus, enim id tincidunt vulputate, libero
16
+ ex tempor elit, vitae sagittis libero leo sed leo. Quisque non gravida ex,
17
+ efficitur interdum neque. Interdum et malesuada fames ac ante ipsum primis in
18
+ faucibus. Phasellus rhoncus nisi vitae turpis bibendum luctus. Duis placerat
19
+ aliquam lectus, pellentesque commodo dolor hendrerit quis. Suspendisse ipsum
20
+ sapien, interdum ac felis ac, mattis varius neque. Maecenas nec risus sit amet
21
+ ex aliquam vestibulum. Maecenas a turpis et turpis volutpat congue.
@@ -0,0 +1 @@
1
+ Strip leading and trailing empty lines.
@@ -0,0 +1 @@
1
+ Email with only text.
@@ -0,0 +1 @@
1
+ Mal sehen was hier mit der Signatur passiert!
metadata ADDED
@@ -0,0 +1,275 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: runger_email_reply_trimmer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
+ platform: ruby
6
+ authors:
7
+ - David Runger
8
+ - Régis Hanol
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2023-05-21 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: RungerEmailReplyTrimmer is a library to trim replies from plain text
15
+ email.
16
+ email:
17
+ - davidjrunger@gmail.com
18
+ - regis+rubygems@hanol.fr
19
+ executables: []
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - CHANGELOG.md
24
+ - Gemfile
25
+ - Gemfile.lock
26
+ - LICENSE
27
+ - README.md
28
+ - Rakefile
29
+ - bin/release
30
+ - lib/runger_email_reply_trimmer.rb
31
+ - lib/runger_email_reply_trimmer/delimiter_matcher.rb
32
+ - lib/runger_email_reply_trimmer/email_header_matcher.rb
33
+ - lib/runger_email_reply_trimmer/embedded_email_matcher.rb
34
+ - lib/runger_email_reply_trimmer/empty_line_matcher.rb
35
+ - lib/runger_email_reply_trimmer/quote_matcher.rb
36
+ - lib/runger_email_reply_trimmer/signature_matcher.rb
37
+ - lib/runger_email_reply_trimmer/version.rb
38
+ - runger_email_reply_trimmer.gemspec
39
+ - test/before/email_headers_1.txt
40
+ - test/before/email_headers_2.txt
41
+ - test/before/email_headers_3.txt
42
+ - test/before/email_headers_4.txt
43
+ - test/before/embedded_email_10.txt
44
+ - test/before/embedded_email_german_3.txt
45
+ - test/before/embedded_email_spanish_2.txt
46
+ - test/before/forwarded_apple.txt
47
+ - test/before/forwarded_gmail.txt
48
+ - test/before/forwarded_message.txt
49
+ - test/elided/delimiters.txt
50
+ - test/elided/dual_embedded.txt
51
+ - test/elided/email_headers_1.txt
52
+ - test/elided/email_headers_2.txt
53
+ - test/elided/email_headers_3.txt
54
+ - test/elided/email_headers_4.txt
55
+ - test/elided/email_headers_5.txt
56
+ - test/elided/embedded_ception.txt
57
+ - test/elided/embedded_email_1.txt
58
+ - test/elided/embedded_email_10.txt
59
+ - test/elided/embedded_email_11.txt
60
+ - test/elided/embedded_email_12.txt
61
+ - test/elided/embedded_email_13.txt
62
+ - test/elided/embedded_email_14.txt
63
+ - test/elided/embedded_email_15.txt
64
+ - test/elided/embedded_email_16.txt
65
+ - test/elided/embedded_email_17.txt
66
+ - test/elided/embedded_email_18.txt
67
+ - test/elided/embedded_email_19.txt
68
+ - test/elided/embedded_email_2.txt
69
+ - test/elided/embedded_email_3.txt
70
+ - test/elided/embedded_email_4.txt
71
+ - test/elided/embedded_email_5.txt
72
+ - test/elided/embedded_email_6.txt
73
+ - test/elided/embedded_email_7.txt
74
+ - test/elided/embedded_email_8.txt
75
+ - test/elided/embedded_email_9.txt
76
+ - test/elided/embedded_email_chinese.txt
77
+ - test/elided/embedded_email_dutch_1.txt
78
+ - test/elided/embedded_email_dutch_2.txt
79
+ - test/elided/embedded_email_french_1.txt
80
+ - test/elided/embedded_email_french_2.txt
81
+ - test/elided/embedded_email_german_1.txt
82
+ - test/elided/embedded_email_german_2.txt
83
+ - test/elided/embedded_email_german_3.txt
84
+ - test/elided/embedded_email_german_4.txt
85
+ - test/elided/embedded_email_german_5.txt
86
+ - test/elided/embedded_email_german_6.txt
87
+ - test/elided/embedded_email_italian.txt
88
+ - test/elided/embedded_email_norwegian.txt
89
+ - test/elided/embedded_email_polish_1.txt
90
+ - test/elided/embedded_email_polish_2.txt
91
+ - test/elided/embedded_email_portuguese.txt
92
+ - test/elided/embedded_email_quote_text.txt
93
+ - test/elided/embedded_email_russian_1.txt
94
+ - test/elided/embedded_email_russian_2.txt
95
+ - test/elided/embedded_email_spanish_1.txt
96
+ - test/elided/embedded_email_spanish_2.txt
97
+ - test/elided/embedded_email_swedish.txt
98
+ - test/elided/embedded_email_ukrainian.txt
99
+ - test/elided/forwarded_apple.txt
100
+ - test/elided/forwarded_gmail.txt
101
+ - test/elided/forwarded_message.txt
102
+ - test/elided/normalize_line_endings.txt
103
+ - test/elided/quote_and_text.txt
104
+ - test/elided/quote_only.txt
105
+ - test/elided/retains_spaces_and_formatting.txt
106
+ - test/elided/signatures.txt
107
+ - test/elided/spam_1.txt
108
+ - test/elided/spam_2.txt
109
+ - test/elided/strip.txt
110
+ - test/elided/text_only.txt
111
+ - test/elided/usenet.txt
112
+ - test/emails/delimiters.txt
113
+ - test/emails/dual_embedded.txt
114
+ - test/emails/email_headers_1.txt
115
+ - test/emails/email_headers_2.txt
116
+ - test/emails/email_headers_3.txt
117
+ - test/emails/email_headers_4.txt
118
+ - test/emails/email_headers_5.txt
119
+ - test/emails/embedded_ception.txt
120
+ - test/emails/embedded_email_1.txt
121
+ - test/emails/embedded_email_10.txt
122
+ - test/emails/embedded_email_11.txt
123
+ - test/emails/embedded_email_12.txt
124
+ - test/emails/embedded_email_13.txt
125
+ - test/emails/embedded_email_14.txt
126
+ - test/emails/embedded_email_15.txt
127
+ - test/emails/embedded_email_16.txt
128
+ - test/emails/embedded_email_17.txt
129
+ - test/emails/embedded_email_18.txt
130
+ - test/emails/embedded_email_19.txt
131
+ - test/emails/embedded_email_2.txt
132
+ - test/emails/embedded_email_3.txt
133
+ - test/emails/embedded_email_4.txt
134
+ - test/emails/embedded_email_5.txt
135
+ - test/emails/embedded_email_6.txt
136
+ - test/emails/embedded_email_7.txt
137
+ - test/emails/embedded_email_8.txt
138
+ - test/emails/embedded_email_9.txt
139
+ - test/emails/embedded_email_chinese.txt
140
+ - test/emails/embedded_email_dutch_1.txt
141
+ - test/emails/embedded_email_dutch_2.txt
142
+ - test/emails/embedded_email_french_1.txt
143
+ - test/emails/embedded_email_french_2.txt
144
+ - test/emails/embedded_email_german_1.txt
145
+ - test/emails/embedded_email_german_2.txt
146
+ - test/emails/embedded_email_german_3.txt
147
+ - test/emails/embedded_email_german_4.txt
148
+ - test/emails/embedded_email_german_5.txt
149
+ - test/emails/embedded_email_german_6.txt
150
+ - test/emails/embedded_email_italian.txt
151
+ - test/emails/embedded_email_norwegian.txt
152
+ - test/emails/embedded_email_polish_1.txt
153
+ - test/emails/embedded_email_polish_2.txt
154
+ - test/emails/embedded_email_portuguese.txt
155
+ - test/emails/embedded_email_quote_text.txt
156
+ - test/emails/embedded_email_russian_1.txt
157
+ - test/emails/embedded_email_russian_2.txt
158
+ - test/emails/embedded_email_spanish_1.txt
159
+ - test/emails/embedded_email_spanish_2.txt
160
+ - test/emails/embedded_email_swedish.txt
161
+ - test/emails/embedded_email_ukrainian.txt
162
+ - test/emails/forwarded_apple.txt
163
+ - test/emails/forwarded_gmail.txt
164
+ - test/emails/forwarded_message.txt
165
+ - test/emails/normalize_line_endings.txt
166
+ - test/emails/quote_and_text.txt
167
+ - test/emails/quote_only.txt
168
+ - test/emails/retains_spaces_and_formatting.txt
169
+ - test/emails/signatures.txt
170
+ - test/emails/spam_1.txt
171
+ - test/emails/spam_2.txt
172
+ - test/emails/strip.txt
173
+ - test/emails/text_only.txt
174
+ - test/emails/usenet.txt
175
+ - test/embedded/email_headers_1.txt
176
+ - test/embedded/email_headers_2.txt
177
+ - test/embedded/email_headers_3.txt
178
+ - test/embedded/email_headers_4.txt
179
+ - test/embedded/embedded_email_10.txt
180
+ - test/embedded/embedded_email_german_3.txt
181
+ - test/embedded/embedded_email_spanish_2.txt
182
+ - test/embedded/forwarded_apple.txt
183
+ - test/embedded/forwarded_gmail.txt
184
+ - test/embedded/forwarded_message.txt
185
+ - test/matchers/does_not_contain_embedded_email.txt
186
+ - test/test_email_matcher.rb
187
+ - test/test_email_reply_trimmer.rb
188
+ - test/trimmed/delimiters.txt
189
+ - test/trimmed/dual_embedded.txt
190
+ - test/trimmed/email_headers_1.txt
191
+ - test/trimmed/email_headers_2.txt
192
+ - test/trimmed/email_headers_3.txt
193
+ - test/trimmed/email_headers_4.txt
194
+ - test/trimmed/email_headers_5.txt
195
+ - test/trimmed/embedded_ception.txt
196
+ - test/trimmed/embedded_email_1.txt
197
+ - test/trimmed/embedded_email_10.txt
198
+ - test/trimmed/embedded_email_11.txt
199
+ - test/trimmed/embedded_email_12.txt
200
+ - test/trimmed/embedded_email_13.txt
201
+ - test/trimmed/embedded_email_14.txt
202
+ - test/trimmed/embedded_email_15.txt
203
+ - test/trimmed/embedded_email_16.txt
204
+ - test/trimmed/embedded_email_17.txt
205
+ - test/trimmed/embedded_email_18.txt
206
+ - test/trimmed/embedded_email_19.txt
207
+ - test/trimmed/embedded_email_2.txt
208
+ - test/trimmed/embedded_email_3.txt
209
+ - test/trimmed/embedded_email_4.txt
210
+ - test/trimmed/embedded_email_5.txt
211
+ - test/trimmed/embedded_email_6.txt
212
+ - test/trimmed/embedded_email_7.txt
213
+ - test/trimmed/embedded_email_8.txt
214
+ - test/trimmed/embedded_email_9.txt
215
+ - test/trimmed/embedded_email_chinese.txt
216
+ - test/trimmed/embedded_email_dutch_1.txt
217
+ - test/trimmed/embedded_email_dutch_2.txt
218
+ - test/trimmed/embedded_email_french_1.txt
219
+ - test/trimmed/embedded_email_french_2.txt
220
+ - test/trimmed/embedded_email_german_1.txt
221
+ - test/trimmed/embedded_email_german_2.txt
222
+ - test/trimmed/embedded_email_german_3.txt
223
+ - test/trimmed/embedded_email_german_4.txt
224
+ - test/trimmed/embedded_email_german_5.txt
225
+ - test/trimmed/embedded_email_german_6.txt
226
+ - test/trimmed/embedded_email_italian.txt
227
+ - test/trimmed/embedded_email_norwegian.txt
228
+ - test/trimmed/embedded_email_polish_1.txt
229
+ - test/trimmed/embedded_email_polish_2.txt
230
+ - test/trimmed/embedded_email_portuguese.txt
231
+ - test/trimmed/embedded_email_quote_text.txt
232
+ - test/trimmed/embedded_email_russian_1.txt
233
+ - test/trimmed/embedded_email_russian_2.txt
234
+ - test/trimmed/embedded_email_spanish_1.txt
235
+ - test/trimmed/embedded_email_spanish_2.txt
236
+ - test/trimmed/embedded_email_swedish.txt
237
+ - test/trimmed/embedded_email_ukrainian.txt
238
+ - test/trimmed/forwarded_apple.txt
239
+ - test/trimmed/forwarded_gmail.txt
240
+ - test/trimmed/forwarded_message.txt
241
+ - test/trimmed/normalize_line_endings.txt
242
+ - test/trimmed/quote_and_text.txt
243
+ - test/trimmed/quote_only.txt
244
+ - test/trimmed/retains_spaces_and_formatting.txt
245
+ - test/trimmed/signatures.txt
246
+ - test/trimmed/spam_1.txt
247
+ - test/trimmed/spam_2.txt
248
+ - test/trimmed/strip.txt
249
+ - test/trimmed/text_only.txt
250
+ - test/trimmed/usenet.txt
251
+ homepage: https://github.com/davidrunger/runger_email_reply_trimmer
252
+ licenses:
253
+ - MIT
254
+ metadata:
255
+ rubygems_mfa_required: 'true'
256
+ post_install_message:
257
+ rdoc_options: []
258
+ require_paths:
259
+ - lib
260
+ required_ruby_version: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ required_rubygems_version: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - ">="
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
270
+ requirements: []
271
+ rubygems_version: 3.4.12
272
+ signing_key:
273
+ specification_version: 4
274
+ summary: Library to trim replies from plain text email.
275
+ test_files: []