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 +4 -4
- data/bin/update +1 -1
- data/lib/polish_postal_codes.rb +1 -1
- data/lib/polish_postal_codes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3511881b508ea87d1d8853f692801314b5b664b2
|
4
|
+
data.tar.gz: 3db033e8c45ca7ac4ace32fb35e2dcb4d6beb577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/polish_postal_codes.rb
CHANGED
@@ -3,7 +3,7 @@ require 'pstore'
|
|
3
3
|
|
4
4
|
module PolishPostalCodes
|
5
5
|
class Info
|
6
|
-
DATA = PStore.new('
|
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] }
|
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.
|
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-
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|