validates_zipcode 0.0.14 → 0.0.15

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: b2216175aca0ea4e3ab22deabb11c011b15f2c89
4
- data.tar.gz: 07f0f66a322441d2af66dcfbb4cf07233d00ddbb
3
+ metadata.gz: a52c03060445364ad731c1a12c1445152093397e
4
+ data.tar.gz: d8f1838235ce5724d54635f04be4a69a013ab70c
5
5
  SHA512:
6
- metadata.gz: 9cf2a227dde1a17fbfb948ce574ed065b5e0d960023c2377c670fef604229447974cb57be83e882263e39ae0cf45e40c45d49e8d2debb3867b3c1bfcdb33224f
7
- data.tar.gz: d777a5b0dae226011a1f067365a388e26e539fa8681d7b01c682e0e8615c3279922d7c3593a7d0bcbf2186c9745d1604168e0fd480ae02d75525a7ad74ad1f93
6
+ metadata.gz: 2387b636279ee17edb70fa3e94183c016ca4aa1a50fc0a9a31028dbbee43da79677a78aa7e1be5718ae71004aee3d67f981e09a4a3c60887e0cd4c5cc25fae57
7
+ data.tar.gz: 2ac41b33ab0f90084f44ddd512061b74757ad2cb7b1baa12710eb1fe64a97c749e00cf8dbbf929cf26550c17e77ba35afbffb28082bfef4c71ef26e99c004737
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 0.0.15
5
+
6
+ - Support for old / new Lithuania postal codes ~ @EricLarch
7
+
8
+ ## 0.0.14
9
+
10
+ - Support for Rails5 ~ @dgilperez
11
+
4
12
  ## 0.0.13
5
13
 
6
14
  - Support for new Korea postal codes ~ @adlersantos
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.13)
4
+ validates_zipcode (0.0.14)
5
5
  activemodel (>= 3.2.0)
6
6
 
7
7
  GEM
@@ -49,4 +49,4 @@ DEPENDENCIES
49
49
  validates_zipcode!
50
50
 
51
51
  BUNDLED WITH
52
- 1.10.6
52
+ 1.11.2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.13)
4
+ validates_zipcode (0.0.14)
5
5
  activemodel (>= 3.2.0)
6
6
 
7
7
  GEM
@@ -55,4 +55,4 @@ DEPENDENCIES
55
55
  validates_zipcode!
56
56
 
57
57
  BUNDLED WITH
58
- 1.10.6
58
+ 1.11.2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.13)
4
+ validates_zipcode (0.0.14)
5
5
  activemodel (>= 3.2.0)
6
6
 
7
7
  GEM
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  validates_zipcode!
57
57
 
58
58
  BUNDLED WITH
59
- 1.10.6
59
+ 1.11.2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.13)
4
+ validates_zipcode (0.0.14)
5
5
  activemodel (>= 3.2.0)
6
6
 
7
7
  GEM
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  validates_zipcode!
57
57
 
58
58
  BUNDLED WITH
59
- 1.10.6
59
+ 1.11.2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.13)
4
+ validates_zipcode (0.0.14)
5
5
  activemodel (>= 3.2.0)
6
6
 
7
7
  GEM
@@ -53,4 +53,4 @@ DEPENDENCIES
53
53
  validates_zipcode!
54
54
 
55
55
  BUNDLED WITH
56
- 1.10.6
56
+ 1.11.2
@@ -190,7 +190,7 @@ module ValidatesZipcode
190
190
  LI: /\A\d{4}\z/,
191
191
  LV: /\A([a-zA-Z]|\d){3,8}\z/,
192
192
  LY: /\A\d{5}\z/,
193
- LT: /\A([a-zA-Z]){2}(-)\d{4}\z/,
193
+ LT: /\A([a-zA-Z]){2}(-)\d{4,5}\z/,
194
194
  LC: /\A([a-zA-Z\d\s]){3,}\z/,
195
195
  MC: /\A\d{5}\z/,
196
196
  MD: /\A(([a-zA-Z]){2})(|\s)\d{4}\z/,
@@ -1,3 +1,3 @@
1
1
  module ValidatesZipcode
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -134,6 +134,8 @@ describe ValidatesZipcode, '#validate_each' do
134
134
  it 'validates with a valid zipcode' do
135
135
  record = build_record('LT-0110', 'LT')
136
136
  zipcode_should_be_valid(record)
137
+ record = build_record('LT-00110', 'LT')
138
+ zipcode_should_be_valid(record)
137
139
  end
138
140
 
139
141
  it 'does not validate with an invalid zipcode' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_zipcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Gil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-10 00:00:00.000000000 Z
11
+ date: 2016-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel