contacts_txt 0.2.4 → 0.2.5

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: 7615f25f7c1dbca37e8594c80cc198eed4143fc5
4
- data.tar.gz: 77f1617e3d9fb004fbf17f487fb82c904fc64c44
3
+ metadata.gz: f30081584d55a25cded5e381282e16ff7178d7f7
4
+ data.tar.gz: d997433b728d628547289736c6dc22735e278cf9
5
5
  SHA512:
6
- metadata.gz: e0ec5b14506ce46c5a568d555110ac91ebacc841b27960de31faaaf35e398bb65d408bc0236447cee519b32ef9019e8b1ad65c6100d5fc0d821746e182cc9afd
7
- data.tar.gz: fc8787310778e016671cde03024e91da9b58acef0e0f2f682a94b3571334e49da258c941dd7d965e2336d50dc44b162de81fb0b59036dc93832acfb8a9121aa8
6
+ metadata.gz: 7c6fd58a3355932f1100c7057411fc48d1dd1127457a1f7b03a9c146c25d6e0067d1e8d2a722701cef33019ec0736df4599d8fac308210b830a4af15b0344d11
7
+ data.tar.gz: 77bc470e038b871de2f746236b8e4db04cc3d6d4334e34fcfa1545b8ec7615cc4ac467f410d7f5f0d6eeed39cfc6e85871d8c43f8b0a18fcbd2589cb4ca5a84b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -51,7 +51,7 @@ class ContactsTxt
51
51
 
52
52
  def find_by_name(raw_name)
53
53
 
54
- name = Regexp.new raw_name, Regexp::IGNORECASE
54
+ name = Regexp.new '\b' + raw_name + '\b', Regexp::IGNORECASE
55
55
 
56
56
  @dx.all.select do |x|
57
57
  x.fullname =~ name or x.firstname =~ name or x.lastname =~ name
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
4
+ version: 0.2.5
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-01 00:00:00.000000000 Z
33
+ date: 2018-08-02 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: dynarex
metadata.gz.sig CHANGED
Binary file