uk_postcode 2.1.0 → 2.1.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: b5be9121c81ffedda98694f2c1fb84e769047d7c
4
- data.tar.gz: 2f37c078760e05e293694dac94de9b98aac4226a
3
+ metadata.gz: 6c70784b4779bb09c875ef2471049649378507fd
4
+ data.tar.gz: acb99d2b52ce583fcbc914a5e912314358f876db
5
5
  SHA512:
6
- metadata.gz: 88fd9a5d8b63c7f3325263708d6022b0f16209de37172b184ab014a0d75d575bf5d37159e730b2faee3c5832659a604d0aabb8123bda3175d7eb90464eb56d04
7
- data.tar.gz: 35cf99808de33ec16f8e4a93b5c4e8efe1c0a9a88f14e0502696254b97ab7b0b7318aee102157c0d3de6d284775f6d694ada8fcf69068a3dcbee3058155f82e5
6
+ metadata.gz: 86fed90dce43e75082b7cd82746d96bbf53f7582b340952dfe46a2e8e1c2377457d86c6d0fa2aee96ddc9a2959b33077590932a7795a2c076929fa9c16888aa6
7
+ data.tar.gz: 481117a9ef10e65feb984fee76977f523d69d040e23356b18dfcaed560411a3726a6aa3c4de6c4de392a86ab42eb7a372e84a71115388193797c2e68eb2641c1
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ 2.1.1 (2016-08-28)
2
+
3
+ * Updated country lookup using latest ONS Postcode Database (May 2016).
4
+
1
5
  2.1.0 (2015-03-21)
2
6
 
3
7
  * Updated country lookup using latest ONS Postcode Database (November 2014).
data/README.md CHANGED
@@ -153,7 +153,7 @@ Specifically:
153
153
  In your `Gemfile`:
154
154
 
155
155
  ```ruby
156
- gem "uk_postcode", "~> 2.0.0.alpha"
156
+ gem "uk_postcode", "~> 2.1.0"
157
157
  ```
158
158
 
159
159
  ## Testing
@@ -1,8 +1,8 @@
1
1
  module UKPostcode
2
2
  COUNTRY_LOOKUP = {
3
- england: /^(?:AL|B[123456789ABDHLNRS]|C(?:A(?:1|2|3|4|5|6(?:4|5(?:G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]|T[ABDEFGHJLNPQWY]|U[AJLNPR]|W|Y)|6|7|8)|2(?:2(?:5(?:A|B|D|E|H|J|L|N|W[ABPZ])|6(?:A|B|D|E[NPRSTUWXYZ]|F|G|H[AEFLNPRSTUWXYZ]|J[ABDEFGHJLNPQRSTWYZ]|L[ABDEFHJPRST]|N[ABDEFGHJLNPQRSXYZ]|P|Q[ABDEFGHJLNPQRSTUWXZ]|R|S|T|U|W[DFG]|X|Y))|56|0|1(?:0|1|7|8(?:A|B|D[ABDEFGHJPQRSTUWXYZ]|E[ABDEFGHJLNQSTUXYZ]|F|G|H|J[ABDEFGHJZ]|L[ADEFGHJLNPQRSTUWXYZ]|N|P|Q|R|S|T|W|X|Z)|9)|3|4)|5(?:0J[JLN]|9(?:A[RSTUWXYZ]|B[ABDEFGHJLNPQSTUW]|EU|FB|GN|LD|SB))|78PS|95J[PW])))/,
6
6
  channel_islands: /^(?:GY|J)/,
7
7
  isle_of_man: /^IM/,
8
8
  northern_ireland: /^BT/
@@ -1,3 +1,3 @@
1
1
  module UKPostcode
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uk_postcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Battley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-21 00:00:00.000000000 Z
11
+ date: 2016-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.2.2
80
+ rubygems_version: 2.4.5.1
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: UK postcode parsing and validation