dwc_agent 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 70f9fec903afada2550d3f18bfc6580cdf25f33d
4
- data.tar.gz: 49603abaf0ce0329271b1d851287325a2b19c85d
3
+ metadata.gz: e7ece30d25ccb21a421824a52ce55c3fb42fd29d
4
+ data.tar.gz: a56d63a7547ce62384cdd9ca1c5fd2529aef8938
5
5
  SHA512:
6
- metadata.gz: 879bd9099f120ea3dccacd9341f522e5b0952385c800673ae25a886c511c7de09813b2fb6e982acc835d2ca024116b022b30cc27c55301913a8f58c855a21cd5
7
- data.tar.gz: b1d76e637c3e129798780b117cc38984e25b5f1f86a388b84e3a0b51e61dad67db936592859aa17945e2f9a6abc994c7b5658f47d6950deb7c1d5abc27fdb234
6
+ metadata.gz: 9f20f52a1afffbef3426e0fc466738c7f9fe83f6d446c586b85dbe272e680b3662fa85ebeb88e75970b0c8b5ed899a3820fd081b329031ac3d7d3aea9acbd0e6
7
+ data.tar.gz: de12edeb219083861b4ecb93e4ba10cecb230831f0904cd48d996ec06b9c8bda0b74496c46594d01acdd15309bf760de9b0f331795591cc0c5af3d4971d19bac
@@ -168,7 +168,4 @@ module DwcAgent
168
168
 
169
169
  TITLE = /\s*\b(sir|lord|count(ess)?|(gen|adm|col|maj|capt|cmdr|lt|sgt|cpl|pvt|prof|dr|md|ph\.?d|rev|docteur|mme|abbé|ptre)\.?|frère|frere|père|pere|professor)(\s+|$)/i
170
170
 
171
- Namae.options[:prefer_comma_as_separator] = true
172
- Namae.options[:separator] = SPLIT_BY
173
- Namae.options[:title] = TITLE
174
171
  end
@@ -19,7 +19,13 @@ module DwcAgent
19
19
  .gsub(COMPLEX_SEPARATORS, '\1 | \2')
20
20
  .gsub(/,\z/, '')
21
21
  .squeeze(' ').strip
22
- Namae.parse(cleaned)
22
+ options = {
23
+ prefer_comma_as_separator: true,
24
+ separator: SPLIT_BY,
25
+ title: TITLE
26
+ }
27
+ namae = Namae::Parser.new(options)
28
+ namae.parse(cleaned)
23
29
  end
24
30
 
25
31
  end
@@ -3,7 +3,7 @@ module DwcAgent
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 5
6
+ PATCH = 6
7
7
  BUILD = nil
8
8
 
9
9
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwc_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse