address_composer 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +1 -1
  3. data/.gitmodules +1 -0
  4. data/.rubocop.yml +4 -20
  5. data/Gemfile.lock +57 -32
  6. data/README.md +26 -0
  7. data/address-formatting/.github/workflows/ci.yml +25 -0
  8. data/address-formatting/README.md +19 -13
  9. data/address-formatting/bin/coverage.pl +8 -2
  10. data/address-formatting/bin/run_tests.t +36 -10
  11. data/address-formatting/conf/abbreviations/ca.yaml +18 -1
  12. data/address-formatting/conf/abbreviations/cs.yaml +0 -3
  13. data/address-formatting/conf/abbreviations/da.yaml +1 -1
  14. data/address-formatting/conf/abbreviations/en.yaml +7 -1
  15. data/address-formatting/conf/abbreviations/es.yaml +21 -3
  16. data/address-formatting/conf/abbreviations/et.yaml +0 -3
  17. data/address-formatting/conf/abbreviations/eu.yaml +0 -1
  18. data/address-formatting/conf/abbreviations/fi.yaml +0 -3
  19. data/address-formatting/conf/abbreviations/fr.yaml +1 -1
  20. data/address-formatting/conf/abbreviations/gl.yaml +14 -0
  21. data/address-formatting/conf/abbreviations/it.yaml +1 -1
  22. data/address-formatting/conf/abbreviations/nl.yaml +17 -0
  23. data/address-formatting/conf/abbreviations/no.yaml +0 -4
  24. data/address-formatting/conf/abbreviations/pl.yaml +2 -2
  25. data/address-formatting/conf/abbreviations/pt.yaml +18 -0
  26. data/address-formatting/conf/abbreviations/ro.yaml +8 -2
  27. data/address-formatting/conf/abbreviations/sl.yaml +24 -0
  28. data/address-formatting/conf/abbreviations/{se.yaml → sv.yaml} +1 -5
  29. data/address-formatting/conf/abbreviations/tr.yaml +0 -4
  30. data/address-formatting/conf/abbreviations/{vn.yaml → vi.yaml} +1 -3
  31. data/address-formatting/conf/components.yaml +15 -4
  32. data/address-formatting/conf/countries/worldwide.yaml +401 -272
  33. data/address-formatting/conf/country2lang.yaml +33 -32
  34. data/address-formatting/conf/country_codes.yaml +216 -214
  35. data/address-formatting/conf/county_codes.yaml +19 -9
  36. data/address-formatting/conf/state_codes.yaml +91 -49
  37. data/address-formatting/cpanfile +10 -0
  38. data/address-formatting/testcases/abbreviations/de.yaml +27 -0
  39. data/address-formatting/testcases/abbreviations/en.yaml +15 -0
  40. data/address-formatting/testcases/abbreviations/fr.yaml +12 -0
  41. data/address-formatting/testcases/countries/al.yaml +17 -3
  42. data/address-formatting/testcases/countries/au.yaml +29 -3
  43. data/address-formatting/testcases/countries/be.yaml +17 -2
  44. data/address-formatting/testcases/countries/bg.yaml +1 -1
  45. data/address-formatting/testcases/countries/br.yaml +36 -2
  46. data/address-formatting/testcases/countries/ca.yaml +60 -18
  47. data/address-formatting/testcases/countries/cl.yaml +3 -2
  48. data/address-formatting/testcases/countries/cn.yaml +21 -8
  49. data/address-formatting/testcases/countries/co.yaml +19 -0
  50. data/address-formatting/testcases/countries/cu.yaml +24 -10
  51. data/address-formatting/testcases/countries/de.yaml +70 -13
  52. data/address-formatting/testcases/countries/eg.yaml +6 -6
  53. data/address-formatting/testcases/countries/eh.yaml +2 -2
  54. data/address-formatting/testcases/countries/es.yaml +12 -0
  55. data/address-formatting/testcases/countries/fr.yaml +30 -13
  56. data/address-formatting/testcases/countries/gb.yaml +63 -4
  57. data/address-formatting/testcases/countries/hu.yaml +3 -4
  58. data/address-formatting/testcases/countries/ie.yaml +43 -1
  59. data/address-formatting/testcases/countries/in.yaml +14 -1
  60. data/address-formatting/testcases/countries/ir.yaml +19 -8
  61. data/address-formatting/testcases/countries/it.yaml +30 -2
  62. data/address-formatting/testcases/countries/kg.yaml +1 -1
  63. data/address-formatting/testcases/countries/kr.yaml +13 -5
  64. data/address-formatting/testcases/countries/ml.yaml +9 -9
  65. data/address-formatting/testcases/countries/mu.yaml +17 -1
  66. data/address-formatting/testcases/countries/nz.yaml +11 -0
  67. data/address-formatting/testcases/countries/pa.yaml +17 -0
  68. data/address-formatting/testcases/countries/ph.yaml +64 -3
  69. data/address-formatting/testcases/countries/pt.yaml +17 -0
  70. data/address-formatting/testcases/countries/py.yaml +1 -1
  71. data/address-formatting/testcases/countries/ru.yaml +3 -3
  72. data/address-formatting/testcases/countries/sg.yaml +16 -0
  73. data/address-formatting/testcases/countries/sj.yaml +1 -1
  74. data/address-formatting/testcases/countries/sk.yaml +20 -2
  75. data/address-formatting/testcases/countries/sn.yaml +16 -0
  76. data/address-formatting/testcases/countries/tc.yaml +12 -0
  77. data/address-formatting/testcases/countries/th.yaml +1 -1
  78. data/address-formatting/testcases/countries/tk.yaml +1 -1
  79. data/address-formatting/testcases/countries/tw.yaml +7 -7
  80. data/address-formatting/testcases/countries/tz.yaml +1 -7
  81. data/address-formatting/testcases/countries/us.yaml +3 -5
  82. data/address-formatting/testcases/countries/uy.yaml +1 -1
  83. data/address-formatting/testcases/countries/vn.yaml +2 -1
  84. data/address-formatting/testcases/countries/xc.yaml +14 -0
  85. data/address-formatting/testcases/countries/xk.yaml +20 -0
  86. data/address_composer.gemspec +11 -9
  87. data/lib/address_composer/version.rb +1 -1
  88. data/lib/address_composer.rb +92 -14
  89. metadata +83 -34
  90. data/.travis.yml +0 -7
  91. data/address-formatting/.travis.yml +0 -12
