validates_zipcode 0.0.14 → 0.0.15
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 +8 -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 +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a52c03060445364ad731c1a12c1445152093397e
|
4
|
+
data.tar.gz: d8f1838235ce5724d54635f04be4a69a013ab70c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2387b636279ee17edb70fa3e94183c016ca4aa1a50fc0a9a31028dbbee43da79677a78aa7e1be5718ae71004aee3d67f981e09a4a3c60887e0cd4c5cc25fae57
|
7
|
+
data.tar.gz: 2ac41b33ab0f90084f44ddd512061b74757ad2cb7b1baa12710eb1fe64a97c749e00cf8dbbf929cf26550c17e77ba35afbffb28082bfef4c71ef26e99c004737
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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/,
|
@@ -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.
|
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-
|
11
|
+
date: 2016-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|