runger_email_reply_trimmer 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +4 -2
- data/Gemfile.lock +48 -33
- data/bin/release +2 -2
- data/bin/rubocop +27 -0
- data/lib/runger_email_reply_trimmer/email_header_matcher.rb +2 -2
- data/lib/runger_email_reply_trimmer/version.rb +1 -1
- data/personal/installer_executables/ruby.sh +3 -0
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2742b02c24184bd347830c2f3921efe6708c6477233fe415f87c271504fc007f
|
|
4
|
+
data.tar.gz: 99c8b9f24bcd69a4c6a57f95a61436204fbd3e511f40349c19243ac7350e8c40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53c85b000ddda6c4b289f764f1c8002f9c717fd7d6139df4afeef921bc16e559c78322db145cb0f69dcecc81e8951e6b76f3bb0edf6c0df4b06fd386f6f7bf0c
|
|
7
|
+
data.tar.gz: 21a1cc3fad038e21cebc45af4e489452f6ba2e89e12721d33946f4da53fbdc9642de7e0447490b9029b49b78c8dbc1a9e23e4b68c1e6f59ea0927f1846922f14
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
ruby file: '.ruby-version'
|
|
4
|
+
|
|
3
5
|
source 'https://rubygems.org'
|
|
4
6
|
|
|
5
7
|
# Specify your gem's dependencies in runger_email_reply_trimmer.gemspec
|
|
6
8
|
gemspec
|
|
7
9
|
|
|
8
10
|
group :development do
|
|
9
|
-
gem '
|
|
11
|
+
gem 'runger_release_assistant', require: false
|
|
10
12
|
end
|
|
11
13
|
|
|
12
14
|
group :development, :test do
|
|
13
15
|
gem 'minitest', '~> 5', require: false
|
|
14
|
-
gem 'rake', '~>
|
|
16
|
+
gem 'rake', '~> 13', require: false
|
|
15
17
|
gem 'rubocop', require: false
|
|
16
18
|
gem 'runger_style', require: false
|
|
17
19
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,60 +1,72 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: https://github.com/davidrunger/release_assistant
|
|
3
|
-
revision: a278e05c53c700b8946e5fed16c7286eacb963e3
|
|
4
|
-
specs:
|
|
5
|
-
release_assistant (0.3.3.alpha)
|
|
6
|
-
activesupport (>= 6, < 8)
|
|
7
|
-
colorize (~> 0.8)
|
|
8
|
-
memoist (~> 0.16)
|
|
9
|
-
slop (~> 4.8)
|
|
10
|
-
|
|
11
1
|
PATH
|
|
12
2
|
remote: .
|
|
13
3
|
specs:
|
|
14
|
-
runger_email_reply_trimmer (0.
|
|
4
|
+
runger_email_reply_trimmer (0.3.0)
|
|
15
5
|
|
|
16
6
|
GEM
|
|
17
7
|
remote: https://rubygems.org/
|
|
18
8
|
specs:
|
|
19
|
-
activesupport (7.
|
|
9
|
+
activesupport (7.1.3.4)
|
|
10
|
+
base64
|
|
11
|
+
bigdecimal
|
|
20
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
+
connection_pool (>= 2.2.5)
|
|
14
|
+
drb
|
|
21
15
|
i18n (>= 1.6, < 2)
|
|
22
16
|
minitest (>= 5.1)
|
|
17
|
+
mutex_m
|
|
23
18
|
tzinfo (~> 2.0)
|
|
24
19
|
ast (2.4.2)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
base64 (0.2.0)
|
|
21
|
+
bigdecimal (3.1.8)
|
|
22
|
+
concurrent-ruby (1.3.3)
|
|
23
|
+
connection_pool (2.4.1)
|
|
24
|
+
drb (2.2.1)
|
|
25
|
+
i18n (1.14.5)
|
|
28
26
|
concurrent-ruby (~> 1.0)
|
|
29
|
-
json (2.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
json (2.7.2)
|
|
28
|
+
language_server-protocol (3.17.0.3)
|
|
29
|
+
memo_wise (1.9.0)
|
|
30
|
+
minitest (5.23.1)
|
|
31
|
+
mutex_m (0.2.0)
|
|
32
|
+
parallel (1.25.1)
|
|
33
|
+
parser (3.3.3.0)
|
|
34
34
|
ast (~> 2.4.1)
|
|
35
|
+
racc
|
|
36
|
+
prism (0.30.0)
|
|
37
|
+
racc (1.8.0)
|
|
35
38
|
rainbow (3.1.1)
|
|
36
|
-
rake (
|
|
37
|
-
regexp_parser (2.
|
|
38
|
-
rexml (3.
|
|
39
|
-
|
|
39
|
+
rake (13.2.1)
|
|
40
|
+
regexp_parser (2.9.2)
|
|
41
|
+
rexml (3.3.0)
|
|
42
|
+
strscan
|
|
43
|
+
rubocop (1.64.1)
|
|
40
44
|
json (~> 2.3)
|
|
45
|
+
language_server-protocol (>= 3.17.0)
|
|
41
46
|
parallel (~> 1.10)
|
|
42
|
-
parser (>= 3.
|
|
47
|
+
parser (>= 3.3.0.2)
|
|
43
48
|
rainbow (>= 2.2.2, < 4.0)
|
|
44
49
|
regexp_parser (>= 1.8, < 3.0)
|
|
45
50
|
rexml (>= 3.2.5, < 4.0)
|
|
46
|
-
rubocop-ast (>= 1.
|
|
51
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
47
52
|
ruby-progressbar (~> 1.7)
|
|
48
53
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
49
|
-
rubocop-ast (1.
|
|
50
|
-
parser (>= 3.
|
|
54
|
+
rubocop-ast (1.31.3)
|
|
55
|
+
parser (>= 3.3.1.0)
|
|
51
56
|
ruby-progressbar (1.13.0)
|
|
52
|
-
|
|
57
|
+
runger_release_assistant (0.8.0)
|
|
58
|
+
activesupport (>= 6, < 8)
|
|
59
|
+
memo_wise (>= 1.7, < 2)
|
|
60
|
+
rainbow (>= 3.0, < 4)
|
|
61
|
+
slop (~> 4.8)
|
|
62
|
+
runger_style (2.6.0)
|
|
63
|
+
prism (>= 0.24.0)
|
|
53
64
|
rubocop (>= 1.38.0, < 2)
|
|
54
65
|
slop (4.10.1)
|
|
66
|
+
strscan (3.1.0)
|
|
55
67
|
tzinfo (2.0.6)
|
|
56
68
|
concurrent-ruby (~> 1.0)
|
|
57
|
-
unicode-display_width (2.
|
|
69
|
+
unicode-display_width (2.5.0)
|
|
58
70
|
|
|
59
71
|
PLATFORMS
|
|
60
72
|
x86_64-darwin-20
|
|
@@ -62,11 +74,14 @@ PLATFORMS
|
|
|
62
74
|
|
|
63
75
|
DEPENDENCIES
|
|
64
76
|
minitest (~> 5)
|
|
65
|
-
rake (~>
|
|
66
|
-
release_assistant!
|
|
77
|
+
rake (~> 13)
|
|
67
78
|
rubocop
|
|
68
79
|
runger_email_reply_trimmer!
|
|
80
|
+
runger_release_assistant
|
|
69
81
|
runger_style
|
|
70
82
|
|
|
83
|
+
RUBY VERSION
|
|
84
|
+
ruby 3.3.3p89
|
|
85
|
+
|
|
71
86
|
BUNDLED WITH
|
|
72
|
-
2.
|
|
87
|
+
2.5.11
|
data/bin/release
CHANGED
|
@@ -16,8 +16,8 @@ if File.file?(bundle_binstub)
|
|
|
16
16
|
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
|
|
17
17
|
load(bundle_binstub)
|
|
18
18
|
else
|
|
19
|
-
abort(
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.
|
|
19
|
+
abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
data/bin/rubocop
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'rubocop' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
|
12
|
+
|
|
13
|
+
bundle_binstub = File.expand_path('bundle', __dir__)
|
|
14
|
+
|
|
15
|
+
if File.file?(bundle_binstub)
|
|
16
|
+
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
|
|
17
|
+
load(bundle_binstub)
|
|
18
|
+
else
|
|
19
|
+
abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
require 'rubygems'
|
|
25
|
+
require 'bundler/setup'
|
|
26
|
+
|
|
27
|
+
load Gem.bin_path('rubocop', 'rubocop')
|
|
@@ -30,7 +30,7 @@ module EmailHeaderMatcher
|
|
|
30
30
|
|
|
31
31
|
EMAIL_HEADERS_WITH_DATE_REGEXES =
|
|
32
32
|
EMAIL_HEADERS_WITH_DATE_MARKERS.map do |header|
|
|
33
|
-
/^[[:blank:]*]*(?:#{header.join(
|
|
33
|
+
/^[[:blank:]*]*(?:#{header.join('|')})[[:blank:]*]*:.*\d+/
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
EMAIL_HEADERS_WITH_TEXT_MARKERS = [
|
|
@@ -58,7 +58,7 @@ module EmailHeaderMatcher
|
|
|
58
58
|
|
|
59
59
|
EMAIL_HEADERS_WITH_TEXT_REGEXES =
|
|
60
60
|
EMAIL_HEADERS_WITH_TEXT_MARKERS.map do |header|
|
|
61
|
-
/^[[:blank:]*]*(?:#{header.join(
|
|
61
|
+
/^[[:blank:]*]*(?:#{header.join('|')})[[:blank:]*]*:.*[[:word:]]+/i
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
EMAIL_HEADER_REGEXES = [
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runger_email_reply_trimmer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Runger
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2024-06-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: RungerEmailReplyTrimmer is a library to trim replies from plain text
|
|
15
15
|
email.
|
|
@@ -27,6 +27,7 @@ files:
|
|
|
27
27
|
- README.md
|
|
28
28
|
- Rakefile
|
|
29
29
|
- bin/release
|
|
30
|
+
- bin/rubocop
|
|
30
31
|
- lib/runger_email_reply_trimmer.rb
|
|
31
32
|
- lib/runger_email_reply_trimmer/delimiter_matcher.rb
|
|
32
33
|
- lib/runger_email_reply_trimmer/email_header_matcher.rb
|
|
@@ -35,6 +36,7 @@ files:
|
|
|
35
36
|
- lib/runger_email_reply_trimmer/quote_matcher.rb
|
|
36
37
|
- lib/runger_email_reply_trimmer/signature_matcher.rb
|
|
37
38
|
- lib/runger_email_reply_trimmer/version.rb
|
|
39
|
+
- personal/installer_executables/ruby.sh
|
|
38
40
|
- runger_email_reply_trimmer.gemspec
|
|
39
41
|
- test/before/email_headers_1.txt
|
|
40
42
|
- test/before/email_headers_2.txt
|
|
@@ -268,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
268
270
|
- !ruby/object:Gem::Version
|
|
269
271
|
version: '0'
|
|
270
272
|
requirements: []
|
|
271
|
-
rubygems_version: 3.
|
|
273
|
+
rubygems_version: 3.5.11
|
|
272
274
|
signing_key:
|
|
273
275
|
specification_version: 4
|
|
274
276
|
summary: Library to trim replies from plain text email.
|