geogov 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Geogov
16
16
  if self.lat and self.lon
17
17
  return FuzzyPoint.new(self.lat, self.lon, :point)
18
18
  end
19
-
19
+
20
20
  if self.postcode
21
21
  district = postcode.split(" ")[0]
22
22
  district_centre = Geogov.centre_of_district(district)
@@ -52,8 +52,6 @@ module Geogov
52
52
  if ['COP', 'LBW', 'LGE', 'MTW', 'UTE', 'UTW', 'DIW'].include?(area_type)
53
53
  return 'ward'
54
54
  elsif ['CTY', 'CED'].include?(area_type)
55
-
56
- git
57
55
  return 'council' # county
58
56
  elsif ['DIS', 'LBO'].include?(area_type)
59
57
  return 'council' # district
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geogov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-12-20 00:00:00.000000000Z
13
+ date: 2012-01-06 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &70306547782860 !ruby/object:Gem::Requirement
17
+ requirement: &70264753872460 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.9.0
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *70306547782860
25
+ version_requirements: *70264753872460
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: mocha
28
- requirement: &70306547781900 !ruby/object:Gem::Requirement
28
+ requirement: &70264753871900 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 0.9.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70306547781900
36
+ version_requirements: *70264753871900
37
37
  description: Geolocation and utilities for UK Government single domain
38
38
  email:
39
39
  - ben@alphagov.co.uk