polish_postal_codes 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 454c84acb6a13c24dd20140a25c224c2c5a23990
4
- data.tar.gz: 94e78adaba8c2fd8fdcbaadefe60e76b948883b3
3
+ metadata.gz: 3511881b508ea87d1d8853f692801314b5b664b2
4
+ data.tar.gz: 3db033e8c45ca7ac4ace32fb35e2dcb4d6beb577
5
5
  SHA512:
6
- metadata.gz: 12c8f9f094cbcc5276f4141657c87dc800cd258ab206ad421e6a7499170692bd822ab32b3c1d39f4964edd7950cc6ca3d225181e62bcb360ae59e05fe4c09eea
7
- data.tar.gz: 9f8af4b93a8bfcd65a595a7cb53d121056e4d6c574b2c3cbe29494ea3b1aa822982efb5839983f1e3fd3f5af2153e0b969f4d2b7240bc1427d134d4014d34a5a
6
+ metadata.gz: a9fd405bb5c3b0f919d7b2706fdb42f207d5b69c9d6cbd3c3fdb0483ecb42cad2f2d6405c69a8edfab1a9ee88e28fd4249d74450dff0ce37ddc4f130488010b6
7
+ data.tar.gz: 70762eb5a71ba365f11d936ff1827d5b181c345fb15b4b56d1ceff7fbafedb39a5528104f8ace626191518b1b8109636c7db759863b8544f644f846fd84dab1d
data/bin/update CHANGED
@@ -6,7 +6,7 @@ require 'tempfile'
6
6
 
7
7
  puts 'downloading...'
8
8
 
9
- data = PStore.new('lib/polish_postal_codes.pstore')
9
+ data = PStore.new(File.expand_path('../../lib/polish_postal_codes.pstore', __FILE__))
10
10
  tmp_file = Tempfile.new('spispna.pdf')
11
11
  tmp_file.write(open('https://www.poczta-polska.pl/hermes/uploads/2013/11/spispna.pdf').read)
12
12
  tmp_file.flush
@@ -3,7 +3,7 @@ require 'pstore'
3
3
 
4
4
  module PolishPostalCodes
5
5
  class Info
6
- DATA = PStore.new('lib/polish_postal_codes.pstore')
6
+ DATA = PStore.new(File.expand_path('../polish_postal_codes.pstore', __FILE__))
7
7
 
8
8
  def self.get(postal_code)
9
9
  DATA.transaction(true) { |postal_codes| postal_codes[postal_code] }
@@ -1,3 +1,3 @@
1
1
  module PolishPostalCodes
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polish_postal_codes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Baćkowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-16 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec