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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eefb06205d0d05df1e1687cef51d978ee4f94e3c
4
- data.tar.gz: d9ee2fba66a67084baed6120f011a1479a16c0d7
3
+ metadata.gz: 9211f50b9cb3f2a4871c37839fea77bbfca88c06
4
+ data.tar.gz: 2fd6b46d072638fa9179f673755387eb0db2ffe3
5
5
  SHA512:
6
- metadata.gz: e6f34ffce78af9b62b245536dbd2c103987e014bc40067589908eb0411295ea6720db68fb4723b80de68c582e72a1e70b09a54bdb756459689fd5963b0700563
7
- data.tar.gz: 4e869fb98950958cfa250f66283783e1a204aee4d6c71cbcfb4731d89669102baea2196b49478afab06bf3e6a5e3b49bd279ce840993f7da2593e36a5b9ac9f2
6
+ metadata.gz: 842436ec298871a7e6f8aa185de6975abdf687ea764218e293c3266be769fd8414042f7f1da26859425fbcdda6fd9f9fff786a0faefee291accdc41dbe23491f
7
+ data.tar.gz: 95d0efd3dce81b8c57ef9b2fb6d69a0a1d77862ca02c257414f2b7b8a7ed2366d62e179f8a268091d9ec8ae9295106a1f2c6f522662e3cbfcab16b3654ff041e
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABCgAGBQJTclGPAAoJEP5F5V2hilTW9lEH/j8VyHMYPbNXg4Biss/nWxvN
6
- bc2ezN1WTWHU4l95Ssoj0NPat2hqyF1aEQkV63u6C5Dk4y+U0wKHH+hA8rj/K4SS
7
- 9IusNj9AJg38hzYcoSJMpN1+Yl8unU6mb7ZerX7uA+fXtp2y2gqzMgQq/aZsRIjj
8
- LPv0zscXs/1EdOz6XCCxlynYLJJPwspJjlq+W0aoGEQozvmFZFFgtHcxshftkvXe
9
- DBybusWom/x7U5CJkS+oTyYbfd28pEg10OlaCPcMfqKdQNaxdz1+U4SrBgLXpEQ1
10
- PF9R325wAuDfeVHZQe28k7LsuRHjd6QuxrmE/2p5RCdLNW/i4KYBmIWnhR3ZQ0Q=
11
- =iGB2
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
- iQEcBAABCgAGBQJTclGPAAoJEP5F5V2hilTWfIgH/3g+u5l6XWzkALF4zOxzbu0Q
6
- 9Nxz/beoG6ToP5gN9IBHLKDKzBMQrnLyzSIkRLvnnT+M0xVFWUEBKVS5wpU1zJs0
7
- wA2jSkC1k8SqbxW5kDovr47S8GhY3ytJLwZBMorGBURklF53H4UUiqkTNSJqktuy
8
- WL/X39xEgTdl1EQmjqdWPJV4wEsLlRBgw7sDGKILVn7Xh94Nqb4au9tryqQQqs5j
9
- aS8UyDAOXtzQRHOU3kXgOeuAdDXdv5S8891gg2HdLO3WolnAEoh/VoMzcAwOQnuX
10
- 8u/XzXC3HKAFR5as7fA3UIhDu6IYeQYJwtDQIorkyn9nEUaBRakvwathbA6DfWE=
11
- =8YHO
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-----
@@ -1,3 +1,9 @@
1
+ 0.7.1 - 2014-05-13
2
+ ==================
3
+
4
+ * Don't require ':' in lat/long searches since that conflicts with
5
+ some WebKite filter encodings.
6
+
1
7
  0.7.0 - 2014-05-13
2
8
  ==================
3
9
 
@@ -21,7 +21,7 @@ module Geomancer
21
21
  end
22
22
  end
23
23
 
24
- LAT_LONG_RE = /lat(itude)?:\s+(?<latitude>[\d\.\-]+)[\s,]+long(itude)?:\s+(?<longitude>[\d\.\-]+)/
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)
@@ -1,3 +1,3 @@
1
1
  module Geomancer
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geomancer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant T. Olson
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
- iQEcBAABCgAGBQJTclGPAAoJEP5F5V2hilTWIWYH/3PCruEHKd9uZnSPFO+C1Q+3
6
- ejuzn/lgyg8L9de4XPOVcRH7Xn6f81NBTQHhLOobhNoI/5A+KxgThuy1RsSGDoLu
7
- EqK1qzNCyYpuIwhlhebE6ya4W11UPrVYfPIYNf+QZcIiWHihRfoH1tu7ePw56VEi
8
- mmolO3SUxT3CRI1qR966ycZTtauGT6OdLt9nPpgpgjXjBAN0l4qFrtK1RKdI+mIZ
9
- DzauuMLQmosFbSnjRhAAb+dxXiGCuco02mTG/1zWAoM7Gk4JB35QySmvvbmBUb/d
10
- 6jwskjtGTfyLWlQ8+W9Mfn9fVWr2jy9zZahjDTI58p7vUxYy4uEYfB0nv91gE18=
11
- =mR7X
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-----