rxfreadwrite 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 53a75685faa1391e4fd2e915771c703195daf2df69f044757334ea4fc3ea5628
4
+ data.tar.gz: 2bd5b05e5d21dfb9543fa45186e82b7d632bd656a86d21979e954b5152077b59
5
+ SHA512:
6
+ metadata.gz: 6cea2847602126677e8c8b1b7cd0655c04876d4393de6e5cc4857c95ddc80f73a945748e5df2e530e3f465894b91f870f22edf43c8c6535b4bf16555c4397e84
7
+ data.tar.gz: afd2f74b8b8ee1028ef92e9b58fbd27de8f7b1d4fa08a8083e7db275fcc3a7723445e165c52a657b715c1dfd33e5be3d16ebcb3b7a4a143ed1003a4d55cfa5b6
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,3 @@
1
+ ����*��p]�3{�{x-��w�
2
+ �0ا=�%ʹr����Q�/A���y��ܵdJmYl�����}��v*��8�vH!gx����8�V�"���T�u��CM!�%h�_��^�_^����e|8s�ϕ |(�o/!1�:��38L�Xc��
3
+ D��7�|>U)+O������
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: rxfreadwrite.rb
4
+
5
+ require 'rxfreader'
6
+
7
+
8
+ module RXFReadWriteModule
9
+ include RXFRead
10
+
11
+ def FileX.write(x, s)
12
+ RXFReadWrite.write(x, s)
13
+ end
14
+ end
15
+
16
+
17
+ class RXFReadWriteException < Exception
18
+ end
19
+
20
+ class RXFReadWrite < RXFReader
21
+ using ColouredText
22
+
23
+ def self.write(location, s=nil)
24
+
25
+ case location
26
+ when /^dfs:\/\//
27
+
28
+ DfsFile.write location, s
29
+
30
+ else
31
+
32
+ if DfsFile.exists?(File.dirname(location)) then
33
+ DfsFile.write location, s
34
+ else
35
+ File.write(location, s)
36
+ end
37
+
38
+ end
39
+
40
+ end
41
+
42
+ end
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rxfreadwrite
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
14
+ YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjIwMjE5MjI0MTE4WhcN
15
+ MjMwMjE5MjI0MTE4WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
+ cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCzbuL9
17
+ DTWMkzHds67+4+4aiVSgq6QOixHpAF256nY1z5iFHPFz/UpPcFAkZZOvn9nbB7kO
18
+ HykP9/xYNDPW/8nlnixrJQxNs0obXCoWTDWztSL4XYG1z29V1TyZKfhoTyZBJVXP
19
+ T2xgHQA5HsOIKzurgZPzTYrqem7oP3uV91WQlx194wmAFuTf3HKMPFXjxbBYoTE5
20
+ JTMv3VpENhZp9kETy1ul+GtyU21q5onA3ygmLnAo83I1KWChPrrzfQt1dAaFAqHt
21
+ gYBr32TIEzTYMkx5iJrQ+vNuJqM7eFiAe+8C0gzBZQFhrZ5hBKzJIQxiJ9+ECRtX
22
+ eY1Cl5XC4zgH2RqQZDy6snQyHtSVp7rZ1dheWPLVKLWrzLVBe4RFZtj/8yMg7L9v
23
+ FdI6NVPCDZr6bKXYuYIQOgiqBs6gJWzHllMA2sQcksfPO1HYM5lqodaZbOK/OoV3
24
+ yY3GUhbbv1fWxbMspGyk1hv/H65lfY0TQ0qfH2ZpVx/9poKKKY94ZJyL87kCAwEA
25
+ AaOBijCBhzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUxBi9syu8
26
+ o4KRAAhFwtaU8NeSbhYwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
27
+ c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
28
+ BgkqhkiG9w0BAQsFAAOCAYEAJ+n3klGYQmKyK1Z1lJuXdsDslkaMY0QJsvigV2/T
29
+ +4Sc10IYyMxEmVvb7FbMXVcr3eyZnCNRk3PErRu0Nt1AV7OcPFB1AS+Ik35VA4+w
30
+ Q2kqIQiRbwnsZ3hA4HN90B/wsOufz69PywA8nmN9Glcdf6XBtsoErTbjw1yoff1R
31
+ QIEo++MKvkoG1fmgRLwsZdasmkPYh8qINBslVEPGi0JJLWn7xGNXDFzTIADSMEcn
32
+ o5szCer8Z4BJvhhrP5Fo2kieMTyDMjWnQtlfI3Epd3UlsQpuf3LBSP7Xeg2iYevA
33
+ 6tREJfIOygRy2l8CNgiLLrsNCkPuKakvYkRds2HK0JGzaG6ytzf7zCSfdENa+ATv
34
+ ukZToYmhkRBseHCwFuWR7jkN4oDsECOB/DTav6R2CeiZFLp9gy/92KkMdAIipS4I
35
+ gnYmJHVhKvNaFwL4ryulhkA+n8o3Ve6Kzo/AGlO2+Ge6H0bqIUbS8UisqDa7IwlY
36
+ tvleW582+lzMrpAfWdGb4VFX
37
+ -----END CERTIFICATE-----
38
+ date: 2022-02-19 00:00:00.000000000 Z
39
+ dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: rxfreader
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.1'
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 0.1.2
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '0.1'
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 0.1.2
60
+ description:
61
+ email: digital.robertson@gmail.com
62
+ executables: []
63
+ extensions: []
64
+ extra_rdoc_files: []
65
+ files:
66
+ - lib/rxfreadwrite.rb
67
+ homepage: https://github.com/jrobertson/rxfreadwrite
68
+ licenses:
69
+ - MIT
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubygems_version: 3.2.22
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Read and write files from remote locations (using the DFS protocol) as well
90
+ as local.
91
+ test_files: []
metadata.gz.sig ADDED
Binary file