my_society-map_it 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module MySociety
2
2
  module MapIt
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ module MySociety
19
19
 
20
20
  module LocalAuthorityFinder
21
21
  LOCAL_AUTHORITY_TYPE_CODES = %w(
22
- DIS MTD UTA LBO CTY LGD
22
+ DIS MTD UTA LBO CTY LGD COI
23
23
  ).map { |c| c.freeze }.freeze
24
24
 
25
25
  def local_authority
@@ -29,6 +29,8 @@ module MySociety
29
29
  LOCAL_AUTHORITY_TYPE_CODES.include? la['type']
30
30
  end
31
31
 
32
+ return if local_authority_info.nil?
33
+
32
34
  LocalAuthority.new local_authority_info
33
35
  rescue
34
36
  nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_society-map_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: