c80_yax 0.1.0.23 → 0.1.0.24

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: 4e01e75c062c8b3f52d68ac18851b78f54a0851e
4
- data.tar.gz: b287e2b15f3bb793e837e0bdea42e0eb1882e4bb
3
+ metadata.gz: 87df0d03c098066acbf02225cee36644e77bf2c5
4
+ data.tar.gz: 047a6108e1a1f14b77a40abd841aca7e1d998a6c
5
5
  SHA512:
6
- metadata.gz: d5df25892e20e93d59d35ad393fb0468029db94953926595717d13b95405c547532861560baaadb58d17e0df0255e013f73c88e8bccd81d50bd31aecd7f99919
7
- data.tar.gz: ff6154bbef0c1f947a3bea147111ce25e12ad11a7a4cfb2c0f241b5454a5ecf8d8d5bb0c27c9d64fd2e20e2d3c3594a7029c6d98794c5015aba2f32614e51249
6
+ metadata.gz: 0b3260091bca2e3d5efe84772060b9e459736ed1bd7ea0f0904d66e727ba6e370822a03c5ce7a90c4fc633b788a7039291cf0a745daf0801f7336d92011ce4bd
7
+ data.tar.gz: 0a24c2e5dde7c9b1e1657875c69ddc414bb7abef9ca2fdfe2ca02a5a9915684bd762d0ccd11e70263c98f9881bea34b56bcd8f603c36e38af95c544319d9bef5
@@ -9,10 +9,12 @@ module Co
9
9
  end
10
10
 
11
11
  if record.phone.present?
12
- if record.phone[/^((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}$/].present?
12
+ unless record.phone[/\A((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}\z/].present?
13
13
  t2 = 'Пожалуйста, укажите корректный номер телефона'
14
14
  record.errors[:phone] = t2
15
15
  end
16
+ else
17
+ record.errors[:phone] = 'Пожалуйста, укажите номер телефона'
16
18
  end
17
19
 
18
20
  end
@@ -1,3 +1,3 @@
1
1
  module C80Yax
2
- VERSION = '0.1.0.23'
2
+ VERSION = '0.1.0.24'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c80_yax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.23
4
+ version: 0.1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - C80609A