greek-cities 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/lib/gc.rb +3 -0
  4. data/lib/gc/cities/ahaia.yml +17 -0
  5. data/lib/gc/cities/aitoloakarnania.yml +24 -0
  6. data/lib/gc/cities/argolida.yml +14 -0
  7. data/lib/gc/cities/arkadia.yml +17 -0
  8. data/lib/gc/cities/arta.yml +14 -0
  9. data/lib/gc/cities/attiki.yml +200 -0
  10. data/lib/gc/cities/boiotia.yml +20 -0
  11. data/lib/gc/cities/dodekanisa.yml +47 -0
  12. data/lib/gc/cities/drama.yml +17 -0
  13. data/lib/gc/cities/evros.yml +17 -0
  14. data/lib/gc/cities/eyrytania.yml +11 -0
  15. data/lib/gc/cities/eyvoia.yml +26 -0
  16. data/lib/gc/cities/florina.yml +11 -0
  17. data/lib/gc/cities/fokida.yml +9 -0
  18. data/lib/gc/cities/fthiotida.yml +23 -0
  19. data/lib/gc/cities/grevena.yml +8 -0
  20. data/lib/gc/cities/halkidiki.yml +17 -0
  21. data/lib/gc/cities/hania.yml +23 -0
  22. data/lib/gc/cities/hios.yml +8 -0
  23. data/lib/gc/cities/ilia.yml +23 -0
  24. data/lib/gc/cities/imathia.yml +11 -0
  25. data/lib/gc/cities/ioannina.yml +26 -0
  26. data/lib/gc/cities/irakleio.yml +23 -0
  27. data/lib/gc/cities/karditsa.yml +20 -0
  28. data/lib/gc/cities/kastoria.yml +11 -0
  29. data/lib/gc/cities/kavala.yml +14 -0
  30. data/lib/gc/cities/kefallonia.yml +8 -0
  31. data/lib/gc/cities/kerkira.yml +8 -0
  32. data/lib/gc/cities/kiklades.yml +60 -0
  33. data/lib/gc/cities/kilkis.yml +8 -0
  34. data/lib/gc/cities/korinthos.yml +20 -0
  35. data/lib/gc/cities/kozani.yml +14 -0
  36. data/lib/gc/cities/lakonia.yml +17 -0
  37. data/lib/gc/cities/larisa.yml +23 -0
  38. data/lib/gc/cities/lasithi.yml +11 -0
  39. data/lib/gc/cities/lefkada.yml +8 -0
  40. data/lib/gc/cities/lesvos.yml +11 -0
  41. data/lib/gc/cities/magnisia.yml +26 -0
  42. data/lib/gc/cities/messinia.yml +20 -0
  43. data/lib/gc/cities/pella.yml +14 -0
  44. data/lib/gc/cities/pieria.yml +11 -0
  45. data/lib/gc/cities/preveza.yml +11 -0
  46. data/lib/gc/cities/rethymno.yml +17 -0
  47. data/lib/gc/cities/rodopi.yml +14 -0
  48. data/lib/gc/cities/samos.yml +11 -0
  49. data/lib/gc/cities/serres.yml +23 -0
  50. data/lib/gc/cities/thesprotia.yml +11 -0
  51. data/lib/gc/cities/thessaloniki.yml +44 -0
  52. data/lib/gc/cities/trikala.yml +14 -0
  53. data/lib/gc/cities/xanthi.yml +14 -0
  54. data/lib/gc/cities/zakinthos.yml +5 -0
  55. data/lib/gc/city.rb +59 -57
  56. data/lib/gc/helpers/load_files.rb +13 -0
  57. data/lib/gc/states.rb +1 -55
  58. data/lib/gc/states.yml +155 -0
  59. data/lib/gc/version.rb +1 -1
  60. metadata +58 -56
  61. data/lib/gc/cities/ahaia.rb +0 -13
  62. data/lib/gc/cities/aitoloakarnania.rb +0 -15
  63. data/lib/gc/cities/argolida.rb +0 -12
  64. data/lib/gc/cities/arkadia.rb +0 -13
  65. data/lib/gc/cities/arta.rb +0 -12
  66. data/lib/gc/cities/attiki.rb +0 -74
  67. data/lib/gc/cities/boiotia.rb +0 -14
  68. data/lib/gc/cities/dodekanisa.rb +0 -23
  69. data/lib/gc/cities/drama.rb +0 -13
  70. data/lib/gc/cities/evros.rb +0 -13
  71. data/lib/gc/cities/eyrytania.rb +0 -11
  72. data/lib/gc/cities/eyvoia.rb +0 -16
  73. data/lib/gc/cities/florina.rb +0 -11
  74. data/lib/gc/cities/fokida.rb +0 -10
  75. data/lib/gc/cities/fthiotida.rb +0 -15
  76. data/lib/gc/cities/grevena.rb +0 -10
  77. data/lib/gc/cities/halkidiki.rb +0 -13
  78. data/lib/gc/cities/hania.rb +0 -15
  79. data/lib/gc/cities/hios.rb +0 -10
  80. data/lib/gc/cities/ilia.rb +0 -15
  81. data/lib/gc/cities/imathia.rb +0 -11
  82. data/lib/gc/cities/ioannina.rb +0 -16
  83. data/lib/gc/cities/irakleio.rb +0 -15
  84. data/lib/gc/cities/karditsa.rb +0 -14
  85. data/lib/gc/cities/kastoria.rb +0 -11
  86. data/lib/gc/cities/kavala.rb +0 -12
  87. data/lib/gc/cities/kefallonia.rb +0 -10
  88. data/lib/gc/cities/kerkira.rb +0 -10
  89. data/lib/gc/cities/kiklades.rb +0 -27
  90. data/lib/gc/cities/kilkis.rb +0 -10
  91. data/lib/gc/cities/korinthos.rb +0 -14
  92. data/lib/gc/cities/kozani.rb +0 -12
  93. data/lib/gc/cities/lakonia.rb +0 -13
  94. data/lib/gc/cities/larisa.rb +0 -15
  95. data/lib/gc/cities/lasithi.rb +0 -11
  96. data/lib/gc/cities/lefkada.rb +0 -10
  97. data/lib/gc/cities/lesvos.rb +0 -11
  98. data/lib/gc/cities/magnisia.rb +0 -16
  99. data/lib/gc/cities/messinia.rb +0 -14
  100. data/lib/gc/cities/pella.rb +0 -12
  101. data/lib/gc/cities/pieria.rb +0 -11
  102. data/lib/gc/cities/preveza.rb +0 -11
  103. data/lib/gc/cities/rethymno.rb +0 -13
  104. data/lib/gc/cities/rodopi.rb +0 -12
  105. data/lib/gc/cities/samos.rb +0 -11
  106. data/lib/gc/cities/serres.rb +0 -15
  107. data/lib/gc/cities/thesprotia.rb +0 -11
  108. data/lib/gc/cities/thessaloniki.rb +0 -22
  109. data/lib/gc/cities/trikala.rb +0 -12
  110. data/lib/gc/cities/xanthi.rb +0 -12
  111. data/lib/gc/cities/zakinthos.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97ad7a21d20352f00f41e8dc49659ec6085147eb68b120624e564735c93f6802
