greek-cities 1.0.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +14 -2
- data/lib/greek-cities/cities/ahaia.rb +1 -2
- data/lib/greek-cities/cities/aitoloakarnania.rb +1 -1
- data/lib/greek-cities/cities/argolida.rb +1 -1
- data/lib/greek-cities/cities/arkadia.rb +1 -1
- data/lib/greek-cities/cities/arta.rb +1 -1
- data/lib/greek-cities/cities/attiki.rb +2 -2
- data/lib/greek-cities/cities/boiotia.rb +1 -1
- data/lib/greek-cities/cities/dodekanisa.rb +3 -3
- data/lib/greek-cities/cities/drama.rb +1 -1
- data/lib/greek-cities/cities/evros.rb +2 -2
- data/lib/greek-cities/cities/eyrytania.rb +1 -1
- data/lib/greek-cities/cities/eyvoia.rb +1 -1
- data/lib/greek-cities/cities/florina.rb +1 -1
- data/lib/greek-cities/cities/fokida.rb +1 -1
- data/lib/greek-cities/cities/fthiotida.rb +2 -2
- data/lib/greek-cities/cities/grevena.rb +1 -1
- data/lib/greek-cities/cities/halkidiki.rb +2 -2
- data/lib/greek-cities/cities/hania.rb +1 -1
- data/lib/greek-cities/cities/hios.rb +1 -1
- data/lib/greek-cities/cities/ilia.rb +1 -1
- data/lib/greek-cities/cities/imathia.rb +1 -1
- data/lib/greek-cities/cities/ioannina.rb +1 -1
- data/lib/greek-cities/cities/irakleio.rb +1 -1
- data/lib/greek-cities/cities/karditsa.rb +1 -1
- data/lib/greek-cities/cities/kastoria.rb +1 -2
- data/lib/greek-cities/cities/kavala.rb +1 -1
- data/lib/greek-cities/cities/kefallonia.rb +1 -1
- data/lib/greek-cities/cities/kerkira.rb +1 -1
- data/lib/greek-cities/cities/kiklades.rb +1 -1
- data/lib/greek-cities/cities/kilkis.rb +1 -1
- data/lib/greek-cities/cities/korinthos.rb +1 -1
- data/lib/greek-cities/cities/kozani.rb +1 -1
- data/lib/greek-cities/cities/lakonia.rb +1 -1
- data/lib/greek-cities/cities/larisa.rb +1 -1
- data/lib/greek-cities/cities/lasithi.rb +1 -1
- data/lib/greek-cities/cities/lefkada.rb +1 -1
- data/lib/greek-cities/cities/lesvos.rb +1 -1
- data/lib/greek-cities/cities/magnisia.rb +1 -1
- data/lib/greek-cities/cities/messinia.rb +1 -1
- data/lib/greek-cities/cities/pella.rb +1 -1
- data/lib/greek-cities/cities/pieria.rb +1 -1
- data/lib/greek-cities/cities/preveza.rb +1 -1
- data/lib/greek-cities/cities/rethymno.rb +1 -1
- data/lib/greek-cities/cities/rodopi.rb +1 -1
- data/lib/greek-cities/cities/samos.rb +1 -1
- data/lib/greek-cities/cities/serres.rb +1 -1
- data/lib/greek-cities/cities/thesprotia.rb +1 -1
- data/lib/greek-cities/cities/thessaloniki.rb +1 -1
- data/lib/greek-cities/cities/trikala.rb +1 -1
- data/lib/greek-cities/cities/xanthi.rb +1 -1
- data/lib/greek-cities/cities/zakinthos.rb +1 -1
- data/lib/greek-cities/states.rb +2 -1
- data/lib/greek-cities/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 03c3ab17bdde975cdb6ec001deb300261e770d63d69a3bd2f511bffc9b64fd6f
|
4
|
+
data.tar.gz: cbf22508f103c6e1825708b5623b9ea2312648f35ed5a46324d38de1137f855d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 671d84dcf4bb56ee53940b8c7775d0fb7ae5e66bb4aff8914a03beae2c87c51695998e4550ff9ba06a308c9891025b111673fbe5c56b9a62f4b0ba5a8cd9ac89
|
7
|
+
data.tar.gz: 08c8b513753ae86d3e7be029554b5fc94078a15b04c91f3c132eeca6999fc6fd3714d99a236ef4adfa94df05b24c3d923247c11982e841b33b618e93da76ba93
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@ greek-cities gem includes all the states (nomous) of Greece and their biggest ci
|
|
3
3
|
|
4
4
|
## Install the gem
|
5
5
|
```ruby
|
6
|
-
gem 'greek-cities'
|
6
|
+
gem 'greek-cities'
|
7
7
|
```
|
8
8
|
|
9
9
|
## List of all states
|
@@ -19,6 +19,18 @@ GC.states
|
|
19
19
|
GC.cities("arg")
|
20
20
|
# => [["Άργος - Μυκήνες", "argos-mikines-ARG"], ["Επίδαυρος", "epidavros-ARG"], ["Κρανίδι", "kranidi-ARG"], ["Ναύπλιο", "nafplio-ARG"]]
|
21
21
|
|
22
|
+
```
|
23
|
+
|
24
|
+
## Fetch a state name in Greek
|
25
|
+
```ruby
|
26
|
+
GC.get_state_name('ait')
|
27
|
+
# => "Αιτωλοακαρνανίας"
|
28
|
+
```
|
29
|
+
|
30
|
+
## Fetch a city name in Greek
|
31
|
+
```ruby
|
32
|
+
GC.get_city_name('att', 'holargos-ATT')
|
33
|
+
# => "Χολαργός"
|
22
34
|
```
|
23
35
|
*Enter a state code as an argument. It's not case sensitive, you could enter "ARG".*
|
24
36
|
|
@@ -43,4 +55,4 @@ GC.cities("arg")
|
|
43
55
|
```
|
44
56
|
|
45
57
|
## greek-cities License
|
46
|
-
greek-cities is an open source project by Alex Avlonitis with
|
58
|
+
greek-cities is an open source project by Alex Avlonitis with an MIT license.
|
@@ -3,10 +3,9 @@ module GreekCities
|
|
3
3
|
AHAIA = [
|
4
4
|
['Πάτρα', 'patra-AHA'],
|
5
5
|
['Χαλανδρίτσα', 'halandritsa-AHA'],
|
6
|
-
['Χαλανδρίτσα', 'halandritsa-AHA'],
|
7
6
|
['Κάτω Αχαία', 'kato-ahaia-AHA'],
|
8
7
|
['Καλάβρυτα', 'kalavrita-AHA'],
|
9
8
|
['Αίγιο', 'aigio-AHA']
|
10
|
-
].freeze
|
9
|
+
].freeze
|
11
10
|
end
|
12
11
|
end
|
@@ -62,11 +62,11 @@ module GreekCities
|
|
62
62
|
['Βούλα', 'voula-ATT'],
|
63
63
|
['Μαρκόπουλο', 'markopoulo-ATT'],
|
64
64
|
['Κορωπί', 'koropi-ATT'],
|
65
|
-
['Κεραταία', '
|
65
|
+
['Κεραταία', 'kerataia-ATT'],
|
66
66
|
['Ελευσίνα', 'eleusina-ATT'],
|
67
67
|
['Μάνδρα', 'mandra-ATT'],
|
68
68
|
['Μέγαρα', 'megara-ATT'],
|
69
69
|
['Ασπρόπυργος', 'aspropirgos-ATT']
|
70
|
-
].freeze
|
70
|
+
].freeze
|
71
71
|
end
|
72
72
|
end
|
@@ -7,15 +7,15 @@ module GreekCities
|
|
7
7
|
['Αγαθονήσι', 'agathonisi-DOD'],
|
8
8
|
['Νίσυρος', 'nisiros-DOD'],
|
9
9
|
['Πάτμος', 'patmos-DOD'],
|
10
|
-
['Κάλυμνος', '
|
10
|
+
['Κάλυμνος', 'kalimnos-DOD'],
|
11
11
|
['Λειψοί', 'leipsoi-DOD'],
|
12
12
|
['Λέρος', 'leros-DOD'],
|
13
|
-
['Κάσος', '
|
13
|
+
['Κάσος', 'kasos-DOD'],
|
14
14
|
['Τήλος', 'tilos-DOD'],
|
15
15
|
['Σύμη', 'simi-DOD'],
|
16
16
|
['Καστελλόριζο', 'kastellorizo-DOD'],
|
17
17
|
['Χάλκη', 'halki-DOD'],
|
18
18
|
['Αστυπάλαια', 'astipalaia-DOD']
|
19
|
-
].freeze
|
19
|
+
].freeze
|
20
20
|
end
|
21
21
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module GreekCities
|
2
2
|
module Cities
|
3
3
|
FTHIOTIDA = [
|
4
|
-
['Κάτω Τιθορέα', '
|
4
|
+
['Κάτω Τιθορέα', 'kato-tithorea-FTH'],
|
5
5
|
['Αταλάντη', 'atalanti-FTH'],
|
6
6
|
['Δομοκό', 'domoko-FTH'],
|
7
7
|
['Καμένα Βούρλα', 'kamena-vourla-FTH'],
|
8
8
|
['Στυλίδα', 'stilida-FTH'],
|
9
9
|
['Λαμία', 'lamia-FTH'],
|
10
10
|
['Σπερχειάδα', 'sperheiada-FTH']
|
11
|
-
].freeze
|
11
|
+
].freeze
|
12
12
|
end
|
13
13
|
end
|
data/lib/greek-cities/states.rb
CHANGED
@@ -39,6 +39,7 @@ module GreekCities
|
|
39
39
|
['Ξάνθης', 'xan'],
|
40
40
|
['Πέλλας', 'pel'],
|
41
41
|
['Πιερίας', 'pie'],
|
42
|
+
['Πρεβέζης', 'pre'],
|
42
43
|
['Ρεθύμνης', 'ret'],
|
43
44
|
['Ροδόπης', 'rod'],
|
44
45
|
['Σάμου', 'sam'],
|
@@ -50,5 +51,5 @@ module GreekCities
|
|
50
51
|
['Χαλκιδικής', 'hal'],
|
51
52
|
['Χανίων', 'han'],
|
52
53
|
['Χίου', 'hio'],
|
53
|
-
].freeze
|
54
|
+
].freeze
|
54
55
|
end
|
data/lib/greek-cities/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: greek-cities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Avlonitis
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-09-30 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description: A gem with the most complete city/states list of Greece diplayed in Greek
|
14
28
|
email: avlonitis@msn.com
|
15
29
|
executables: []
|
@@ -93,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
107
|
version: '0'
|
94
108
|
requirements: []
|
95
109
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.7.4
|
97
111
|
signing_key:
|
98
112
|
specification_version: 4
|
99
113
|
summary: A list of all greek states and cities
|