icu_name 1.3.0 → 1.4.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: 277ac5eb79893e74c62db5776c541b89cb676f13136ed71b2862d9850555fcc4
4
- data.tar.gz: 00fe1bb715cc7e5e4065e5dc94ec37dc9b229e17623c8105b960b1619a3a665a
3
+ metadata.gz: 9cfc334aa17c4e30d4326974eef130e3b2182118832c88a362db179378e07db7
4
+ data.tar.gz: 34d1eb9dee6edf24447bb31f8de8e977cb8591e21b988f936b5b67961c75c786
5
5
  SHA512:
6
- metadata.gz: fe72b9e1dd173c20576ea663ee78549633532f0e1723335bc3d253d7d8a6181dc37e44702a8e263e84ae4c4c2076692975c8bdf970c2c4c46a4bc1743e019c6a
7
- data.tar.gz: b053e078e0b9160c6af044ad42c35baf20d3857966cec89f71d05c52bda398ad26ed0334c01b0be104ff0e8fa3f657237432e84c3e9f206fc049ead37a22f302
6
+ metadata.gz: 365c6786283827aa81068f424c16922129e883d29db12fd5b3591c714863e91ed0984352120f290888b1229fc872513b52efe8d12b6006396a773bf957db05e4
7
+ data.tar.gz: 92988d37e2dbc4696747e07e000baeab0703925a4abd71a8ebf0f0e4eb6f75ca6c02f302cd8ce04ff534203e2029375e5537b38b4029bd0ee2660f79236f1d80
data/lib/icu_name/name.rb CHANGED
@@ -212,6 +212,7 @@ module ICU
212
212
  last.downcase! # case insensitive
213
213
  last.gsub!(/\bmac/, 'mc') # MacDonaugh and McDonaugh
214
214
  last.tr!('-', ' ') # Lowry-O'Reilly and Lowry O'Reilly
215
+ last.tr!("'", '') # O'Donnell and ODonnell
215
216
  end
216
217
  last1 == last2
217
218
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ICU
4
4
  class Name
5
- VERSION = "1.3.0"
5
+ VERSION = "1.4.0"
6
6
  end
7
7
  end
data/spec/name_spec.rb CHANGED
@@ -129,7 +129,8 @@ module ICU
129
129
  expect(@una.match("Una", "O‘Boyle")).to be_truthy
130
130
  expect(@una.match("Una", "O′Boyle")).to be_truthy
131
131
  expect(@una.match("Una", "O‛Boyle")).to be_truthy
132
- expect(@una.match("Una", "O‚Boyle")).to be_falsey
132
+ expect(@una.match("Una", "O‚Boyle")).to be_truthy
133
+ expect(@una.match("Una", "OBoyle")).to be_truthy
133
134
  end
134
135
  end
135
136
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icu_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Murray
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-01-03 00:00:00.000000000 Z
12
+ date: 2023-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler