contacts_txt 0.2.7 → 0.2.8

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
  SHA256:
3
- metadata.gz: a6172a8f8e5887490c16758f7290e18cd70c6d3c3474ce112ab79e05c9a88b16
4
- data.tar.gz: aed66cdc86d8c18c834150c4c2e71f37e21c96eeaad74ca8dcc317ee35252e20
3
+ metadata.gz: 5acf2be33ce0f1ebc0b935a29e936879d517ddb67b5be939cbc3bb99c6c35782
4
+ data.tar.gz: bc97ccaf69c0f5152ceebce4297456f21bbe6446bf4597e9ccf43cd2bd63a538
5
5
  SHA512:
6
- metadata.gz: 3b514849b808c3f87b8274548cdfc4a2b60295189f63932386fd3fcda3b3631247d169cf7a98916278f82ee97832d84551af20f816b774d2b6ae7e95272b4718
7
- data.tar.gz: fe29d75dc92e9505e2744e8d28892c5fa7a9d6d649266c8b367bcb1c72503f5d280c782c4d15146e786763746695beec1673f424505e5d3f3ed25ed5a099e716
6
+ metadata.gz: d0739a64628069084ef7c34b595f46b45a6679a0bc1c257220c6c66f11c476072244e2e05fa23c5b99cfbc7be63df162d0d7b6dea28cd83d5730952ec8afaeec
7
+ data.tar.gz: 6a3ecc0ce7badc16e97803e7bb3a8e2cb06d95f8566745608872c1959c8c6e4b739e0f52ab54ed5dce6d88685d627fb507b3f6751d7b34188336fd54826b24e9
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -11,8 +11,8 @@ class ContactsTxt
11
11
  attr_reader :to_s
12
12
 
13
13
  def initialize(src=nil, fields: %w(role organisation mobile
14
- sms email dob tags address notes note),
15
- username: nil, password: nil, debug: true)
14
+ sms email dob tags address notes note mobile2 ),
15
+ username: nil, password: nil, debug: false)
16
16
 
17
17
  @debug = debug
18
18
  @fields = %w(fullname firstname lastname tel) | fields
@@ -42,6 +42,12 @@ class ContactsTxt
42
42
  @dx
43
43
  end
44
44
 
45
+ def find_by_id(id)
46
+
47
+ @dx.find_by_id id
48
+
49
+ end
50
+
45
51
  def find_by_mobile(raw_number, countrycode='44')
46
52
 
47
53
  number = Regexp.new raw_number.sub(/^(?:0|#{countrycode})/,'').gsub(/ */,'')
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.7
4
+ version: 0.2.8
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-20 00:00:00.000000000 Z
33
+ date: 2018-12-04 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: dynarex
@@ -41,7 +41,7 @@ dependencies:
41
41
  version: '1.8'
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 1.8.0
44
+ version: 1.8.10
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
@@ -51,7 +51,7 @@ dependencies:
51
51
  version: '1.8'
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.8.0
54
+ version: 1.8.10
55
55
  description:
56
56
  email: james@jamesrobertson.eu
57
57
  executables: []
metadata.gz.sig CHANGED
Binary file