spain_zip_codes 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spain_zip_codes/locationer.rb +2 -2
- data/lib/spain_zip_codes/provincer.rb +1 -1
- data/lib/spain_zip_codes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ed2e22b9c395fb36ab5b760db5b6032c83b9765
|
4
|
+
data.tar.gz: 7dcc056643166913c76d2401744661e1180380ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85bfd9aa01e3db1bbb84425e66f7706c2773af9019f044b414cbfab74d6f449375d922e7ee13ee22405394fdd9111c6efcb4640521ef56a9b639dfef61289655
|
7
|
+
data.tar.gz: 97d4989a416f7e45e1c3687314c566a4cc7a66b0ce1517b6fecac1be9b8372eb96feceda6d7ac5e147c8819d5ef81f4d103ec16a772ad385ea237b223cc202d0
|
@@ -5,9 +5,9 @@ require 'yaml'
|
|
5
5
|
|
6
6
|
module SpainZipCodes
|
7
7
|
class Locationer
|
8
|
-
SOURCE_YAML =
|
8
|
+
SOURCE_YAML = File.expand_path('../data/zip_locations_es.yml', __FILE__)
|
9
9
|
LOCATIONS = YAML.load_file(SOURCE_YAML)['locations']
|
10
|
-
SLUGS_YAML =
|
10
|
+
SLUGS_YAML = File.expand_path('../data/slug_locations_es.yml', __FILE__)
|
11
11
|
SLUGS_LOCS = YAML.load_file(SLUGS_YAML)['locations']
|
12
12
|
|
13
13
|
def self.to_location(zip)
|
@@ -2,7 +2,7 @@ require 'yaml'
|
|
2
2
|
|
3
3
|
module SpainZipCodes
|
4
4
|
class Provincer
|
5
|
-
SOURCE_YAML =
|
5
|
+
SOURCE_YAML = File.expand_path('../data/zip_provinces_es.yml', __FILE__)
|
6
6
|
PROVINCES = YAML.load_file(SOURCE_YAML).fetch('provinces')
|
7
7
|
|
8
8
|
def self.to_province(zip)
|