contacts_txt 0.2.7 → 0.2.8
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/contacts_txt.rb +8 -2
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5acf2be33ce0f1ebc0b935a29e936879d517ddb67b5be939cbc3bb99c6c35782
|
|
4
|
+
data.tar.gz: bc97ccaf69c0f5152ceebce4297456f21bbe6446bf4597e9ccf43cd2bd63a538
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0739a64628069084ef7c34b595f46b45a6679a0bc1c257220c6c66f11c476072244e2e05fa23c5b99cfbc7be63df162d0d7b6dea28cd83d5730952ec8afaeec
|
|
7
|
+
data.tar.gz: 6a3ecc0ce7badc16e97803e7bb3a8e2cb06d95f8566745608872c1959c8c6e4b739e0f52ab54ed5dce6d88685d627fb507b3f6751d7b34188336fd54826b24e9
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/contacts_txt.rb
CHANGED
|
@@ -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:
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
54
|
+
version: 1.8.10
|
|
55
55
|
description:
|
|
56
56
|
email: james@jamesrobertson.eu
|
|
57
57
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|