geomancer 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.asc +7 -7
- data.tar.gz.asc +7 -7
- data/CHANGELOG.md +6 -0
- data/lib/geomancer.rb +1 -1
- data/lib/geomancer/version.rb +1 -1
- data/spec/lat_and_long_spec.rb +4 -0
- metadata +1 -1
- metadata.gz.asc +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9211f50b9cb3f2a4871c37839fea77bbfca88c06
|
4
|
+
data.tar.gz: 2fd6b46d072638fa9179f673755387eb0db2ffe3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 842436ec298871a7e6f8aa185de6975abdf687ea764218e293c3266be769fd8414042f7f1da26859425fbcdda6fd9f9fff786a0faefee291accdc41dbe23491f
|
7
|
+
data.tar.gz: 95d0efd3dce81b8c57ef9b2fb6d69a0a1d77862ca02c257414f2b7b8a7ed2366d62e179f8a268091d9ec8ae9295106a1f2c6f522662e3cbfcab16b3654ff041e
|
checksums.yaml.gz.asc
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
|
3
3
|
Comment: GPGTools - http://gpgtools.org
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
5
|
+
iQEcBAABCgAGBQJTcl7PAAoJEP5F5V2hilTWnncH/jIEpg5qq1Xs2teBjM662H7o
|
6
|
+
ZpMjVcyEMrVaB8KQK5q8B/A1MxLktALLpyaUlZvDO+pkHRucmIwd1hlcKzDz6UeD
|
7
|
+
K4L5jVCP1kemg3qg0PAX1LL9dTiyvHeJJDEAeCroGZpSJjQFSGpAqULSr2SN8ytb
|
8
|
+
wAcSvH0oNSZPsRkZyV/Y4qr1c40rodWApDRlgVvFu2jZ0j0rynybvlG9kF7P3/Pb
|
9
|
+
6Rr5NoZDQG3VFHe90riTgASpqvahbKyy37D5Q0jLG5cgLRiOZRYoiTWFCQIC+juT
|
10
|
+
wgWleWZy+55wO5MtLYlU4ejAzI5w0KRjUeVmbhmJoJdjFIFPRFAOk1WMXWQbTyI=
|
11
|
+
=EUjH
|
12
12
|
-----END PGP SIGNATURE-----
|
data.tar.gz.asc
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
|
3
3
|
Comment: GPGTools - http://gpgtools.org
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
5
|
+
iQEcBAABCgAGBQJTcl7PAAoJEP5F5V2hilTWRDgH/2/6rWqZ8H/1U84oqtkk895s
|
6
|
+
LVkExNcY61R6OQDwJ18Q1I4IHslfuwuJw7fS2ke5Ld6h857AG/b1PM6lFY2kb20t
|
7
|
+
eoX3Tk9K+Gr+r4R874Rz0TkmyGt/Zd4EOoNu67Y8y8R6w/CB+KlWM6VOBJQdPiwD
|
8
|
+
OZH2AYGXde+OkfXDw6ziRjPp8OOieTLubJou+9JS8RcTsBzGIWJDHARnlq0ag5e9
|
9
|
+
8tNBZnN8HCLeSfi5sPphBYoAONP86LhFdyBPMiAJSH8XIn7uP3Egvhc5uQB9k9rY
|
10
|
+
3HZjJbpw7SNxsDnV/o6pONlMPvwnD8KtXcmPgfFAK1k8r6NpuCJ3Xv+IChkMEkA=
|
11
|
+
=s9sM
|
12
12
|
-----END PGP SIGNATURE-----
|
data/CHANGELOG.md
CHANGED
data/lib/geomancer.rb
CHANGED
@@ -21,7 +21,7 @@ module Geomancer
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
LAT_LONG_RE = /lat(itude)
|
24
|
+
LAT_LONG_RE = /lat(itude)?:?\s+(?<latitude>[\d\.\-]+)[\s,]+long(itude)?:?\s+(?<longitude>[\d\.\-]+)/
|
25
25
|
|
26
26
|
def self.extract_lat_and_long address
|
27
27
|
matches = LAT_LONG_RE.match(address)
|
data/lib/geomancer/version.rb
CHANGED
data/spec/lat_and_long_spec.rb
CHANGED
@@ -13,6 +13,10 @@ describe Geomancer do
|
|
13
13
|
Geomancer.extract_lat_and_long("lat: 41.9040, long: 12.4530").should_not be_nil
|
14
14
|
end
|
15
15
|
|
16
|
+
it "doesn't require colons" do
|
17
|
+
Geomancer.extract_lat_and_long("latitude 41.9040, longitude 12.4530").should_not be_nil
|
18
|
+
end
|
19
|
+
|
16
20
|
it "doesn't extract only latitude" do
|
17
21
|
Geomancer.extract_lat_and_long("lat: 41.9040").should be_nil
|
18
22
|
end
|
metadata
CHANGED
metadata.gz.asc
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
|
3
3
|
Comment: GPGTools - http://gpgtools.org
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
5
|
+
iQEcBAABCgAGBQJTcl7OAAoJEP5F5V2hilTWdj4IAK+JT5pxvfjkiYIPGS6c5SAN
|
6
|
+
zHlEXQbGCjsa2qu7R1PWjrLKlbJOC8l7sNvtCr2ejZHECW+vurEWwS8aG5vzHvTC
|
7
|
+
aAiv879WJyVM4OvUaEa1jHQ/dDiuCESeSc28DQtvuLAp+Xv7lxAKU/LzIjwGQUX0
|
8
|
+
iJWC39vddSKQhsO2anBX2e7ECe1FyKSBN8nru/MBWeH/s/Rm4pTlvpyKnUClO5rN
|
9
|
+
Nf49vy0C590bhDb4zWbKPEnTiAMk8yKbDhzUl6Skb/l3bKtvFG5TAg0z4dv+6A6w
|
10
|
+
yEZVT0/+MuyEfEeIMWqllra/0cwUXWwAm8StqAbqtQqKWb4Y7mqpSClmilfdi6A=
|
11
|
+
=aUCb
|
12
12
|
-----END PGP SIGNATURE-----
|