dwc_agent 3.1.5.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 +1 -0
- 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
@@ -94,6 +94,7 @@ module DwcAgent
|
|
94
94
|
(?i:field\s+museum\s+of\s+natural\s+history)|
|
95
95
|
(?i:american\s+museum\s+of\s+natural\s+history)|
|
96
96
|
(?i:The\s+Paleontological\s+Research\s+Institution)|
|
97
|
+
(?i:literature?)|
|
97
98
|
(?i:museums?\s+victoria)|
|
98
99
|
\b\s*(?i:united\s+states|russia)\s*\b|
|
99
100
|
(?i:revised|photograph|fruits\s+only)|
|
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
|