postkode 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/postkode.rb +2 -2
- 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: de69fab27624f4646e6d4aa3162db94ddae7e85d
|
4
|
+
data.tar.gz: 428bcf1476e0bc90b60719aad7f1b55ac7ee8f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44fea1f84f34e81998a236339d6fb649929b3e5246846498a7c50e1648a36ce9ca47036378a0d8462eb7f3dcb25588cae2d6b1b494a3daab23d2e34d8c301ad2
|
7
|
+
data.tar.gz: b31f22a173ba03b960f7d03370c4ed676846b62dc5b133070ac5a16e20e2b60c23b109955625bcbd40be67ae099e8000e1745268a89141e9a83bf1af5e56406c
|
data/lib/postkode.rb
CHANGED
@@ -52,12 +52,12 @@ class Postkode
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def self.get_outcode(string)
|
55
|
-
found =
|
55
|
+
found = Postkode.validate(string, true)
|
56
56
|
found ? found[0] : nil
|
57
57
|
end
|
58
58
|
|
59
59
|
def self.get_inward(string)
|
60
|
-
found =
|
60
|
+
found = Postkode.validate(string, true)
|
61
61
|
found ? found[1] : nil
|
62
62
|
end
|
63
63
|
|