addressing 2.1.0 → 2.2.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 +4 -4
- data/CHANGELOG.md +45 -0
- data/README.md +223 -112
- data/data/UPSTREAM_VERSION +1 -0
- data/data/address_formats.json +2256 -206
- data/data/countries.json +1282 -0
- data/data/locale.json +222 -0
- data/data/subdivision/BR-AC.json +22 -22
- data/data/subdivision/BR-AL.json +102 -102
- data/data/subdivision/BR-AM.json +62 -62
- data/data/subdivision/BR-AP.json +16 -16
- data/data/subdivision/BR-BA.json +417 -417
- data/data/subdivision/BR-CE.json +184 -184
- data/data/subdivision/BR-DF.json +1 -1
- data/data/subdivision/BR-ES.json +79 -79
- data/data/subdivision/BR-GO.json +246 -246
- data/data/subdivision/BR-MA.json +217 -217
- data/data/subdivision/BR-MG.json +853 -853
- data/data/subdivision/BR-MS.json +78 -78
- data/data/subdivision/BR-MT.json +141 -141
- data/data/subdivision/BR-PA.json +144 -144
- data/data/subdivision/BR-PB.json +223 -223
- data/data/subdivision/BR-PE.json +185 -185
- data/data/subdivision/BR-PI.json +223 -223
- data/data/subdivision/BR-PR.json +400 -400
- data/data/subdivision/BR-RJ.json +93 -93
- data/data/subdivision/BR-RN.json +166 -166
- data/data/subdivision/BR-RO.json +52 -52
- data/data/subdivision/BR-RR.json +15 -15
- data/data/subdivision/BR-RS.json +497 -497
- data/data/subdivision/BR-SC.json +295 -295
- data/data/subdivision/BR-SE.json +75 -75
- data/data/subdivision/BR-SP.json +645 -645
- data/data/subdivision/BR-TO.json +139 -139
- data/data/subdivision/CL-AI.json +10 -10
- data/data/subdivision/CL-AN.json +9 -9
- data/data/subdivision/CL-AP.json +4 -4
- data/data/subdivision/CL-AR.json +32 -32
- data/data/subdivision/CL-AT.json +9 -9
- data/data/subdivision/CL-BI.json +34 -34
- data/data/subdivision/CL-CO.json +15 -15
- data/data/subdivision/CL-LI.json +33 -33
- data/data/subdivision/CL-LL.json +30 -30
- data/data/subdivision/CL-LR.json +12 -12
- data/data/subdivision/CL-MA.json +11 -11
- data/data/subdivision/CL-ML.json +30 -30
- data/data/subdivision/CL-NB.json +21 -21
- data/data/subdivision/CL-RM.json +52 -52
- data/data/subdivision/CL-TA.json +7 -7
- data/data/subdivision/CL-VS.json +38 -38
- data/data/subdivision/CV.json +9 -9
- data/data/subdivision/KY.json +3 -3
- data/data/subdivision/TV.json +1 -1
- data/lib/addressing/address.rb +7 -4
- data/lib/addressing/address_field.rb +2 -1
- data/lib/addressing/address_format.rb +58 -88
- data/lib/addressing/address_validator.rb +89 -0
- data/lib/addressing/administrative_area_type.rb +2 -2
- data/lib/addressing/blank.rb +29 -0
- data/lib/addressing/country.rb +33 -321
- data/lib/addressing/data_source.rb +77 -0
- data/lib/addressing/default_formatter.rb +35 -38
- data/lib/addressing/dependent_locality_type.rb +2 -2
- data/lib/addressing/enum.rb +1 -11
- data/lib/addressing/exceptions.rb +0 -4
- data/lib/addressing/field_override.rb +5 -1
- data/lib/addressing/field_violation.rb +17 -0
- data/lib/addressing/lazy_subdivisions.rb +18 -15
- data/lib/addressing/locale.rb +27 -288
- data/lib/addressing/locality_type.rb +2 -2
- data/lib/addressing/model.rb +21 -79
- data/lib/addressing/postal_code_type.rb +2 -2
- data/lib/addressing/postal_label_formatter.rb +20 -23
- data/lib/addressing/subdivision.rb +110 -126
- data/lib/addressing/version.rb +1 -1
- data/lib/addressing.rb +7 -9
- metadata +9 -3
- data/data/address_formats.dump +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require "digest"
|
|
4
|
+
|
|
3
5
|
module Addressing
|
|
4
6
|
# Represents administrative subdivisions within countries.
|
|
5
7
|
#
|
|
@@ -16,7 +18,51 @@ module Addressing
|
|
|
16
18
|
# @example Get subdivisions for a Brazilian state
|
|
17
19
|
# municipalities = Addressing::Subdivision.all(['BR', 'CE'])
|
|
18
20
|
class Subdivision
|
|
21
|
+
# The subdivision chain of an address.
|
|
22
|
+
#
|
|
23
|
+
# subdivisions holds the matched predefined subdivisions, ordered from the
|
|
24
|
+
# administrative area downward. unmatched_level is the position, in the
|
|
25
|
+
# values given to Subdivision.chain, of the value that matched no
|
|
26
|
+
# predefined subdivision, or nil when there was none.
|
|
27
|
+
Chain = Data.define(:subdivisions, :unmatched_level)
|
|
28
|
+
|
|
19
29
|
class << self
|
|
30
|
+
# Resolves the subdivision chain for the values of the subdivision levels.
|
|
31
|
+
#
|
|
32
|
+
# The walk goes down the levels and stops at the first empty value, at
|
|
33
|
+
# the first value that matches no predefined subdivision, or at a
|
|
34
|
+
# subdivision without children.
|
|
35
|
+
#
|
|
36
|
+
# @param country_code [String] Country code
|
|
37
|
+
# @param values [Array<String, nil>] Values of the subdivision fields of the address format, in order
|
|
38
|
+
# @return [Chain]
|
|
39
|
+
#
|
|
40
|
+
# @example
|
|
41
|
+
# chain = Addressing::Subdivision.chain("BR", ["CE", "Fortaleza"])
|
|
42
|
+
# chain.subdivisions.map(&:code) # => ["CE", "Fortaleza"]
|
|
43
|
+
# chain.unmatched_level # => nil
|
|
44
|
+
def chain(country_code, values)
|
|
45
|
+
parents = [country_code]
|
|
46
|
+
subdivisions = []
|
|
47
|
+
|
|
48
|
+
return Chain.new(subdivisions: subdivisions, unmatched_level: nil) if load_definitions(parents).empty?
|
|
49
|
+
|
|
50
|
+
values.each_with_index do |value, level|
|
|
51
|
+
# This level is empty, so there can be no sublevels.
|
|
52
|
+
break if Blank.blank?(value)
|
|
53
|
+
|
|
54
|
+
subdivision = get(value, parents)
|
|
55
|
+
return Chain.new(subdivisions: subdivisions, unmatched_level: level) if subdivision.nil?
|
|
56
|
+
|
|
57
|
+
subdivisions << subdivision
|
|
58
|
+
break unless subdivision.children?
|
|
59
|
+
|
|
60
|
+
parents += [value]
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
Chain.new(subdivisions: subdivisions, unmatched_level: nil)
|
|
64
|
+
end
|
|
65
|
+
|
|
20
66
|
# Gets a Subdivision instance by ID and parent hierarchy.
|
|
21
67
|
#
|
|
22
68
|
# @param id [String] Subdivision ID
|
|
@@ -24,7 +70,9 @@ module Addressing
|
|
|
24
70
|
# @return [Subdivision, nil] Subdivision instance or nil if not found
|
|
25
71
|
def get(id, parents)
|
|
26
72
|
definitions = load_definitions(parents)
|
|
27
|
-
|
|
73
|
+
return nil unless definitions.dig("subdivisions", id)
|
|
74
|
+
|
|
75
|
+
create_subdivision_from_definitions(id, definitions, load_parent(definitions))
|
|
28
76
|
end
|
|
29
77
|
|
|
30
78
|
# Returns all subdivision instances for the provided parents.
|
|
@@ -35,9 +83,17 @@ module Addressing
|
|
|
35
83
|
definitions = load_definitions(parents)
|
|
36
84
|
return {} if definitions.empty?
|
|
37
85
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
86
|
+
parent = load_parent(definitions)
|
|
87
|
+
definitions["subdivisions"].keys.to_h { |id| [id, create_subdivision_from_definitions(id, definitions, parent)] }
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks whether there are subdivisions for the provided parents, without building them.
|
|
91
|
+
#
|
|
92
|
+
# @api private
|
|
93
|
+
# @param parents [Array<String>] Parent hierarchy (e.g., ['BR'] or ['BR', 'CE'])
|
|
94
|
+
# @return [Boolean]
|
|
95
|
+
def any?(parents)
|
|
96
|
+
!load_definitions(parents).fetch("subdivisions", {}).empty?
|
|
41
97
|
end
|
|
42
98
|
|
|
43
99
|
# Returns a list of subdivisions for the provided parents.
|
|
@@ -45,86 +101,62 @@ module Addressing
|
|
|
45
101
|
definitions = load_definitions(parents)
|
|
46
102
|
return {} if definitions.empty?
|
|
47
103
|
|
|
48
|
-
use_local_name = Locale.match_candidates(locale, definitions["locale"]
|
|
104
|
+
use_local_name = Locale.match_candidates(locale, definitions["locale"])
|
|
49
105
|
|
|
50
|
-
definitions["subdivisions"].
|
|
51
|
-
subdivisions[id] = use_local_name ? definition["local_name"] : definition["name"]
|
|
52
|
-
end
|
|
106
|
+
definitions["subdivisions"].transform_values { |definition| use_local_name ? definition["local_name"] : definition["name"] }
|
|
53
107
|
end
|
|
54
108
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
#
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# After the first level it is possible for predefined subdivisions
|
|
66
|
-
# to exist at a given level, but not for that specific parent.
|
|
67
|
-
# That's why the parent definition has the most precise answer.
|
|
68
|
-
grandparents = parents.dup
|
|
69
|
-
parent_id = grandparents.pop
|
|
70
|
-
parent_group = build_group(grandparents.dup)
|
|
71
|
-
@definitions ||= {}
|
|
72
|
-
|
|
73
|
-
if @definitions.dig(parent_group, "subdivisions", parent_id)
|
|
74
|
-
definition = @definitions[parent_group]["subdivisions"][parent_id]
|
|
75
|
-
return !!definition["has_children"]
|
|
76
|
-
else
|
|
77
|
-
# The parent definition wasn't loaded previously, fallback to
|
|
78
|
-
# guessing based on the count of subdivision data fields.
|
|
79
|
-
return parents.size <= subdivision_fields.size
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
# The first level has always data.
|
|
84
|
-
true
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
# Loads the subdivision definitions for the provided parents.
|
|
88
|
-
def load_definitions(parents)
|
|
89
|
-
@definitions ||= {}
|
|
90
|
-
group = build_group(parents.dup)
|
|
91
|
-
if @definitions.key?(group)
|
|
92
|
-
return @definitions[group]
|
|
93
|
-
end
|
|
109
|
+
# Gets the key of the subdivision group for the provided parents.
|
|
110
|
+
#
|
|
111
|
+
# The key names the data file of the subdivision group. The data sync
|
|
112
|
+
# names the files with it, so this is the only home of the naming rule.
|
|
113
|
+
#
|
|
114
|
+
# @api private
|
|
115
|
+
# @param parents [Array<String>] Parent hierarchy (e.g., ['BR'] or ['BR', 'CE'])
|
|
116
|
+
# @return [String]
|
|
117
|
+
def group_key(parents)
|
|
118
|
+
raise ArgumentError, "The parents argument must not be empty." if parents.empty?
|
|
94
119
|
|
|
95
|
-
|
|
120
|
+
# Country codes are matched case-insensitively, subdivision IDs are not.
|
|
121
|
+
country_code = parents[0].upcase
|
|
122
|
+
subdivision_ids = parents.drop(1)
|
|
96
123
|
|
|
97
|
-
|
|
98
|
-
if has_data(parents)
|
|
99
|
-
filename = File.join(File.expand_path("../../../data/subdivision", __FILE__).to_s, "#{group}.json")
|
|
124
|
+
return country_code if subdivision_ids.empty?
|
|
100
125
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
end
|
|
104
|
-
end
|
|
126
|
+
# The second parent is an ISO code, it can be used as-is.
|
|
127
|
+
return "#{country_code}-#{subdivision_ids[0]}" if subdivision_ids.length == 1 && subdivision_ids[0].length <= 3
|
|
105
128
|
|
|
106
|
-
|
|
129
|
+
# A dash per key allows the depth to be guessed later.
|
|
130
|
+
# Hash the remaining keys to ensure that the group is ASCII safe.
|
|
131
|
+
country_code + "-" * subdivision_ids.length + Digest::SHA1.hexdigest(subdivision_ids.join("-"))
|
|
107
132
|
end
|
|
108
133
|
|
|
109
|
-
#
|
|
134
|
+
# Gets the parents of a subdivision group from its definitions.
|
|
110
135
|
#
|
|
111
|
-
#
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
136
|
+
# @api private
|
|
137
|
+
# @param definitions [Hash] Definitions of a subdivision group
|
|
138
|
+
# @return [Array<String>]
|
|
139
|
+
def parents_of(definitions)
|
|
140
|
+
# The 'parents' key is omitted when it contains just the country code.
|
|
141
|
+
definitions["parents"] || [definitions["country_code"]]
|
|
117
142
|
end
|
|
118
143
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
144
|
+
protected
|
|
145
|
+
|
|
146
|
+
def load_definitions(parents)
|
|
147
|
+
Addressing.data_source.fetch("subdivision/#{group_key(parents)}") { |definitions| process_definitions(definitions) } || {}
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Adds the keys and values that the JSON files leave out for brevity.
|
|
122
151
|
def process_definitions(definitions)
|
|
123
|
-
#
|
|
124
|
-
|
|
152
|
+
# Definitions of the wrong shape are treated as if they didn't exist.
|
|
153
|
+
# The data verifier reports them, malformed JSON raises in the data source.
|
|
154
|
+
return {} unless definitions.is_a?(Hash) && definitions["subdivisions"].is_a?(Hash)
|
|
125
155
|
|
|
126
156
|
definitions["subdivisions"].each do |id, definition|
|
|
127
|
-
#
|
|
157
|
+
# Upstream writes a definition without keys as an empty JSON array.
|
|
158
|
+
definition = definitions["subdivisions"][id] = {} unless definition.is_a?(Hash)
|
|
159
|
+
|
|
128
160
|
definition["country_code"] = definitions["country_code"]
|
|
129
161
|
definition["id"] = id
|
|
130
162
|
|
|
@@ -144,7 +176,7 @@ module Addressing
|
|
|
144
176
|
|
|
145
177
|
# The code and local_code values are only specified if they
|
|
146
178
|
# don't match the name and local_name ones.
|
|
147
|
-
if !definition.key?("code")
|
|
179
|
+
if !definition.key?("code")
|
|
148
180
|
definition["code"] = definition["name"]
|
|
149
181
|
end
|
|
150
182
|
|
|
@@ -156,66 +188,20 @@ module Addressing
|
|
|
156
188
|
definitions
|
|
157
189
|
end
|
|
158
190
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
def build_group(parents)
|
|
163
|
-
raise ArgumentError, "The parents argument must not be empty." if parents.empty?
|
|
164
|
-
|
|
165
|
-
return parents[0] if parents.length == 1
|
|
166
|
-
|
|
167
|
-
# The second parent is an ISO code, it can be used as-is.
|
|
168
|
-
return parents.join("-") if parents.length == 2 && parents[1].length <= 3
|
|
169
|
-
|
|
170
|
-
country_code = parents.shift
|
|
171
|
-
group = country_code
|
|
172
|
-
|
|
173
|
-
# A dash per key allows the depth to be guessed later.
|
|
174
|
-
group += "-" * parents.length
|
|
175
|
-
# Hash the remaining keys to ensure that the group is ASCII safe.
|
|
176
|
-
group + Digest::SHA1.hexdigest(parents.join("-"))
|
|
191
|
+
def load_parent(definitions)
|
|
192
|
+
parents = parents_of(definitions)
|
|
193
|
+
get(parents[-1], parents[0...-1]) if parents.size > 1
|
|
177
194
|
end
|
|
178
195
|
|
|
179
|
-
|
|
180
|
-
def create_subdivision_from_definitions(id, definitions)
|
|
181
|
-
if !definitions.dig("subdivisions", id)
|
|
182
|
-
# No matching definition found.
|
|
183
|
-
return nil
|
|
184
|
-
end
|
|
185
|
-
|
|
196
|
+
def create_subdivision_from_definitions(id, definitions, parent)
|
|
186
197
|
definition = definitions["subdivisions"][id]
|
|
187
|
-
|
|
188
|
-
definitions["parents"] = [definitions["country_code"]] unless definitions.key?("parents")
|
|
189
|
-
parents = definitions["parents"]
|
|
198
|
+
parents = parents_of(definitions)
|
|
190
199
|
|
|
191
|
-
definition["
|
|
192
|
-
|
|
193
|
-
# Load the parent, if known.
|
|
194
|
-
if parents.size > 1
|
|
195
|
-
grandparents = parents.dup
|
|
196
|
-
parent_id = grandparents.pop
|
|
197
|
-
parent_group = build_group(grandparents.dup)
|
|
198
|
-
@parents ||= {}
|
|
199
|
-
|
|
200
|
-
if !@parents.dig(parent_group, parent_id)
|
|
201
|
-
@parents[parent_group] ||= {}
|
|
202
|
-
@parents[parent_group][parent_id] = get(parent_id, grandparents)
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
definition["parent"] = @parents[parent_group][parent_id]
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
# Prepare children.
|
|
209
|
-
if definition["has_children"]
|
|
210
|
-
children_parents = parents.dup
|
|
211
|
-
children_parents << id
|
|
212
|
-
|
|
213
|
-
definition["children"] = LazySubdivisions.new(children_parents)
|
|
214
|
-
end
|
|
200
|
+
children = definition["has_children"] ? LazySubdivisions.new(parents + [id]) : {}
|
|
215
201
|
|
|
216
202
|
new(
|
|
217
203
|
id: id,
|
|
218
|
-
parent:
|
|
204
|
+
parent: parent,
|
|
219
205
|
country_code: definition["country_code"],
|
|
220
206
|
locale: definition["locale"],
|
|
221
207
|
code: definition["code"],
|
|
@@ -223,7 +209,7 @@ module Addressing
|
|
|
223
209
|
name: definition["name"],
|
|
224
210
|
local_name: definition["local_name"],
|
|
225
211
|
postal_code_pattern: definition["postal_code_pattern"],
|
|
226
|
-
children:
|
|
212
|
+
children: children
|
|
227
213
|
)
|
|
228
214
|
end
|
|
229
215
|
end
|
|
@@ -231,14 +217,12 @@ module Addressing
|
|
|
231
217
|
attr_reader :id, :parent, :country_code, :locale, :code, :local_code, :name, :local_name, :postal_code_pattern, :children
|
|
232
218
|
|
|
233
219
|
def initialize(definition = {})
|
|
234
|
-
# Validate the presence of required properties.
|
|
235
220
|
[:country_code, :id, :code, :name].each do |required_property|
|
|
236
221
|
if definition[required_property].nil?
|
|
237
222
|
raise ArgumentError, "Missing required property #{required_property}."
|
|
238
223
|
end
|
|
239
224
|
end
|
|
240
225
|
|
|
241
|
-
# Add defaults for properties that are allowed to be empty.
|
|
242
226
|
definition = {
|
|
243
227
|
parent: nil,
|
|
244
228
|
locale: nil,
|
data/lib/addressing/version.rb
CHANGED
data/lib/addressing.rb
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# stdlib
|
|
4
|
-
require "cgi"
|
|
5
|
-
require "digest"
|
|
6
|
-
require "json"
|
|
7
|
-
|
|
8
|
-
# modules
|
|
9
|
-
require "addressing/exceptions"
|
|
10
|
-
require "addressing/enum"
|
|
11
3
|
require "addressing/address"
|
|
12
4
|
require "addressing/address_field"
|
|
13
5
|
require "addressing/address_format"
|
|
6
|
+
require "addressing/address_validator"
|
|
14
7
|
require "addressing/administrative_area_type"
|
|
8
|
+
require "addressing/blank"
|
|
15
9
|
require "addressing/country"
|
|
10
|
+
require "addressing/data_source"
|
|
16
11
|
require "addressing/default_formatter"
|
|
17
12
|
require "addressing/dependent_locality_type"
|
|
13
|
+
require "addressing/enum"
|
|
14
|
+
require "addressing/exceptions"
|
|
18
15
|
require "addressing/field_override"
|
|
16
|
+
require "addressing/field_violation"
|
|
19
17
|
require "addressing/lazy_subdivisions"
|
|
20
18
|
require "addressing/locale"
|
|
21
19
|
require "addressing/locality_type"
|
|
20
|
+
require "addressing/model"
|
|
22
21
|
require "addressing/postal_code_type"
|
|
23
22
|
require "addressing/postal_label_formatter"
|
|
24
23
|
require "addressing/subdivision"
|
|
@@ -26,7 +25,6 @@ require "addressing/version"
|
|
|
26
25
|
|
|
27
26
|
if defined?(ActiveSupport.on_load)
|
|
28
27
|
ActiveSupport.on_load(:active_record) do
|
|
29
|
-
require "addressing/model"
|
|
30
28
|
extend Addressing::Model
|
|
31
29
|
end
|
|
32
30
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: addressing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robin van der Vleuten
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: robinvdvleuten@gmail.com
|
|
@@ -19,8 +19,9 @@ files:
|
|
|
19
19
|
- CHANGELOG.md
|
|
20
20
|
- LICENSE
|
|
21
21
|
- README.md
|
|
22
|
-
- data/
|
|
22
|
+
- data/UPSTREAM_VERSION
|
|
23
23
|
- data/address_formats.json
|
|
24
|
+
- data/countries.json
|
|
24
25
|
- data/country/af.json
|
|
25
26
|
- data/country/ak.json
|
|
26
27
|
- data/country/am.json
|
|
@@ -169,6 +170,7 @@ files:
|
|
|
169
170
|
- data/country/zh-Hant.json
|
|
170
171
|
- data/country/zh.json
|
|
171
172
|
- data/country/zu.json
|
|
173
|
+
- data/locale.json
|
|
172
174
|
- data/subdivision/AD.json
|
|
173
175
|
- data/subdivision/AE.json
|
|
174
176
|
- data/subdivision/AM.json
|
|
@@ -719,13 +721,17 @@ files:
|
|
|
719
721
|
- lib/addressing/address.rb
|
|
720
722
|
- lib/addressing/address_field.rb
|
|
721
723
|
- lib/addressing/address_format.rb
|
|
724
|
+
- lib/addressing/address_validator.rb
|
|
722
725
|
- lib/addressing/administrative_area_type.rb
|
|
726
|
+
- lib/addressing/blank.rb
|
|
723
727
|
- lib/addressing/country.rb
|
|
728
|
+
- lib/addressing/data_source.rb
|
|
724
729
|
- lib/addressing/default_formatter.rb
|
|
725
730
|
- lib/addressing/dependent_locality_type.rb
|
|
726
731
|
- lib/addressing/enum.rb
|
|
727
732
|
- lib/addressing/exceptions.rb
|
|
728
733
|
- lib/addressing/field_override.rb
|
|
734
|
+
- lib/addressing/field_violation.rb
|
|
729
735
|
- lib/addressing/lazy_subdivisions.rb
|
|
730
736
|
- lib/addressing/locale.rb
|
|
731
737
|
- lib/addressing/locality_type.rb
|
data/data/address_formats.dump
DELETED
|
Binary file
|