dwc_agent 3.0.13.0 → 3.0.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e365cba56cf5d0ab601d11f42eff4aeafb476e12b8fbe889b4e7b77e195494ac
4
- data.tar.gz: 5ab17f899addf176a807577104c32a9de6f28ba251ae1dc764d901bacae882bc
3
+ metadata.gz: 246ee0598d411b8a76f07de379897e70884a1ddfc4ac0f3abc10392c74948d29
4
+ data.tar.gz: '019bf3480a534e5b3e7142e3609a04f0b398f29d017438398ad4f28d0fd83fc3'
5
5
  SHA512:
6
- metadata.gz: 92ae3a0a10b8eb1035046debc05cf203ca4b9cebde7d8a2d11fa554e54ff66b177a58773a13496188807c08e5174a8b43db1f8b7f3bf01dcbd72e0f5713d3c30
7
- data.tar.gz: b5d1216dd092fe3d08e38047e5d0e1045c01d04dc61d40a90cfcba4ac3bdc3e1872ea7ad54b442de721161c9f5bed8619f6c6a7404e2389f38210ea8fbba2904
6
+ metadata.gz: 050ce33b7cd6e4ef60cc6cb5deff8dfd5375bb0c3f677eabde9973f7585bc8ca5280c98d439a2a11d0ba637a9b18dbe8c8a7910ae0f968edd17c5ba2831c2bf1
7
+ data.tar.gz: f03d1120841d90775cdc2b13ea3c83961f4e78daea99ec9dccbc808fa56334e2c26089ddff77925673a1cc86a35530918ce69c4c135230229393ccef241f2460
@@ -1,7 +1,5 @@
1
1
  module DwcAgent
2
2
  STRIP_OUT = %r{
3
- ^[\[{(]|
4
- [\]})]\??$|
5
3
  (?i:acc\s?\#)|
6
4
  [,;]?\s*(?i:1st|2nd|3rd|[4-9]th)|
7
5
  \s*?\d+\.\d+|
@@ -14,7 +12,7 @@ module DwcAgent
14
12
  \b[,;]?\s*(?i:etc)\.?|
15
13
  \b[,;]?\s*(?i:exp)\.?\s*(\b|\z)|
16
14
  \b[,;]?\s*(?i:aboard)[^$]+|
17
- \b[,;]?\s*(?i:on)\b|
15
+ \b[,;]?\s+(?i:on)\b|
18
16
  \b[,;]?\s*(?i:unkn?own)\b|
19
17
  \b[,;]?\s*(?i:n/a)\b|
20
18
  \b[,;]?\s*(?i:ann?onymous)\b|
@@ -113,8 +111,9 @@ module DwcAgent
113
111
  (?i:annot)\.?\s*?\b|
114
112
  \s+(?i:stet)\s*!?\s*\z|
115
113
  \s+(?i:prep)\.?\s*\z|
116
- (\(|\{|\[).{1,}(\)|\]|\})|
117
- (\(|\[|\{).{1,}\z|
114
+ ([({].*?[)}])|
115
+ \s+\[([[:word:]]|[[:space:]]|[-\?\.]){10,}\]|
116
+ [\(\{][A-Za-z]{1,3}$|
118
117
  \b(?i:leg)[\.:]?\s*\b|
119
118
  (?:[Dd](ed|on))[\.:]|
120
119
  \d*[A-Za-z]*\d*-\d*\z|
@@ -128,7 +127,6 @@ module DwcAgent
128
127
  \:?\s*(?i:exch)(\b|\z)|
129
128
  \s+de\s*$|
130
129
  \.{2,}$|
131
- \[|\]|
132
130
  [^[:alnum:][:blank:][:punct:][∣´|ǀ∣|│`~$^+|<>]] # Removes emojis from string
133
131
  }x
134
132
 
@@ -164,7 +162,8 @@ module DwcAgent
164
162
  }x
165
163
 
166
164
  POST_STRIP_TIDY = %r{
167
- ^\s*[&,;.]\s*
165
+ ^\s*[&,;.]\s*|
166
+ [\[\]]
168
167
  }x
169
168
 
170
169
  CHAR_SUBS = {
@@ -207,7 +206,8 @@ module DwcAgent
207
206
  '-jr' => ' Jr.',
208
207
  '-Jr' => ' Jr.',
209
208
  'Dr.' => 'Dr. ',
210
- 'prof.' => 'Prof. '
209
+ 'prof.' => 'Prof. ',
210
+ ' .;' => '. ;'
211
211
  }
212
212
 
213
213
  SEPARATORS = {
@@ -4,7 +4,7 @@ module DwcAgent
4
4
 
5
5
  MAJOR = 3
6
6
  MINOR = 0
7
- PATCH = 13
7
+ PATCH = 15
8
8
  BUILD = 0
9
9
 
10
10
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwc_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.13.0
4
+ version: 3.0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-20 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: namae