contacts_txt 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +1 -1
- data.tar.gz.sig +0 -0
- data/lib/contacts_txt.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a6172a8f8e5887490c16758f7290e18cd70c6d3c3474ce112ab79e05c9a88b16
|
4
|
+
data.tar.gz: aed66cdc86d8c18c834150c4c2e71f37e21c96eeaad74ca8dcc317ee35252e20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b514849b808c3f87b8274548cdfc4a2b60295189f63932386fd3fcda3b3631247d169cf7a98916278f82ee97832d84551af20f816b774d2b6ae7e95272b4718
|
7
|
+
data.tar.gz: fe29d75dc92e9505e2744e8d28892c5fa7a9d6d649266c8b367bcb1c72503f5d280c782c4d15146e786763746695beec1673f424505e5d3f3ed25ed5a099e716
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
�
|
1
|
+
^�A�L/�+�z�R`��>��m��ļ^�(oX�?�eC�����`�aV�_DOop�=����gz5��u1 �зcP�TS����ZE$�b��M�h(��#�����{@�?�H�܄b���Z�D�jfj�X�"tj��a� �J DI��K=Kej#�b����}���Q��\�m��W(��Mas�����'��,�����V�ٲ�/������hH��l5�0/5��+��`�#��H�Ÿ�%�S�)0
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/contacts_txt.rb
CHANGED
@@ -44,7 +44,7 @@ class ContactsTxt
|
|
44
44
|
|
45
45
|
def find_by_mobile(raw_number, countrycode='44')
|
46
46
|
|
47
|
-
number = Regexp.new
|
47
|
+
number = Regexp.new raw_number.sub(/^(?:0|#{countrycode})/,'').gsub(/ */,'')
|
48
48
|
|
49
49
|
@dx.all.find {|x| x.mobile.gsub(/ */,'') =~ number }
|
50
50
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contacts_txt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
Ms9N9IXVzqxWl6qaGY7lENrLhETsyyvXsYq+Djcg8A9Fvn3Fk3do1ooh9ePNno3a
|
31
31
|
1G4=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-08-
|
33
|
+
date: 2018-08-20 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: dynarex
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.6
|
82
|
+
rubygems_version: 2.7.6
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Reads a contacts.txt file
|
metadata.gz.sig
CHANGED
Binary file
|