icu_name 1.2.6 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b8bbf1c4c849f51c6ab2f47313c82d0d13152994
4
- data.tar.gz: 9b4fe1734f14058592026aeed2674a1342ff35da
2
+ SHA256:
3
+ metadata.gz: 277ac5eb79893e74c62db5776c541b89cb676f13136ed71b2862d9850555fcc4
4
+ data.tar.gz: 00fe1bb715cc7e5e4065e5dc94ec37dc9b229e17623c8105b960b1619a3a665a
5
5
  SHA512:
6
- metadata.gz: 69cbf7083eb2311fb91c6bdb3f46c964d5308e76f1dcfc481623a51661ab298f1ffeb3da949367ff452cbd712600addeaff11d2e940f0e5120c8949a8bb61318
7
- data.tar.gz: acfdb0fc58b6ed2eb4d9f183428e2468e53751d57f36c68cbff666c4a511544d51456838c60ed7d5bed4995795029ed2d5d7ca86489e60ca50009abc03305762
6
+ metadata.gz: fe72b9e1dd173c20576ea663ee78549633532f0e1723335bc3d253d7d8a6181dc37e44702a8e263e84ae4c4c2076692975c8bdf970c2c4c46a4bc1743e019c6a
7
+ data.tar.gz: b053e078e0b9160c6af044ad42c35baf20d3857966cec89f71d05c52bda398ad26ed0334c01b0be104ff0e8fa3f657237432e84c3e9f206fc049ead37a22f302
@@ -1,4 +1,5 @@
1
1
  ---
2
+ - [Duro, Duero]
2
3
  - [Ffrench, French]
3
4
  - [Murchadha, Murphy]
4
5
  - [Quinn, Benjamin, !ruby/regexp /^(Debbie|Deborah)$/]
data/lib/icu_name/name.rb CHANGED
@@ -279,7 +279,13 @@ module ICU
279
279
  return if @@alts[type] && !force
280
280
  unless data
281
281
  file = File.expand_path(File.dirname(__FILE__) + "/../../config/#{type}_alternatives.yaml")
282
- data = File.open(file) { |fd| YAML.load(fd) }
282
+ if RUBY_VERSION >= "3"
283
+ data = File.open(file) { |fd| YAML.load(fd, permitted_classes: [Regexp]) }
284
+ else
285
+ data = File.open(file) { |fd| YAML.load(fd) }
286
+ end
287
+
288
+
283
289
  end
284
290
  @@cmps[type] ||= 0
285
291
  @@alts[type] = Hash.new
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ICU
4
4
  class Name
5
- VERSION = "1.2.6"
5
+ VERSION = "1.3.0"
6
6
  end
7
7
  end
data/spec/name_spec.rb CHANGED
@@ -7,7 +7,12 @@ module ICU
7
7
  Name.reset_alternatives if reset
8
8
  types.each do |type|
9
9
  file = File.expand_path(File.dirname(__FILE__) + "/../config/test_#{type}_alts.yaml")
10
- data = File.open(file) { |fd| YAML.load(fd) }
10
+ if RUBY_VERSION >= "3"
11
+ data = File.open(file) { |fd| YAML.load(fd, permitted_classes: [Regexp]) }
12
+ else
13
+ data = File.open(file) { |fd| YAML.load(fd) }
14
+ end
15
+
11
16
  Name.load_alternatives(type, data)
12
17
  end
13
18
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icu_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
+ - David Murray
7
8
  - Mark Orr
8
- autorequire:
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-03-02 00:00:00.000000000 Z
12
+ date: 2023-01-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -68,7 +69,7 @@ dependencies:
68
69
  version: '4.2'
69
70
  description: Canonicalises and matches person names with Latin1 characters and first
70
71
  and last names
71
- email: mark.j.l.orr@googlemail.com
72
+ email: ratings@icu.ie
72
73
  executables: []
73
74
  extensions: []
74
75
  extra_rdoc_files:
@@ -92,7 +93,7 @@ homepage: http://rubygems.org/gems/icu_name
92
93
  licenses:
93
94
  - MIT
94
95
  metadata: {}
95
- post_install_message:
96
+ post_install_message:
96
97
  rdoc_options: []
97
98
  require_paths:
98
99
  - lib
@@ -107,9 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  - !ruby/object:Gem::Version
108
109
  version: 1.3.6
109
110
  requirements: []
110
- rubyforge_project: icu_name
111
- rubygems_version: 2.6.10
112
- signing_key:
111
+ rubygems_version: 3.3.7
112
+ signing_key:
113
113
  specification_version: 4
114
114
  summary: Canonicalises and matches person names
115
115
  test_files: []