@@ -18,7 +18,6 @@ expected: |
18
18
  Hyderabad - 500064
19
19
  Telangana
20
20
  India
21
-
22
21
  ---
23
22
  description: Indian postcode
24
23
  components:
@@ -30,3 +29,17 @@ expected: |
30
29
  400096
31
30
  Mahārāshtra
32
31
  India
32
+ ---
33
+ description: without postcode
34
+ components:
35
+ city: Pune
36
+ country: India
37
+ country_code: in
38
+ road: Baner
39
+ state: Maharashtra
40
+ expected: |
41
+ Baner
42
+ Pune
43
+ Maharashtra
44
+ India
45
+
@@ -1,15 +1,14 @@
1
1
  # Iran
2
2
  ---
3
-
4
3
  description: Tower in Tehran, 35.699,51.33810
5
4
  components:
6
- attraction: Azadi Tower
7
- city: Tehran
8
- country: Iran
9
- country_code: ir
10
- postcode: 1351956118
11
- road: Azadi Square
12
- suburb: Ostad Moein
5
+ attraction: Azadi Tower
6
+ city: Tehran
7
+ country: Iran
8
+ country_code: ir
9
+ postcode: 1351956118
10
+ road: Azadi Square
11
+ suburb: Ostad Moein
13
12
  expected: |
14
13
  Azadi Tower
15
14
  Tehran
@@ -17,3 +16,15 @@ expected: |
17
16
  Azadi Square
18
17
  1351956118
19
18
  Iran
19
+ ---
20
+ description: district should be treated as alias of state_district
21
+ components:
22
+ city: Tehran
23
+ country: Iran
24
+ country_code: ir
25
+ district: بخش مرکزی شهرستان تهران
26
+ province: Tehran Province
27
+ expected: |
28
+ Tehran
29
+ بخش مرکزی شهرستان تهران
30
+ Iran
@@ -11,7 +11,7 @@ components:
11
11
  state: Apulia
