dwc_agent 1.5.1.6 → 2.0.0.1

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: c3dca2a7933504e381819bb5ea864515f6216a51c40af56df22b5aa9aa2b03b4
4
- data.tar.gz: 9f96d1143f9a012ba5586e2e44f2ba3e89c5329ddb52600a82ace80ab729ddb1
3
+ metadata.gz: 6cebe60af14ccb9f16b88e59a7ae88e0c76dfedb22ec855dbb2a1c332fa2059b
4
+ data.tar.gz: e08bfeab07254818dc445f114919ec6dfeb526f10929f8c9cf59b76a8719ec39
5
5
  SHA512:
6
- metadata.gz: 03b70b9826fc781b1684f12d6cba52a961934c719dbfeaa17a030e72c2330e697579e9880ee009306841dbb68e3dd5b4972f4f1c66300a935e2faf8bf21651f2
7
- data.tar.gz: 1f61eea5f4d0ef946110a82472cedf22a7f9e6ba2ae4a11abbd9fc0f04c687935596ce84930685258b0e2700c6309475606bc0967f503975465bffec7d76095b
6
+ metadata.gz: b578ff67df343943bcbced24efafe62cb3e6e28e47c7e8e7a3095b9d19d19609bd7d6c054caf52b6bedc605949d5791204a398a65aeadbfa4d142a291ca127c6
7
+ data.tar.gz: 419f6f4293a05539e9ce23553d279e4f2b8f85c3bfb7bb8d2f3c46d2dbcbad13bb7c806c70494182a9d40e2be161b94924a92da8ad66f640fe03fa4113b9e61d
@@ -92,7 +92,7 @@ module DwcAgent
92
92
  FNA|DAO|HUH|FDNMB|MNHN|PNI|USNM|ZMUC|CSIRO|ACAD|USGS|NAWQA|
93
93
  (?i:para|topo|syn|holo|allo|choro|eco|iso|isoepi|isopara|karyo|morpho|neo|mero|pala|paralecto|paraneo|photo|schizo)?(?i:types?\:?)|
94
94
  AFSC\/POLISH\s+SORTING\s+CTR\.?|
95
- (?i:university|museum|exhibits?)|
95
+ (?i:university|mus(e|é)um|exhibits?)|
96
96
  (?i:uqam)|
97
97
  (?i:sem\s+(colec?tor|data))|
98
98
  (?i:no\s+coll\.?(ector)?)|
@@ -118,6 +118,7 @@ module DwcAgent
118
118
  ^[-,.\s;*\d]+\s?|
119
119
  \s*?-{2,}\s*?|
120
120
  ^(?i:exc?p?)[:.]\s*|
121
+ \:?\s*(?i:exch)(\b|\z)|
121
122
  \s+de\s*$|
122
123
  \.{2,}$
123
124
  }x
@@ -195,9 +196,10 @@ module DwcAgent
195
196
  "^(\\S{4,},\\s+(?:\\S\\.\\s*){1,})\\s+(\\S{4,},\\s+(?:\\S\.\\s*){1,})$" => "\\1 | \\2",
196
197
  "(\\S{1}\\.)([[:alpha:]]{2,})" => "\\1 \\2",
197
198
  "(\\w*),?\\s+(.*)\\s+(van|von)$" => "\\3 \\1, \\2",
198
- "^([A-Z.\\s]+)\\s+(?:and|&|et|e)\\s+([A-Z.\\s]+)\\s+(.*)$" => "\\1 \\3 | \\2 \\3",
199
+ "^([A-Z.\\s]+)\\s+(?:and|&|et|e)\\s+([A-Z.\\s]+)\\s+(\\w{2,})(.*)" => "\\1 \\3 | \\2 \\3 | \\4",
199
200
  "^([A-Z]\\w{2,}),\\s*?([A-Z]\\w{2,})\\s*?[,&]\\s*?([A-Z]\\w{2,})$" => "\\1 | \\2 | \\3",
200
- "^([A-Z]\\w{2,}),\\s*?([A-Z]\\w{2,}),\\s*?([A-Z]\\w{2,})\\s*?[,&]\\s*?([A-Z]\\w{3,})$" => "\\1 | \\2 | \\3 | \\4"
201
+ "^([A-Z]\\w{2,}),\\s*?([A-Z]\\w{2,}),\\s*?([A-Z]\\w{2,})\\s*?[,&]\\s*?([A-Z]\\w{3,})$" => "\\1 | \\2 | \\3 | \\4",
202
+ "^([A-Z]\\w{2,}),\\s*?([A-Z]\\w{2,}),\\s*?([A-Z]\\w{2,}),\\s*?([A-Z]\\w{2,})\\s*?[,&]\\s*?([A-Z]\\w{3,})$" => "\\1 | \\2 | \\3 | \\4 | \\5"
201
203
  }
202
204
 
203
205
  BLACKLIST = %r{
@@ -230,6 +232,7 @@ module DwcAgent
230
232
  (?i:o?\.?m\.?n\.?r\.?)|
231
233
  (?i:measurement)|
232
234
  (?i:ent(o|y)mology)|
235
+ (?i:malacology)|
233
236
  (?i:geographic)|
234
237
  (?i:mus(eum|ée)|universit(y|é|e|at)|college|institute?|acad(e|é)m|school|écol(e|iers?)|laboratoi?r|projec?t|polytech|dep(t|art?ment)|research|clinic|hospital|cientifica|sanctuary|safari)|
235
238
  (?i:univ\.)|
@@ -298,11 +301,19 @@ module DwcAgent
298
301
  "dissection",
299
302
  "entered",
300
303
  "erased",
304
+ "expd",
305
+ "expdn",
306
+ "hist",
307
+ "historical",
308
+ "historie",
301
309
  "indecipherable",
310
+ "inst",
302
311
  "nomenclatural",
303
312
  "orig",
313
+ "qld",
304
314
  "registration",
305
315
  "science",
316
+ "study",
306
317
  "wg",
307
318
  "wm",
308
319
  "wn",
@@ -1,10 +1,10 @@
1
1
  module DwcAgent
2
2
  class Version
3
3
 
4
- MAJOR = 1
5
- MINOR = 5
6
- PATCH = 1
7
- BUILD = 6
4
+ MAJOR = 2
5
+ MINOR = 0
6
+ PATCH = 0
7
+ BUILD = 1
8
8
 
9
9
  def self.version
10
10
  [MAJOR, MINOR, PATCH, BUILD].compact.join('.').freeze
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: 1.5.1.6
4
+ version: 2.0.0.1
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: 2021-01-11 00:00:00.000000000 Z
11
+ date: 2021-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: namae
@@ -110,7 +110,7 @@ require_paths:
110
110
  - lib
111
111
  required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - "~>"
113
+ - - ">="
114
114
  - !ruby/object:Gem::Version
115
115
  version: '2.7'
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.2.4
122
+ rubygems_version: 3.2.15
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Parse Darwin Core agent terms such as recordedBy and identifiedBy