4
- data.tar.gz: e49cce42d3ecea4511e12387a2323aaa4e464c8bbdead1edec487beb1a759981
3
+ metadata.gz: 1beec587b0996a5f1c100566822380581442c78ec78caa49aaf5e30342a904b6
4
+ data.tar.gz: f16677c0c46d278ae2ad997b343cfcb9b41c5634b8fc92d832d6e91c294e64bc
5
5
  SHA512:
6
- metadata.gz: c3ea2a236ba800f52f35e9f9f64f6a52739ef763a2ade1baac9348c2c2422ae6a59178e403fc675221eb2bd69dbea427a4c88ae532640d490df17c70c4b2bc56
7
- data.tar.gz: 4f7873ed8478f4fabded08c1e7710bbc7024408a8056319731b43a43b392c41d86a90ab8064d9b71ac690526f0a3b8ec75fdb617e736957c6ff5ca2bad703fdb
6
+ metadata.gz: ce5ecd1157538a335abc75de8a1e5183ec8220eb43ffe55558bf5f254a20a29f411e22c708433efc03b9e5108f157b23e6beaf40c7da5492403a716ccdf67d15
7
+ data.tar.gz: 38ace64410f3e02b859a9ebbd960c1eacaf507fac49943b295df1dd9d12123d3438baaf9dd5f5d7b7d363776628e7c6aeda77de71bd93d7f059937ba90f966a9
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
- [![Build Status](https://travis-ci.org/AlexAvlonitis/rails-5-api.svg?branch=master)](https://travis-ci.org/AlexAvlonitis/rails-5-api)
1
+ [![Build Status](https://travis-ci.org/AlexAvlonitis/greek-cities.svg?branch=master)](https://travis-ci.org/AlexAvlonitis/greek-cities)
2
2
 
3
3
  # greek-cities ruby gem
4
- greek-cities gem includes all the states (nomous) of Greece and their biggest cities, displayed in greek.
4
+ Includes all the states (nomous) of Greece and their biggest cities, displayed in greek.
5
+ Easy way to populate Rails forms with greek cities.
5
6
 
6
7
  ## Install the gem
7
8
  ```ruby
data/lib/gc.rb CHANGED
@@ -1,9 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'gc/helpers/load_files'
3
4
  require 'gc/states'
4
5
  require 'gc/city'
5
6
 
6
7
  module GC
8
+ APP_PATH = File.dirname(__FILE__) + '/gc/'
9
+
7
10
  extend GC::City
8
11
  extend GC::States
9
12
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Πάτρα'
5
+ - 'patra-AHA'
6
+ -
7
+ - 'Χαλανδρίτσα'
8
+ - 'halandritsa-AHA'
9
+ -
10
+ - 'Κάτω Αχαία'
11
+ - 'kato-ahaia-AHA'
12
+ -
13
+ - 'Καλάβρυτα'
14
+ - 'kalavrita-AHA'
15
+ -
16
+ - 'Αίγιο'
17
+ - 'aigio-AHA'
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - Αγρίνιο'
5
+ - 'agrinio-AIT'
6
+ -
7
+ - 'Άκτιο - Βόνιτσα'
8
+ - 'aktio-vonitsa-AIT'
9
+ -
10
+ - 'Αμφιλοχία'
11
+ - 'amfilohia-AIT'
12
+ -
13
+ - 'Θέρμο'
14
+ - 'thermo-AIT'
15
+ -
16
+ - 'Μεσολόγγι'
17
+ - 'mesologgi-AIT'
18
+ -
19
+ - 'Ναύπακτος'
20
+ - 'naupaktos-AIT'
21
+ -
22
+ - 'Αστακός'
23
+ - 'astakos-AIT'
24
+
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Άργος - Μυκήνες'
5
+ - 'argos-mikines-ARG'
6
+ -
7
+ - 'Επίδαυρος'
8
+ - 'epidavros-ARG'
9
+ -
10
+ - 'Κρανίδι'
11
+ - 'kranidi-ARG'
12
+ -
13
+ - 'Ναύπλιο'
14
+ - 'nafplio-ARG'
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Τρίπολη'
5
+ - 'tripoli-ARK'
6
+ -
7
+ - 'Λεωνίδιο'
8
+ - 'leonidio-ARK'
9
+ -
10
+ - 'Δημητσάνα'
11
+ - 'dimitsana-ARK'
12
+ -
13
+ - 'Μεγαλόπολη'
14
+ - 'megalopoli-ARK'
15
+ -
16
+ - 'Βόρεια Κυνουρία'
17
+ - 'voreia-kinouria-ARK'
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Αρτα'
5
+ - 'arta-ART'
6
+ -
7
+ - 'Πέτα'
8
+ - 'peta-ART'
9
+ -
10
+ - 'Ανω Καλεντίνη'
11
+ - 'ano-kalentini-ART'
12
+ -
13
+ - 'Βουλγαρέλι'
14
+ - 'voulgareli-ART'
@@ -0,0 +1,200 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Νέα Φιλαδέλφεια'
5
+ - 'nea-filadelpheia-ATT'
6
+ -
7
+ - 'Χολαργός'
8
+ - 'holargos-ATT'
9
+ -
10
+ - 'Δάφνη'
11
+ - 'dafni-ATT'
12
+ -
13
+ - 'Κηφισιά'
14
+ - 'kifisia-ATT'
15
+ -
16
+ - 'Μελίσσια'
17
+ - 'melissia-ATT'
18
+ -
19
+ - 'Μοσχάτο'
20
+ - 'moshato-ATT'
21
+ -
22
+ - 'Ψυχικό'
23
+ - 'psihiko-ATT'
24
+ -
25
+ - 'Πεύκη'
26
+ - 'peuki-ATT'
27
+ -
28
+ - 'Αργυρούπολη'
29
+ - 'argiroupoli-ATT'
30
+ -
31
+ - 'Αγιοι Ανάργυροι'
32
+ - 'ag-anargiroi-ATT'
33
+ -
34
+ - 'Αθήνα'
35
+ - 'athina-ATT'
36
+ -
37
+ - 'Βύρωνας'
38
+ - 'vironas-ATT'
39
+ -
40
+ - 'Καλλιθέα'
41
+ - 'kalithea-ATT'
42
+ -
43
+ - 'Καισαριανή'
44
+ - 'kaisariani-ATT'
45
+ -
46
+ - 'Ηράκλειο'
47
+ - 'irakleio-ATT'
48
+ -
49
+ - 'Ηλιούπολη'
50
+ - 'ilioupoli-ATT'
51
+ -
52
+ - 'Ζωγράφου'
53
+ - 'zografou-ATT'
54
+ -
55
+ - 'Γαλάτσι'
56
+ - 'galatsi-ATT'
57
+ -
58
+ - 'Βριλήσσια'
59
+ - 'vrilissia-ATT'
60
+ -
61
+ - 'Μαρούσι'
62
+ - 'marousi-ATT'
63
+ -
64
+ - 'Άλιμος'
65
+ - 'alimos-ATT'
66
+ -
67
+ - 'Αιγάλεω'
68
+ - 'aigaleo-ATT'
69
+ -
70
+ - 'Ίλιο'
71
+ - 'ilio-ATT'
72
+ -
73
+ - 'Άγιος Δημήτριος'
74
+ - 'ag-dimitrios-ATT'
75
+ -
76
+ - 'Αγία Παρασκευή'
77
+ - 'ag-paraskevi-ATT'
78
+ -
79
+ - 'Αγία Βαρβάρα'
80
+ - 'ag-varvara-ATT'
81
+ -
82
+ - 'Γλυφάδα'
83
+ - 'glifada-ATT'
84
+ -
85
+ - 'Πετρούπολη'
86
+ - 'petroupoli-ATT'
87
+ -
88
+ - 'Χαλάνδρι'
89
+ - 'halandri-ATT'
90
+ -
91
+ - 'Χαϊδάρι'
92
+ - 'haidari-ATT'
93
+ -
94
+ - 'Περιστέρι'
95
+ - 'peristeri-ATT'
96
+ -
97
+ - 'Παλαιό Φάληρο'
98
+ - 'palaio-faliro-ATT'
99
+ -
100
+ - 'Νέα Ιωνία'
101
+ - 'nea-ionia-ATT'
102
+ -
103
+ - 'Μεταμόρφωση'
104
+ - 'metamorfosi-ATT'
105
+ -
106
+ - 'Νέα Σμύρνη'
107
+ - 'nea-smirni-ATT'
108
+ -
109
+ - 'Κερατσίνι'
110
+ - 'keratsini-ATT'
111
+ -
112
+ - 'Νίκαια'
113
+ - 'nikaia-ATT'
114
+ -
115
+ - 'Γαλατάς'
116
+ - 'galatas-ATT'
117
+ -
118
+ - 'Κύθηρα'
119
+ - 'kithira-ATT'
120
+ -
121
+ - 'Σαλαμίνα'
122
+ - 'salamina-ATT'
123
+ -
124
+ - 'Αγκίστρι'
125
+ - 'agkistri-ATT'
126
+ -
127
+ - 'Πειραιάς'
128
+ - 'peiraias-ATT'
129
+ -
130
+ - 'Πέραμα'
131
+ - 'perama-ATT'
132
+ -
133
+ - 'Κορυδαλλός'
134
+ - 'koridallos-ATT'
135
+ -
136
+ - 'Αίγινα'
137
+ - 'aigina-ATT'
138
+ -
139
+ - 'Σπέτσες'
140
+ - 'spetses-ATT'
141
+ -
142
+ - 'Πόρος'
143
+ - 'poros-ATT'
144
+ -
145
+ - 'Υδρα'
146
+ - 'udra-ATT'
147
+ -
148
+ - 'Ωρωπός'
149
+ - 'oropos-ATT'
150
+ -
151
+ - 'Μαραθώνας'
152
+ - 'marathonas-ATT'
153
+ -
154
+ - 'Ραφήνα'
155
+ - 'rafina-ATT'
156
+ -
157
+ - 'Αγιος Στέφανος'
158
+ - 'ag-stefanos-ATT'
159
+ -
160
+ - 'Αχαρνές'
161
+ - 'aharnes-ATT'
162
+ -
163
+ - 'Γέρακας'
164
+ - 'gerakas-ATT'
165
+ -
166
+ - 'Παιανία'
167
+ - 'paiania-ATT'
168
+ -
169
+ - 'Σπάτα'
170
+ - 'spata-ATT'
171
+ -
172
+ - 'Λαύριο'
173
+ - 'lavrio-ATT'
174
+ -
175
+ - 'Καλύβια'
176
+ - 'kalivia-ATT'
177
+ -
178
+ - 'Βούλα'
179
+ - 'voula-ATT'
180
+ -
181
+ - 'Μαρκόπουλο'
182
+ - 'markopoulo-ATT'
183
+ -
184
+ - 'Κορωπί'
185
+ - 'koropi-ATT'
186
+ -
187
+ - 'Κεραταία'
188
+ - 'kerataia-ATT'
189
+ -
190
+ - 'Ελευσίνα'
191
+ - 'eleusina-ATT'
192
+ -
193
+ - 'Μάνδρα'
194
+ - 'mandra-ATT'
195
+ -
196
+ - 'Μέγαρα'
197
+ - 'megara-ATT'
198
+ -
199
+ - 'Ασπρόπυργος'
200
+ - 'aspropirgos-ATT'
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Σχηματάρι'
5
+ - 'shimatari-BOI'
6
+ -
7
+ - 'Θήβα'
8
+ - 'thiva-BOI'
9
+ -
10
+ - 'Αλίαρτος'
11
+ - 'aliartos-BOI'
12
+ -
13
+ - 'Ορχομενός'
14
+ - 'orhomenos-BOI'
15
+ -
16
+ - 'Λιβαδειά'
17
+ - 'livadeia-BOI'
18
+ -
19
+ - 'Διστόμο - Αράχοβα - Αντίκυρα'
20
+ - 'distomo-arahova-antikira-BOI'
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Ρόδος'
5
+ - 'rodos-DOD'
6
+ -
7
+ - 'Κως'
8
+ - 'kos-DOD'
9
+ -
10
+ - 'Κάρπαθος'
11
+ - 'karpathos-DOD'
12
+ -
13
+ - 'Αγαθονήσι'
14
+ - 'agathonisi-DOD'
15
+ -
16
+ - 'Νίσυρος'
17
+ - 'nisiros-DOD'
18
+ -
19
+ - 'Πάτμος'
20
+ - 'patmos-DOD'
21
+ -
22
+ - 'Κάλυμνος'
23
+ - 'kalimnos-DOD'
24
+ -
25
+ - 'Λειψοί'
26
+ - 'leipsoi-DOD'
27
+ -
28
+ - 'Λέρος'
29
+ - 'leros-DOD'
30
+ -
31
+ - 'Κάσος'
32
+ - 'kasos-DOD'
33
+ -
34
+ - 'Τήλος'
35
+ - 'tilos-DOD'
36
+ -
37
+ - 'Σύμη'
38
+ - 'simi-DOD'
39
+ -
40
+ - 'Καστελλόριζο'
41
+ - 'kastellorizo-DOD'
42
+ -
43
+ - 'Χάλκη'
44
+ - 'halki-DOD'
45
+ -
46
+ - 'Αστυπάλαια'
47
+ - 'astipalaia-DOD'
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Δράμα'
5
+ - 'drama-DRA'
6
+ -
7
+ - 'Προσοτσάνη'
8
+ - 'porotsani-DRA'
9
+ -
10
+ - 'Παρανέστι'
11
+ - 'paranesti-DRA'
12
+ -
13
+ - 'Καλαμπάκι'
14
+ - 'kalampaki-DRA'
15
+ -
16
+ - 'Κάτω Νευροκόπι'
17
+ - 'kato-nevrokopi-DRA'
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Αλεξανδρούπολη'
5
+ - 'alexandroupoli-EVR'
6
+ -
7
+ - 'Σουφλί'
8
+ - 'soufli-EVR'
9
+ -
10
+ - 'Διδυμότειχο'
11
+ - 'didimoteiho-EVR'
12
+ -
13
+ - 'Ορεστιάδα'
14
+ - 'orestiada-EVR'
15
+ -
16
+ - 'Σαμοθράκη'
17
+ - 'samothraki-EVR'
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ -
4
+ - 'Καρπενήσι'
5
+ - 'karpenisi-EYR'
6
+ -
7
+ - 'Κερασοχώρι'
8
+ - 'kerasohori-EYR'
9
+ -
10
+ - 'Άγραφα'
11
+ - 'agrafa-EYR'