validates_zipcode 0.0.5 → 0.0.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
  SHA1:
3
- metadata.gz: 952d9f9b375d3c93c0c71af3dfd9f6dcd6712693
4
- data.tar.gz: 4be0f548de981b71b4e87ee2ec8bb377fb906431
3
+ metadata.gz: f7d7f06af04e43e053ee9e02218e80b91ad7ab09
4
+ data.tar.gz: 8dd09b5e491b61031fbd38feea26ebaf90d92635
5
5
  SHA512:
6
- metadata.gz: ecdbe24c23bf5296fb45daf4fa6d35b9c60f9fa83bf4e9da3fc23b767ee329beefa14e66940e8ad99cd8ee0e889852b02946eda0c300ba44fd2fc7b786effe76
7
- data.tar.gz: 6e9a17ced86e144d499d50f650422035c1ab439c6c70831561da45c739da061feabab53dc0f0c7bbb208fede7f20e5c5c5b466d5a74ac6ca5db86f8865e24662
6
+ metadata.gz: 16cd34364f9c9ada814c4c1369f40687352ea417813aa67234111c3c81f2ae9aef07781da4d3d04b4886d88c553c6c7628ae95426d485bd929b1cb3d73e31f50
7
+ data.tar.gz: fdcc70486056bfddaae572eacdf3b2409309768133dd70da82822007cc9684001c24f5a964b3e0737786259d46403cb668d4ef9cfd17ee198344b6ef0f2a925a
data/.travis.yml CHANGED
@@ -2,3 +2,4 @@ rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
4
  - 2.1.0
5
+ - 2.2.2
@@ -11,8 +11,6 @@ module ValidatesZipcode
11
11
  US: /\A\d{5}([ \-]\d{4})?\z/,
12
12
  CA: /\A[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ ]?\d[ABCEGHJ-NPRSTV-Z]\d\z/,
13
13
  DE: /\A\d{5}\z/,
14
- JP: /\A\d{3}-\d{4}\z/,
15
- FR: /\A\d{2}[ ]?\d{3}\z/,
16
14
  AU: /\A\d{4}\z/,
17
15
  IT: /\A\d{5}\z/,
18
16
  CH: /\A\d{4}\z/,
@@ -21,49 +19,39 @@ module ValidatesZipcode
21
19
  NL: /\A\d{4}[ ]?[A-Z]{2}\z/,
22
20
  BE: /\A\d{4}\z/,
23
21
  DK: /\A\d{4}\z/,
24
- SE: /\A\d{3}[ ]?\d{2}\z/,
25
22
  NO: /\A\d{4}\z/,
26
- BR: /\A\d{5}[\-]?\d{3}\z/,
27
- PT: /\A\d{4}([\-]\d{3})?\z/,
28
23
  FI: /\A\d{5}\z/,
29
24
  AX: /\A22\d{3}\z/,
30
25
  KR: /\A\d{3}[\-]\d{3}\z/,
31
26
  CN: /\A\d{6}\z/,
32
- TW: /\A\d{3}(\d{2})?\z/,
33
27
  SG: /\A\d{6}\z/,
34
28
  DZ: /\A\d{5}\z/,
35
29
  AD: /\AAD\d{3}\z/,
36
30
  AR: /\A([A-HJ-NP-Z]{1}\d{4}[A-Z]{3}|[a-z]{1}\d{4}[a-hj-tp-z]{3})\z/,
37
31
  # AR: /\A([A-HJ-NP-Z])?\d{4}([A-Z]{3})?\z/,
38
32
  AM: /\A(37)?\d{4}\z/,
39
- AZ: /\A\d{4}\z/,
40
33
  BH: /\A((1[0-2]|[2-9])\d{2})?\z/,
41
34
  BD: /\A\d{4}\z/,
42
35
  BB: /\A(BB\d{5})?\z/,
43
36
  BY: /\A\d{6}\z/,
44
37
  BM: /\A[A-Z]{2}[ ]?[A-Z0-9]{2}\z/,
45
38
  BA: /\A\d{5}\z/,
46
- IO: /\ABBND 1ZZ\z/,
47
39
  BN: /\A[A-Z]{2}[ ]?\d{4}\z/,
48
40
  BG: /\A\d{4}\z/,
49
41
  KH: /\A\d{5}\z/,
50
42
  CV: /\A\d{4}\z/,
51
43
  CL: /\A\d{3}[-]?\d{4}\z/,
52
- CR: /\A\d{4,5}|\d{3}-\d{4}\z/,
53
44
  HR: /\A\d{5}\z/,
54
45
  CY: /\A\d{4}\z/,
55
46
  CZ: /\A\d{3}[ ]?\d{2}\z/,
56
47
  DO: /\A\d{5}\z/,
57
48
  EC: /\A([A-Z]\d{4}[A-Z]|(?:[A-Z]{2})?\d{6})?\z/,
58
- EG: /\A\d{5}\z/,
59
49
  EE: /\A\d{5}\z/,
60
50
  FO: /\A\d{3}\z/,
61
51
  GE: /\A\d{4}\z/,
