drb_fileserver 0.1.2 → 0.1.3
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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data/lib/drb_fileserver.rb +10 -4
- data.tar.gz.sig +2 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: db7a8fa46b6665c309367797c511b1adba02d3a479539e8f4c7065aa672ea7d4
|
|
4
|
+
data.tar.gz: c24303de8d0ac14cb6c34b8993104e1fc9af7611f5040a714a36ace48cbcda77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b09d184f618ada0b1ee3c7ff74ca8936f56bb9c5aa6fcba153ecbe59c221b55289ebe2f163b625c4de31a05e0ddb040afff6bb0cb15031c3d7e2ccb509eebdd1
|
|
7
|
+
data.tar.gz: 5276678520f86e74caae027964c7bb110522016d0b0cb2e159d19f2f61a42f82c51d31ec3577833872f09a0597b7cb174ade6d8cd8b61ebf467ae7cbce164b31
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/drb_fileserver.rb
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
# file: drb_fileserver.rb
|
|
4
4
|
|
|
5
5
|
require 'drb'
|
|
6
|
+
require 'fileutils'
|
|
7
|
+
|
|
6
8
|
|
|
7
9
|
class DRbFileServer
|
|
8
10
|
|
|
@@ -18,16 +20,20 @@ class DRbFileServer
|
|
|
18
20
|
File.exists? File.join(@path, filename)
|
|
19
21
|
end
|
|
20
22
|
|
|
23
|
+
def mkdir(name)
|
|
24
|
+
FileUtils.mkdir File.join(@path, name)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def mkdir_p(path)
|
|
28
|
+
FileUtils.mkdir_p File.join(@path, path)
|
|
29
|
+
end
|
|
30
|
+
|
|
21
31
|
def read(filename)
|
|
22
|
-
|
|
23
32
|
File.read File.join(@path, filename)
|
|
24
|
-
|
|
25
33
|
end
|
|
26
34
|
|
|
27
35
|
def write(filename, s)
|
|
28
|
-
|
|
29
36
|
File.write File.join(@path, filename), s
|
|
30
|
-
|
|
31
37
|
end
|
|
32
38
|
|
|
33
39
|
end
|
data.tar.gz.sig
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
Ȑ����Oɖ��
|
|
2
|
+
ti�.d7+z��9I��J��Vp�ǯ7�$�ܚ�Wg�'�v���Ok�X����`��a'[���C!�]�'u:����9�h*��h��s��y�'��:�*x���!XA��I�Dd�.�����£�D��No��
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: drb_fileserver
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
oh8JRUlp0l/bIhdntCE1FsAL2D5P1qTBRaWjQxRcccUAO/ZWq2oDICPz0eBNQdKJ
|
|
31
31
|
Fqo=
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2018-
|
|
33
|
+
date: 2018-08-11 00:00:00.000000000 Z
|
|
34
34
|
dependencies: []
|
|
35
35
|
description:
|
|
36
36
|
email: james@jamesrobertson.eu
|
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
59
59
|
version: '0'
|
|
60
60
|
requirements: []
|
|
61
61
|
rubyforge_project:
|
|
62
|
-
rubygems_version: 2.6
|
|
62
|
+
rubygems_version: 2.7.6
|
|
63
63
|
signing_key:
|
|
64
64
|
specification_version: 4
|
|
65
65
|
summary: A DRb server to read or write local files.
|
metadata.gz.sig
CHANGED
|
Binary file
|