12
12
  suburb: Montaltino
13
13
  expected: |
14
- Via Pisacane, 13
14
+ Via Pisacane 13
15
15
  76121 Barletta BT
16
16
  Italy
17
17
  ---
@@ -29,7 +29,35 @@ expected: |
29
29
  Via Giovanni Della Casa
30
30
  20147 Milano MI
31
31
  Italy
32
- ---
32
+ ---
33
+ description: Torino, correcty add county_code
34
+ components:
35
+ city: San Raffaele Cimena
36
+ country: Italy
37
+ country_code: it
38
+ county: Torino
39
+ postcode: 10032
40
+ road: Via Pertengo
41
+ state: Piemonte
42
+ expected: |
43
+ Via Pertengo
44
+ 10032 San Raffaele Cimena TO
45
+ Italy
46
+ ---
47
+ description: Provincia di Torino, correcty add county_code
48
+ components:
49
+ city: San Raffaele Cimena
50
+ country: Italy
51
+ country_code: it
52
+ county: Provincia di Torino
53
+ postcode: 10032
54
+ road: Via Pertengo
55
+ state: Piemonte
56
+ expected: |
57
+ Via Pertengo
58
+ 10032 San Raffaele Cimena TO
59
+ Italy
60
+ ---
33
61
  description: deal with Città metropolitana di Firenze
34
62
  components:
35
63
  building: Palazzo Gondi
@@ -1,6 +1,6 @@
1
1
  # Kyrgyzstan
2
2
  ---
3
- description:
3
+ description:
4
4
  components:
5
5
  city: Бишкек
6
6
  country: Kyrgyzstan
@@ -12,10 +12,18 @@ components:
12
12
  town: Seocho-gu
13
13
  village: Seocho-dong
14
14
  expected: |
15
+ South Korea
16
+ Seoul, 서초2동 (Seocho2-dong), Seocho-daero 74-gil
15
17
  Haeundae Grand Hotel
16
- Seocho-daero 74-gil
17
- 서초2동 (Seocho2-dong), Seoul, 135-934
18
+ 135-934
19
+ ---
20
+ description: district of Seoul
21
+ components:
22
+ city: Seoul
23
+ country: South Korea
24
+ country_code: kr
25
+ city_district: Gangnam-gu
26
+ expected: |
27
+ Gangnam-gu
28
+ Seoul
18
29
  South Korea
19
-
20
-
21
-
@@ -2,15 +2,15 @@
2
2
  ---
3
3
  description: Embassy in Bamako, 12.64230,-7.97833
4
4
  components:
5
- building: Ambassade de Russie
6
- city: Bamako
7
- country: Mali
8
- country_code: ml
9
- county: Bamako District
10
- postcode: E4373
11
- road: Rue 415
12
- state: Bamako District
13
- suburb: Niaréla
5
+ building: Ambassade de Russie
6
+ city: Bamako
7
+ country: Mali
8
+ country_code: ml
9
+ county: Bamako District
10
+ postcode: E4373
11
+ road: Rue 415
12
+ state: Bamako District
13
+ suburb: Niaréla
14
14
  expected: |
15
15
  Ambassade de Russie
16
16
  Rue 415
@@ -8,14 +8,30 @@ components:
8
8
  country_code: mu
9
9
  house_number: 1
10
10
  neighbourhood: Caudan Waterfront
11
- postcode: 230
12
11
  road: Queen Elizabeth II Avenue
13
12
  state: Port Louis
14
13
  expected: |
15
14
  State Bank of Mauritius
16
15
  1, Queen Elizabeth II Avenue
16
+ Caudan Waterfront
17
17
  Port Louis
18
18
  Mauritius
