validates_zipcode 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/gemfiles/rails_3.2.gemfile.lock +2 -2
- data/gemfiles/rails_4.0.gemfile.lock +2 -2
- data/gemfiles/rails_4.1.gemfile.lock +2 -2
- data/gemfiles/rails_4.2.gemfile.lock +2 -2
- data/gemfiles/rails_5.0.gemfile.lock +2 -2
- data/lib/validates_zipcode/cldr_regex_collection.rb +1 -1
- data/lib/validates_zipcode/version.rb +1 -1
- data/spec/validates_zipcode_spec.rb +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e67a68693b7532410b02e6469345282864dbb96c
|
4
|
+
data.tar.gz: 74aceb167acaebadc964395c2f1c35090dae354c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b59d32bdfeba6d5ac7648725047c6bb20b91ab6a1c04251dcbbb1f2ce4910ca470b34fb81af1f6ddf2c0708c5ae8fb6761fa413203c618c6509a3385db25c60
|
7
|
+
data.tar.gz: 1f4764c0fdfd521cc7cf950f3fe56ded3f18f856f4b101ce2670f9bf3250429071d885efa32bc650c609a14fe1f3bdf0c1520b4bb2129955eaea2f59772a509e
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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-
|
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.
|
143
|
+
rubygems_version: 2.6.7
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Localizable zipcode validation for Rails.
|