uk_postcode 2.1.5 → 2.1.6

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
  SHA256:
3
- metadata.gz: 49d4df7884c110611433847c5f4b1bda52dba01350a344e5679e6975de1c14ad
4
- data.tar.gz: 1a7f5b5256bd9601f56aac901a3ec0d3af3103ad9ed64298ad2ded5bc6945fd4
3
+ metadata.gz: 3fc2180d7d51d32fcf02effa702a920965d1280ad63f472ab6acd38fef770011
4
+ data.tar.gz: 88b301fb81f0eb13c603446cf2b1c2edfb556d2eeeecb280defcf99579f26c21
5
5
  SHA512:
6
- metadata.gz: 6d8620f49c0ccda9f941dfb17941c01e365ee757c0a4d8393b81628170a96387cc6f5d9d479796af51902449a6c3ee9f6a55130d6a3c28a8e6b40f369701fd8f
7
- data.tar.gz: c60d96b68fb8a42907812cc02178ab280c7b36da466f8b43be181176bbbb7127143f3c55f90bfed0b52a69820c4af567f13daa741fb7b9471f4f2cc303b329bc
6
+ metadata.gz: 4e6d303560af8c9a54ce1394fbd20c95981f6315fdc5bf76c7cb6974ab7d11b902ab20bcdc579f7dbcc8c5c46cfce46ac8475f4394192a281d64694862280050
7
+ data.tar.gz: 0a94662bb0db1cdfe8a19cb500f66a9bdccbfd2d1a0d586fad8906453f08abdd06a78a91d264b213a5d13eada90724d8229daae7c7663e8e0455c647c602d5e1
data/CHANGES CHANGED
@@ -1,4 +1,12 @@
1
- 2.1.3 (2019-05-31)
1
+ 2.1.6 (2020-08-26)
2
+
3
+ * Updated country lookup using latest ONS Postcode Database (May 2020).
4
+
5
+ 2.1.5 (2019-10-08)
6
+
7
+ * Updated country lookup using latest ONS Postcode Database (Oct 2019).
8
+
9
+ 2.1.4 (2019-05-31)
2
10
 
3
11
  * Updated country lookup using latest ONS Postcode Database (May 2019).
4
12
 
@@ -1,8 +1,8 @@
1
1
  module UKPostcode
2
2
  COUNTRY_LOOKUP = {
3
- england: /^(?:AL|B[123456789ABDHLNRS]|C(?:A(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version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Battley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-08 00:00:00.000000000 Z
11
+ date: 2020-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake