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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 746ec86ea7c5ba8122d3fed2b39c8d4edaf24550
4
- data.tar.gz: 8e052ff8a334221a09989cacdad1fbffea35c73b
3
+ metadata.gz: 7615f25f7c1dbca37e8594c80cc198eed4143fc5
4
+ data.tar.gz: 77f1617e3d9fb004fbf17f487fb82c904fc64c44
5
5
  SHA512:
6
- metadata.gz: d8231c12a999e9f0547412c9a16c10d7606191fa2eae9fc4d08e2a070bbf357021cf537e0b133e8bbdd092bea169c91caa2f77596664bd4162b6cb1f44f2ee38
7
- data.tar.gz: 4896aa298dc08e29c7dd7156974409665afa9463aa7f267f4507ee2e588e358dabe10b6258f733d6f9fcecbd80e652b616059efa95e37cb916bd2cd708bfc550
6
+ metadata.gz: e0ec5b14506ce46c5a568d555110ac91ebacc841b27960de31faaaf35e398bb65d408bc0236447cee519b32ef9019e8b1ad65c6100d5fc0d821746e182cc9afd
7
+ data.tar.gz: fc8787310778e016671cde03024e91da9b58acef0e0f2f682a94b3571334e49da258c941dd7d965e2336d50dc44b162de81fb0b59036dc93832acfb8a9121aa8
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- File.write File.join(@path, filename), s
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.3
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
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE2MTIyMzIwMDMyNFoXDTE3MTIyMzIwMDMyNFowSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAMm6gZkk8G0chr7vKlWawTk6pXXzgSgyRxScQviCKsVlhJQ6xGFLuX351MXj
19
- 9BmPgCXzkFzsuFclSQW6PNlvQIAqTwcOM+ZIgz0FkCyeJCKUIdr046qJ6X4/rCNA
20
- t1VyvTTjLJsp33/WJODw9Tc8Cpi9UokynFcg6rsZdBdWnOgCGAvf30wXcxikZThk
21
- Z5B2e4Ktuz/+JvLjomg6VUbIX4lKXI/AJhKaSXcaFcK7DHamrH8PfTQnzXikyC28
22
- B723XhP3uve139o65Z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6Ug94LO0N8KgByLEBxRmSP1
19
+ BYL8EpWJnhlNAffEdirPBcCLHvDl2S6RbDXyUWa03+qw6zK+Iuu9mcWoQdSxBrwU
20
+ jD18mgNpVipsL1NT/dV2uz5LIESdYVA6kxvSwL2aGZ8O9c7XI8hl/9DNntRXB6BI
21
+ qJ5PuYUBZVy3kOI4Ks4ra/QgaRcAGeH8f7Vl2A9SdLIYjP45CQyanHy6M8cmuwm1
22
+ nSRHWQx/q3I8DhRdAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
23
+ HQYDVR0OBBYEFBgkPuVzdzsTk+wKFFCEXg7Lb9ZyMCYGA1UdEQQfMB2BG2dlbW1h
24
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTAmBgNVHRIEHzAdgRtnZW1tYXN0ZXJAamFt
25
+ ZXNyb2JlcnRzb24uZXUwDQYJKoZIhvcNAQEFBQADggEBAGoMpMeiWATe9UNHf317
26
+ WRymCKIukfzFSTjwg/yc67F/qk5P23BdYywy7TA/l8M3L52+Cav3ZjiyquvkLDTX
27
+ xNXGFArD5J5Wu/GN6I5vSLYwzC0G/iN4ZOffa3lpdxtqU0BWk1PgrMKSBYM22wCD
28
+ Q1V22nUmZshq07vu1naaJvnmQe5SrXdNAwNue9xXHpAXRStGq3OgEtWl7k8MCPpr
29
+ G//X20IZZXsvN64DFHpFyhz7JZTiTuyH+GkH/3BpwwTrz5Fv1f4nPpYg2Jxka1B5
30
+ Ms9N9IXVzqxWl6qaGY7lENrLhETsyyvXsYq+Djcg8A9Fvn3Fk3do1ooh9ePNno3a
31
+ 1G4=
33
32
  -----END CERTIFICATE-----
34
- date: 2017-10-03 00:00:00.000000000 Z
33
+ date: 2018-08-01 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.7'
41
+ version: '1.8'
43
42
  - - ">="
44
43
  - !ruby/object:Gem::Version
45
- version: 1.7.26
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.7'
51
+ version: '1.8'
53
52
  - - ">="
54
53
  - !ruby/object:Gem::Version
55
- version: 1.7.26
54
+ version: 1.8.0
56
55
  description:
57
56
  email: james@jamesrobertson.eu
58
57
  executables: []
metadata.gz.sig CHANGED
Binary file