contacts_txt 0.2.8 → 0.2.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5acf2be33ce0f1ebc0b935a29e936879d517ddb67b5be939cbc3bb99c6c35782
4
- data.tar.gz: bc97ccaf69c0f5152ceebce4297456f21bbe6446bf4597e9ccf43cd2bd63a538
3
+ metadata.gz: 9619a274fc9f79d914bab2e1dccc66d4a3745315fea3421161a8454a8e96e953
4
+ data.tar.gz: 4986232a8a014cce1c7595ca2ed0571275c65c37bc351af12d9a7d62d03c1b63
5
5
  SHA512:
6
- metadata.gz: d0739a64628069084ef7c34b595f46b45a6679a0bc1c257220c6c66f11c476072244e2e05fa23c5b99cfbc7be63df162d0d7b6dea28cd83d5730952ec8afaeec
7
- data.tar.gz: 6a3ecc0ce7badc16e97803e7bb3a8e2cb06d95f8566745608872c1959c8c6e4b739e0f52ab54ed5dce6d88685d627fb507b3f6751d7b34188336fd54826b24e9
6
+ metadata.gz: efbac6ef2397c828acec0bb40450f041beb26fa67c86ee5f12e87b708319fc474c2c78166a01f40a4c87cc719f108051f183a3f8285480e6fe8bff0ff2dd4053
7
+ data.tar.gz: e505035ed21b4bc6634b709539cd3c25887820f59065ab1292216aa34aa760b7d680eb4aac3a53e89f184a6d2cd396af9cd5a2e50fc3c448bff1fa4718ec5bca
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -83,6 +83,14 @@ class ContactsTxt
83
83
  @dx.filter {|x| x.email.length > 0}
84
84
  end
85
85
 
86
+ def list_names()
87
+
88
+ @dx.all.inject([]) do |r, x|
89
+ x.fullname.length >= 1 ? r << x.fullname : r
90
+ end
91
+
92
+ end
93
+
86
94
  def mobile_list()
87
95
  @dx.filter {|x| x.mobile.length > 0}
88
96
  end
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.8
4
+ version: 0.2.9
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-12-04 00:00:00.000000000 Z
33
+ date: 2018-12-08 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: dynarex
metadata.gz.sig CHANGED
Binary file