dwc_agent 3.1.4.0 → 3.2.0.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/lib/dwc_agent/cleaner.rb +2 -2
- data/lib/dwc_agent/constants.rb +6 -2
- data/lib/dwc_agent/utility.rb +4 -0
- data/lib/dwc_agent/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 817c66f4671d6f4b7adf698f743e2bd9f3af0b8c0acdcaa011a0a7aaa4e26b81
|
4
|
+
data.tar.gz: 64e55fb97847322db8b35d974c5f1643887bf0fdc186f6befeba464c5d600fd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa52bf9395a8df4678ec1a5cbf3dc3e523daa366eebb89f2e63918d94fbbe784c648a5a0f7906a76b6c5778752a98a74bfe61b6831c5157fe7aa74dd885b116a
|
7
|
+
data.tar.gz: f285c2eabd308dba87a03d7a92487d55e3b224f9dfbad1c37d9e43fff9ae2457dd16015bc47805e18c3a69c794e8a29b64ee6d8474321c94de3952bd96959937
|
data/lib/dwc_agent/cleaner.rb
CHANGED
@@ -16,7 +16,7 @@ module DwcAgent
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def default
|
19
|
-
|
19
|
+
DwcAgent.default
|
20
20
|
end
|
21
21
|
|
22
22
|
# Cleans the passed-in namae object from the parse method and
|
@@ -92,7 +92,7 @@ module DwcAgent
|
|
92
92
|
matched = /^(?<family>[A-Za-z]{3,})\s+(?<given>([A-Z]\.\s?){1,})$/.match(parsed_namae.family)
|
93
93
|
parsed_namae.family = matched[:family]
|
94
94
|
parsed_namae.given = matched[:given]
|
95
|
-
|
95
|
+
end
|
96
96
|
|
97
97
|
if parsed_namae.given &&
|
98
98
|
(parsed_namae.given == parsed_namae.given.upcase ||
|
data/lib/dwc_agent/constants.rb
CHANGED
@@ -4,7 +4,11 @@ module DwcAgent
|
|
4
4
|
["'-]{2,}|
|
5
5
|
\-\.\s|
|
6
6
|
[,;]?\s*(?i:1st|2nd|3rd|[4-9]th)|
|
7
|
-
|
7
|
+
[,]?\s*?\d+\.\d+|
|
8
|
+
[,]?\s*\([#NnOo\.\s0-9\-]*[0-9a-z]+\)\s*\z|
|
9
|
+
[,]?\s+\#[0-9a-z]+\z|
|
10
|
+
[,]?\s*\#*\s+\d+\-(?i:[A-Z]|\d)+\-?\d*[A-Za-z]*\z|
|
11
|
+
\d*[A-Za-z]*\d*-\d*\z|
|
8
12
|
\b\d+\(?(?i:[[:alpha:]])\)?\b|
|
9
13
|
\b[,;]?\s*(?:et\.?\s+al|&\s+al)\.?|
|
10
14
|
\b[,;]?\s*(?i:etal)\.?|
|
@@ -90,6 +94,7 @@ module DwcAgent
|
|
90
94
|
(?i:field\s+museum\s+of\s+natural\s+history)|
|
91
95
|
(?i:american\s+museum\s+of\s+natural\s+history)|
|
92
96
|
(?i:The\s+Paleontological\s+Research\s+Institution)|
|
97
|
+
(?i:literature?)|
|
93
98
|
(?i:museums?\s+victoria)|
|
94
99
|
\b\s*(?i:united\s+states|russia)\s*\b|
|
95
100
|
(?i:revised|photograph|fruits\s+only)|
|
@@ -122,7 +127,6 @@ module DwcAgent
|
|
122
127
|
[\(\{][A-Za-z]{1,3}$|
|
123
128
|
\b(?i:leg)[.:]?(\s|\z)|
|
124
129
|
(?:[Dd](ed|on))[\.:]|
|
125
|
-
\d*[A-Za-z]*\d*-\d*\z|
|
126
130
|
\s+[A-Z]*\d+\z|
|
127
131
|
\s+\d+[A-Za-z]+\z|
|
128
132
|
^[-,.\s;*\d]+\s?|
|
data/lib/dwc_agent/utility.rb
CHANGED
data/lib/dwc_agent/version.rb
CHANGED
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.
|
4
|
+
version: 3.2.0.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: 2024-
|
11
|
+
date: 2024-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: namae
|