spain_zip_codes 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ab39791cd13b82fee3c8fed7ce20f6e5e6c24a1
4
- data.tar.gz: 3b92e71db4e7383b46553cfb883414e432216e90
3
+ metadata.gz: 9ed2e22b9c395fb36ab5b760db5b6032c83b9765
4
+ data.tar.gz: 7dcc056643166913c76d2401744661e1180380ba
5
5
  SHA512:
6
- metadata.gz: 887b9bb89f739a5d95ff8f82c25b40068188b8e9a4265d0ebda51b88227fdd29f2db8aec10a89ebeebcd2e01fe9b237008dcf0ff1d73fe7cb480ae9c2253ccac
7
- data.tar.gz: 6a5a2c182e614c344bda25f6995d56f3a1595557b172448f61cdfba5a77800dfa72d3c84aa7e3718c61c7356950de7f35c0f1ab3120ce4426b0aafce36a715c7
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 = %w(lib spain_zip_codes data zip_locations_es.yml).join('/')
8
+ SOURCE_YAML = File.expand_path('../data/zip_locations_es.yml', __FILE__)
9
9
  LOCATIONS = YAML.load_file(SOURCE_YAML)['locations']
10
- SLUGS_YAML = %w(lib spain_zip_codes data slug_locations_es.yml).join('/')
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 = %w(lib spain_zip_codes data zip_provinces_es.yml).join('/')
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)
@@ -1,3 +1,3 @@
1
1
  module SpainZipCodes
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spain_zip_codes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luismi Ramírez