19
+ ---
20
+ # example from https://en.wikipedia.org/wiki/Postal_codes_in_Mauritius
21
+ description: example address with postcode
22
+ components:
23
+ city: Lallmatie
24
+ country: Mauritius
25
+ country_code: mu
26
+ house_number: 21
27
+ neighbourhood: Mission Cross
28
+ postcode: 42602
29
+ road: Old Trafford Road
30
+ expected: |
31
+ 21, Old Trafford Road
32
+ Mission Cross
33
+ Lallmatie 42602
34
+ Mauritius
19
35
 
20
36
 
21
37
 
@@ -16,3 +16,14 @@ expected: |
16
16
  Mount Victoria
17
17
  Wellington 6011
18
18
  New Zealand
19
+ ---
20
+ description: City of Wellington
21
+ components:
22
+ city: Wellington
23
+ country: New Zealand
24
+ country_code: nz
25
+ county: Wellington City
26
+ state: Wellington
27
+ expected: |
28
+ Wellington
29
+ New Zealand
@@ -1,4 +1,6 @@
1
1
  # Panama
2
+ # https://www.youtube.com/watch?v=fuKDBPw8wQA
3
+ #
2
4
  ---
3
5
  description: Bed & Breakfast in Panama City, 8.99337,-79.52075
4
6
  components:
@@ -15,6 +17,21 @@ expected: |
15
17
  Ciudad de Panamá
16
18
  Panamá
17
19
  ---
20
+ description: make sure no double Panama City
21
+ components:
22
+ city: Panama City
23
+ country: Panama
24
+ country_code: pa
25
+ guest_house: Panama House Bed & Breakfast
26
+ road: Avenida 1 C Norte
27
+ suburb: El Cangrejo
28
+ expected: |
29
+ Panama House Bed & Breakfast
30
+ Avenida 1 C Norte
31
+ El Cangrejo
32
+ Panama City
33
+ Panama
34
+ ---
18
35
  description: Pharmacy in Nueva California, 8.77977,-82.64522
19
36
  components:
20
37
  country: Panama
@@ -14,8 +14,69 @@ components:
14
14
  suburb: Ermita
15
15
  expected: |
16
16
  Emerald Garden
17
- 1140 Alhambra
18
- Ermita
17
+ 1140 Alhambra, Ermita
19
18
  1000 Metro Manila
20
19
  Philippines
21
-
20
+ ---
21
+ description: archipelago
22
+ components:
23
+ archipelago: Mindanao
24
+ country: Philippines
25
+ country_code: ph
26
+ expected: |
27
+ Mindanao
28
+ Philippines
29
+ ---
30
+ description: address
31
+ components:
32
+ house_number: 121
33
+ road: Epifanio Delos Santos Ave.
34
+ city: Mandaluyong
35
+ postcode: 1550
36
+ suburb: Wack-wack Greenhills
37
+ county: Fifth District
38
+ country: Philippines
39
+ country_code: PH
40
+ attention: Mr. Juan Maliksi
41
+ state: Metro Manila
42
+ expected: |
43
+ Mr. Juan Maliksi
44
+ 121 Epifanio Delos Santos Ave., Wack-wack Greenhills, Mandaluyong
45
+ 1550 Metro Manila
46
+ Philippines
47
+ ---
48
+ description: address - city_district instead of suburb
49
+ components:
50
+ house_number: 121
51
+ road: Epifanio Delos Santos Ave.
52
+ city: Mandaluyong
53
+ postcode: 1550
54
+ city_district: Wack-wack Greenhills
55
+ county: Fifth District
56
+ country: Philippines
57
+ country_code: PH
58
+ attention: Mr. Juan Maliksi
59
+ state: Metro Manila
60
+ expected: |
61
+ Mr. Juan Maliksi
62
+ 121 Epifanio Delos Santos Ave., Wack-wack Greenhills, Mandaluyong
63
+ 1550 Metro Manila
64
+ Philippines
65
+ ---
66
+ # https://nominatim.openstreetmap.org/ui/details.html?osmtype=N&osmid=11556052391&class=amenity
67
+ description: address - ignore additional region
68
+ components:
69
+ road: Gerona - Pura Road
70
+ village: Poblacion 1
71
+ postcode: 2312
72
+ municipality: Pura
73
+ province: Tarlac
74
+ region: Central Luzon
75
+ country: Philippines
76
+ country_code: PH
77
+ attention: PYS Pharmacy
78
+ expected: |
79
+ PYS Pharmacy
80
+ Gerona - Pura Road, Poblacion 1
81
+ 2312 Pura
82
+ Philippines
@@ -15,6 +15,23 @@ expected: |
15
15
  1500-203 Lisbon
16
16
  Portugal
17
17
  ---
18
+ # fix postcode formatting
19
+ description: 38.72132,-9.13017
20
+ components:
21
+ city: Lisbon
22
+ country: Portugal
23
+ country_code: pt
24
+ county: Lisbon
25
+ house_number: 2
26
+ neighbourhood: São Vicente de Fora
27
+ postcode: 1170169
28
+ road: Rua da Graça
29
+ suburb: São Vicente
30
+ expected: |
31
+ Rua da Graça 2
32
+ 1170-169 Lisbon
33
+ Portugal
34
+ ---
18
35
  # Guest house in the Azores
19
36
  description: 37.74851,-25.60450
20
37
  components:
@@ -9,7 +9,7 @@ components:
9
9
  postcode: 1409
10
10
  road: Milano
11
11
  state: Distrito Capital de Paraguay
12
- suburb: Tacumbú
12
+ suburb: Tacumbú
13
13
  expected: |
14
14
  Old Germany German Bakery
15
15
  Milano
@@ -8,14 +8,14 @@ components:
8
8
  postcode : 190000
9
9
  road : Гороховая улица
10
10
  # Saint Petersburg
11
- state : Санкт-Петербург
11
+ state : Санкт-Петербург
12
12
  state_district : Адмиралтейский район
13
13
  # Russian Federation
14
- country : Российская Федерация
14
+ country : Российская Федерация
15
15
  country_code : ru
16
16
  expected: |
17
17
  Efes Istambul
18
- Гороховая улица 23
18
+ Гороховая улица, 23
19
19
  Сенной округ
20
20
  Санкт-Петербург
21
21
  Российская Федерация
@@ -39,5 +39,21 @@ expected: |
39
39
  26 Dover Crescent, Dover Gardens
40
40
  Singapore 130026
41
41
  Singapore
42
+ ---
43
+ description: wrong city, 1.30585,103.78158
44
+ components:
45
+ city: Jurong East
46
+ country: Singapore
47
+ country_code: sg
48
+ county: Southwest
49
+ house_number: 26
50
+ postcode: 130026
51
+ residential: Dover Gardens
52
+ road: Dover Crescent
53
+ suburb: Queenstown
54
+ expected: |
55
+ 26 Dover Crescent, Dover Gardens
56
+ Singapore 130026
57
+ Singapore
42
58
 
43
59
 
@@ -1,6 +1,6 @@
1
1
  # Svalbard and Jan Mayen, part of Norway
2
2
  ---
3
- description: Airstrip on Jan Mayen, 70.9415,-8.6616
3
+ description: Airstrip on Jan Mayen, 70.9415,-8.6616
4
4
  components:
5
5
  country: Svalbard and Jan Mayen
6
6
  country_code: sj
@@ -2,7 +2,7 @@
2
2
  ---
3
3
  description: Bratislava - 48.14776,17.10384
4
4
  components:
5
- city: District of Bratislava I
5
+ city: District of Bratislava
6
6
  city_district: Bratislava - mestská časť Staré Mesto
7
7
  country: Slovakia
8
8
  country_code: sk
@@ -14,7 +14,25 @@ components:
14
14
  suburb: Staré Mesto
15
15
  expected: |
16
16
  Panenská 666/20
17
- 811 03 Bratislava I
17
+ 811 03 Bratislava
18
+ Slovakia
19
+ ---
20
+ description: Bratislava town and city, fix postcode 48.15744,17.10839
21
+ components:
22
+ city: Bratislava
23
+ city_district: District of Bratislava I
24
+ country: Slovakia
25
+ country_code: sk
26
+ house_number: 12
27
+ neighbourhood: Desiatky
28
+ postcode: 81105
29
+ road: Železničiarska
30
+ state: Region of Bratislava
31
+ state_code: BL
32
+ town: Old Town
33
+ expected: |
34
+ Železničiarska 12
35
+ 811 05 Bratislava
18
36
  Slovakia
