contacts_txt 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/contacts_txt.rb +6 -3
- metadata +25 -26
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7615f25f7c1dbca37e8594c80cc198eed4143fc5
|
4
|
+
data.tar.gz: 77f1617e3d9fb004fbf17f487fb82c904fc64c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0ec5b14506ce46c5a568d555110ac91ebacc841b27960de31faaaf35e398bb65d408bc0236447cee519b32ef9019e8b1ad65c6100d5fc0d821746e182cc9afd
|
7
|
+
data.tar.gz: fc8787310778e016671cde03024e91da9b58acef0e0f2f682a94b3571334e49da258c941dd7d965e2336d50dc44b162de81fb0b59036dc93832acfb8a9121aa8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/contacts_txt.rb
CHANGED
@@ -6,11 +6,12 @@ require 'dynarex'
|
|
6
6
|
|
7
7
|
|
8
8
|
class ContactsTxt
|
9
|
+
include RXFHelperModule
|
9
10
|
|
10
11
|
attr_reader :to_s
|
11
12
|
|
12
13
|
def initialize(src=nil, fields: %w(role organisation mobile
|
13
|
-
sms email dob tags address notes),
|
14
|
+
sms email dob tags address notes note),
|
14
15
|
username: nil, password: nil)
|
15
16
|
|
16
17
|
@fields = %w(fullname firstname lastname tel) | fields
|
@@ -26,6 +27,8 @@ class ContactsTxt
|
|
26
27
|
@path, @filename = File.dirname(src), File.basename(src)
|
27
28
|
when :url
|
28
29
|
@path, @filename = '.', File.basename(src)
|
30
|
+
when :dfs
|
31
|
+
@path, @filename = File.dirname(src), File.basename(src)
|
29
32
|
when :unknown
|
30
33
|
@path, @filename = '.', 'contacts.txt'
|
31
34
|
end
|
@@ -79,7 +82,7 @@ class ContactsTxt
|
|
79
82
|
def save(filename=@filename)
|
80
83
|
|
81
84
|
s = dx_to_s(@dx)
|
82
|
-
|
85
|
+
FileX.write File.join(@path, filename), s
|
83
86
|
@dx.save File.join(@path, filename.sub(/\.txt$/,'.xml'))
|
84
87
|
|
85
88
|
end
|
@@ -150,4 +153,4 @@ class ContactsTxt
|
|
150
153
|
|
151
154
|
end
|
152
155
|
|
153
|
-
end
|
156
|
+
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.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,27 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
07GXbdChvjqXQg==
|
13
|
+
MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwODAxMjEwNzA0WhcN
|
15
|
+
MTkwODAxMjEwNzA0WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDC9696
|
17
|
+
mu8TEN1NeSExgfozGbuajnFfKg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 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: dynarex
|
@@ -39,20 +38,20 @@ dependencies:
|
|
39
38
|
requirements:
|
40
39
|
- - "~>"
|
41
40
|
- !ruby/object:Gem::Version
|
42
|
-
version: '1.
|
41
|
+
version: '1.8'
|
43
42
|
- - ">="
|
44
43
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.
|
44
|
+
version: 1.8.0
|
46
45
|
type: :runtime
|
47
46
|
prerelease: false
|
48
47
|
version_requirements: !ruby/object:Gem::Requirement
|
49
48
|
requirements:
|
50
49
|
- - "~>"
|
51
50
|
- !ruby/object:Gem::Version
|
52
|
-
version: '1.
|
51
|
+
version: '1.8'
|
53
52
|
- - ">="
|
54
53
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.
|
54
|
+
version: 1.8.0
|
56
55
|
description:
|
57
56
|
email: james@jamesrobertson.eu
|
58
57
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|