validates_zipcode 0.0.15 → 0.0.16

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: a52c03060445364ad731c1a12c1445152093397e
4
- data.tar.gz: d8f1838235ce5724d54635f04be4a69a013ab70c
3
+ metadata.gz: e67a68693b7532410b02e6469345282864dbb96c
4
+ data.tar.gz: 74aceb167acaebadc964395c2f1c35090dae354c
5
5
  SHA512:
6
- metadata.gz: 2387b636279ee17edb70fa3e94183c016ca4aa1a50fc0a9a31028dbbee43da79677a78aa7e1be5718ae71004aee3d67f981e09a4a3c60887e0cd4c5cc25fae57
7
- data.tar.gz: 2ac41b33ab0f90084f44ddd512061b74757ad2cb7b1baa12710eb1fe64a97c749e00cf8dbbf929cf26550c17e77ba35afbffb28082bfef4c71ef26e99c004737
6
+ metadata.gz: 2b59d32bdfeba6d5ac7648725047c6bb20b91ab6a1c04251dcbbb1f2ce4910ca470b34fb81af1f6ddf2c0708c5ae8fb6761fa413203c618c6509a3385db25c60
7
+ data.tar.gz: 1f4764c0fdfd521cc7cf950f3fe56ded3f18f856f4b101ce2670f9bf3250429071d885efa32bc650c609a14fe1f3bdf0c1520b4bb2129955eaea2f59772a509e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 0.0.16
5
+
6
+ - Support for old / new Israel postal codes ~ @EricLarch
7
+
4
8
  ## 0.0.15
5
9
 
6
10
  - Support for old / new Lithuania postal codes ~ @EricLarch
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.14)
4
+ validates_zipcode (0.0.16)
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.11.2
52
+ 1.13.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.14)
4
+ validates_zipcode (0.0.16)
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.11.2
58
+ 1.13.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.14)
4
+ validates_zipcode (0.0.16)
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.11.2
59
+ 1.13.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.14)
4
+ validates_zipcode (0.0.16)
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.11.2
59
+ 1.13.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- validates_zipcode (0.0.14)
4
+ validates_zipcode (0.0.16)
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.11.2
56
+ 1.13.1
@@ -57,7 +57,7 @@ module ValidatesZipcode
57
57
  IS: /\A\d{3}\z/,
58
58
  IN: /\A\d{6}\z/,
59
59
  ID: /\A\d{5}\z/,
60
- IL: /\A\d{5}\z/,
60
+ IL: /\A\d{5,7}\z/,
61
61
  JO: /\A\d{5}\z/,
62
62
  KZ: /\A\d{6}\z/,
63
63
  KE: /\A\d{5}\z/,
@@ -1,3 +1,3 @@
1
1
  module ValidatesZipcode
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -225,6 +225,20 @@ describe ValidatesZipcode, '#validate_each' do
225
225
  zipcode_should_be_invalid(record)
226
226
  end
227
227
  end
228
+
229
+ context 'Israel' do
230
+ it 'validates with a valid zipcode' do
231
+ ['1029200', '880000', '90001'].each do |zipcode|
232
+ record = build_record(zipcode, 'IL')
233
+ zipcode_should_be_valid(record)
234
+ end
235
+ end
236
+
237
+ it 'does not validate with an invalid zipcode' do
238
+ record = build_record('1200', 'IL')
239
+ zipcode_should_be_invalid(record)
240
+ end
241
+ end
228
242
  end
229
243
 
230
244
  describe ValidatesZipcode, '.valid?' 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.15
4
+ version: 0.0.16
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-10-02 00:00:00.000000000 Z
11
+ date: 2016-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.5.1
143
+ rubygems_version: 2.6.7
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Localizable zipcode validation for Rails.