19
37
 
20
38
 
@@ -15,6 +15,22 @@ expected: |
15
15
  Rue Carnot
16
16
  24951 Dakar
17
17
  Senegal
18
+ ---
19
+ description: commune
20
+ components:
21
+ commune: Commune de Yeumbeul Nord
22
+ country: Senegal
23
+ country_code: sn
24
+ postcode: 17000
25
+ road: unnamed road
26
+ state: Dakar Region
27
+ state_district: Département de Keur Massar
28
+ town: Arrondissement de Yeumbeul
29
+ expected: |
30
+ unnamed road
31
+ 17000 Yeumbeul
32
+ Senegal
33
+
18
34
 
19
35
 
20
36
 
@@ -15,6 +15,18 @@ expected: |
15
15
  Daffodil Close
16
16
  Providenciales
17
17
  Turks and Caicos Islands
18
+ ---
19
+ description: hamlet on Middle Caicos
20
+ components:
21
+ country: Turks and Caicos Islands
22
+ country_code: tc
23
+ island: Middle Caicos
24
+ hamlet: Bambarra
25
+ expected: |
26
+ Bambarra
27
+ Middle Caicos
28
+ Turks and Caicos Islands
29
+
18
30
 
19
31
 
20
32
 
@@ -5,7 +5,7 @@
5
5
  # Road
6
6
  # Subdistrict, District
7
7
  # Province Postal Code
8
- # THAILAND
8
+ # THAILAND
9
9
  ---
10
10
  description: School in Bangkok, 13.7101,100.5088
11
11
  components:
@@ -1,6 +1,6 @@
1
1
  # Tokelau
2
2
  ---
3
- description: village on Fakaofo, -9.3743,-171.2651
3
+ description: village on Fakaofo, -9.3743,-171.2651
4
4
  components:
5
5
  city: Fakaofo
6
6
  country: Tokelau
@@ -1,6 +1,6 @@
1
1
  # Taiwan / Republic of China
2
2
  ---
3
- description: Library in 新北市板橋區, 25.02511,121.46330
3
+ description: Library in 新北市板橋區, 25.02511,121.46330
4
4
  components:
5
5
  city: 新北市板橋區
6
6
  country: 中華民國
@@ -9,14 +9,14 @@ components:
9
9
  library: 新北市立圖書館板橋四維分館
10
10
  postcode: 220
11
11
  road: 陽明街
12
- state : 台中台北各種語言名稱
13
- suburb : 新北板橋土城多語言
12
+ state : 台中台北各種語言名稱
13
+ suburb : 新北板橋土城多語言
14
14
  expected: |
15
- 新北市立圖書館板橋四維分館
16
- 168 陽明街
17
- 新北板橋土城多語言
18
- 新北市板橋區 220
19
15
  中華民國
16
+ 220
17
+ 新北市板橋區 新北板橋土城多語言 陽明街 168
18
+ 新北市立圖書館板橋四維分館
19
+
20
20
 
21
21
 
22
22
 
@@ -17,9 +17,6 @@ expected: |
17
17
  Mivinjeni Street
18
18
  78570 Dar es Salaam
19
19
  Tanzania
20
-
21
- #
22
- # in another city
23
20
  ---
24
21
  description: Ruvuma Regional Hospital -10.68053,35.65144
25
22
  components:
@@ -36,11 +33,8 @@ expected: |
36
33
  Songea
37
34
  Ruvuma
38
35
  Tanzania
39
-
40
- #
41
- # in countryside, no town
42
36
  ---
43
- description: -4.22466,35.72255
37
+ description: -4.22466,35.72255 # in countryside, no town
44
38
  components:
45
39
  country: Tanzania
46
40
  country_code: tz
@@ -80,14 +80,14 @@ expected: |
80
80
  ---
81
81
  description: NY, NY
82
82
  components:
83
- city: New York
83
+ city: New York
84
84
  country: United States of America
85
85
  country_code: US
86
86
  state: New York
87
87
  expected: |
88
88
  New York, New York
89
89
  United States of America
90
- ---
90
+ ---
91
91
  description: house number in New York, no city
92
92
  components:
93
93
  house_number: 175
@@ -139,7 +139,6 @@ expected: |
139
139
  928 Flagler Avenue
140
140
  Edgewater, FL 32132
141
141
  United States of America
142
-
143
142
  ---
144
143
  description: clean up "Town of " 40.7805,-73.4875
145
144
  components:
@@ -151,12 +150,11 @@ components:
151
150
  postcode: 11803
152
151
  road: Lakeville Lane
153
152
  state: New York
154
- state_code: NY
153
+ state_code: NY
155
154
  expected: |
156
155
  4 Lakeville Lane
157
156
  Oyster Bay, NY 11803
158
157
  United States of America
159
-
160
158
  ---
161
159
  description: use county if no city
162
160
  components:
@@ -1,6 +1,6 @@
1
1
  # Uruguay
2
2
  ---
3
- description: -34.90338,-54.95706
3
+ description: -34.90338,-54.95706
4
4
  components:
5
5
  city: Maldonado
6
6
  country: Uruguay
@@ -13,6 +13,7 @@ components:
13
13
  expected: |
14
14
  Why Not Bar
15
15
  Tran Quang Khai
16
- Tan Lap District, Nha Trang
16
+ Tan Lap District
17
+ Nha Trang
17
18
  Khanh Hoa province 48058
18
19
  Vietnam
@@ -0,0 +1,14 @@
1
+ # Sovereign Base Areas of Akrotiri and Dhekelia
2
+ ---
3
+ description: 35.0257,33.7803
4
+ components:
5
+ country: Sovereign Base Areas of Akrotiri and Dhekelia
6
+ country_code: xc
7
+ county: Dhekelia
8
+ road: unnamed road
9
+ village: Dasaki Achnas
10
+ expected: |
11
+ unnamed road
12
+ Dasaki Achnas
13
+ Dhekelia
14
+ Sovereign Base Areas of Akrotiri and Dhekelia
@@ -0,0 +1,20 @@
1
+ # Kosovo
2
+ ---
3
+ description: Address in Pristina, 42.66925,21.16407
4
+ components:
5
+ city: Pristina
6
+ continent: Europe
7
+ country: Kosovo
8
+ country_code: xk
9
+ district: District of Prishtina
10
+ house_number: 13
11
+ municipality: Municipality of Pristina
12
+ postcode: 10010
13
+ road: Ahmet Haxhiu
14
+ suburb: Medresa
15
+ expected: |
16
+ 13, Ahmet Haxhiu
17
+ Pristina 10010
18
+ Kosovo
19
+
20
+
@@ -23,14 +23,16 @@ Gem::Specification.new do |gem|
23
23
  `git ls-files --recurse-submodules -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
24
24
  end
25
25
 
26
- gem.required_ruby_version = ">= 2.4"
26
+ gem.required_ruby_version = ">= 2.6"
27
27
  gem.require_paths = ["lib"]
28
-
29
- gem.add_runtime_dependency "mustache", "~> 1.1"
30
-
31
- gem.add_development_dependency "bundler", "~> 2.2"
32
- gem.add_development_dependency "pry", "~> 0.14"
33
- gem.add_development_dependency "pry-byebug", "~> 3.8"
34
- gem.add_development_dependency "rake", "~> 13.0"
35
- gem.add_development_dependency "rspec", "~> 3.10"
28
+ gem.add_runtime_dependency "mustache"
29
+
30
+ gem.add_development_dependency "bundler"
31
+ gem.add_development_dependency "rubocop"
32
+ gem.add_development_dependency "ostruct"
33
+ gem.add_development_dependency "reline"
34
+ gem.add_development_dependency "irb"
35
+ gem.add_development_dependency "fiddle"
36
+ gem.add_development_dependency "rake"
37
+ gem.add_development_dependency "rspec"
36
38
  end
@@ -1,3 +1,3 @@
1
1
  class AddressComposer
2
- VERSION = "1.0.1".freeze
2
+ VERSION = "2.0.0".freeze
3
3
  end