62
- GR: /\A\d{3}[ ]?\d{2}\z/,
63
52
  GL: /\A39\d{2}\z/,
64
53
  GT: /\A\d{5}\z/,
65
54
  HT: /\A\d{4}\z/,
66
- HN: /\A(?:\d{5})?\z/,
67
55
  HU: /\A\d{4}\z/,
68
56
  IS: /\A\d{3}\z/,
69
57
  IN: /\A\d{6}\z/,
@@ -74,10 +62,7 @@ module ValidatesZipcode
74
62
  KE: /\A\d{5}\z/,
75
63
  KW: /\A\d{5}\z/,
76
64
  LA: /\A\d{5}\z/,
77
- LV: /\A\d{4}\z/,
78
65
  LB: /\A(\d{4}([ ]?\d{4})?)?\z/,
79
- LI: /\A(948[5-9])|(949[0-7])\z/,
80
- LT: /\A\d{5}\z/,
81
66
  LU: /\A\d{4}\z/,
82
67
  MK: /\A\d{4}\z/,
83
68
  MY: /\A\d{5}\z/,
@@ -85,10 +70,7 @@ module ValidatesZipcode
85
70
  MT: /\A[A-Z]{3}[ ]?\d{2,4}\z/,
86
71
  MU: /\A(\d{3}[A-Z]{2}\d{3})?\z/,
87
72
  MX: /\A\d{5}\z/,
88
- MD: /\A\d{4}\z/,
89
- MC: /\A980\d{2}\z/,
90
73
  MA: /\A\d{5}\z/,
91
- NP: /\A\d{5}\z/,
92
74
  NZ: /\A\d{4}\z/,
93
75
  NI: /\A((\d{4}-)?\d{3}-\d{3}(-\d{1})?)?\z/,
94
76
  NG: /\A(\d{6})?\z/,
@@ -103,7 +85,6 @@ module ValidatesZipcode
103
85
  SM: /\A4789\d\z/,
104
86
  SA: /\A\d{5}\z/,
105
87
  SN: /\A\d{5}\z/,
106
- SK: /\A\d{3}[ ]?\d{2}\z/,
107
88
  SI: /\A\d{4}\z/,
108
89
  ZA: /\A\d{4}\z/,
109
90
  LK: /\A\d{5}\z/,
@@ -113,7 +94,6 @@ module ValidatesZipcode
113
94
  TR: /\A\d{5}\z/,
114
95
  TM: /\A\d{6}\z/,
115
96
  UA: /\A\d{5}\z/,
116
- UY: /\A\d{5}\z/,
117
97
  UZ: /\A\d{6}\z/,
118
98
  VA: /\A00120\z/,
119
99
  VE: /\A\d{4}\z/,
@@ -122,7 +102,6 @@ module ValidatesZipcode
122
102
  CC: /\A6799\z/,
123
103
  CK: /\A\d{4}\z/,
124
104
  RS: /\A\d{5}\z/,
125
- ME: /\A8\d{4}\z/,
126
105
  CS: /\A\d{5}\z/,
127
106
  YU: /\A\d{5}\z/,
128
107
  CX: /\A6798\z/,
@@ -131,7 +110,6 @@ module ValidatesZipcode
131
110
  NF: /\A2899\z/,
132
111
  FM: /\A(9694[1-4])([ \-]\d{4})?\z/,
133
112
  GF: /\A9[78]3\d{2}\z/,
134
- GN: /\A\d{3}\z/,
135
113
  GP: /\A9[78][01]\d{2}\z/,
136
114
  GS: /\ASIQQ 1ZZ\z/,
137
115
  GU: /\A969[123]\d([ \-]\d{4})?\z/,
@@ -142,13 +120,11 @@ module ValidatesZipcode
142
120
  LR: /\A\d{4}\z/,
143
121
  LS: /\A\d{3}\z/,
144
122
  MG: /\A\d{3}\z/,
145
- MH: /\A969[67]\d([ \-]\d{4})?\z/,
146
123
  MN: /\A\d{6}\z/,
147
124
  MP: /\A9695[012]([ \-]\d{4})?\z/,
148
125
  MQ: /\A9[78]2\d{2}\z/,
149
126
  NC: /\A988\d{2}\z/,
150
127
  NE: /\A\d{4}\z/,
151
- VI: /\A008(([0-4]\d)|(5[01]))([ \-]\d{4})?\z/,
152
128
  PF: /\A987\d{2}\z/,
153
129
  PG: /\A\d{3}\z/,
154
130
  PM: /\A9[78]5\d{2}\z/,
@@ -157,7 +133,6 @@ module ValidatesZipcode
157
133
  RE: /\A9[78]4\d{2}\z/,
158
134
  SH: /\A(ASCN|STHL) 1ZZ\z/,
159
135
  SJ: /\A\d{4}\z/,
160
- SO: /\A\d{5}\z/,
161
136
  SZ: /\A[HLMS]\d{3}\z/,
162
137
  TC: /\ATKCA 1ZZ\z/,
163
138
  WF: /\A986\d{2}\z/,
@@ -1,3 +1,3 @@
1
1
  module ValidatesZipcode
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Gil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel