drb_fileserver 0.1.0 → 0.1.1
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/drb_fileserver.rb +14 -4
- metadata +2 -2
- 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: 30300f966061810cf3925826fd536a38fc009a6c
|
|
4
|
+
data.tar.gz: 9c08b2d55e82ea4f5a7c73c177442fcd4bb3613a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eadabd95d0a575dd146175365a6de08828d2daab2f2e56433a97290a647ba5a902e39787cd0de7d7b99c32a1613c8eae569880c057a8f1f5f6e965b727c515c8
|
|
7
|
+
data.tar.gz: ee3a8248e5753e9548e1016e96d9cce0461016e06873cec5fd285aacc8545d266a4fc0253461bfd04ace644bb43f3b708a4f60caad489717c1dd8ac3e95e42ce
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/drb_fileserver.rb
CHANGED
|
@@ -8,20 +8,30 @@ class DRbFileServer
|
|
|
8
8
|
|
|
9
9
|
class FileX
|
|
10
10
|
|
|
11
|
+
def initialize(path='.')
|
|
12
|
+
|
|
13
|
+
@path = path
|
|
14
|
+
|
|
15
|
+
end
|
|
16
|
+
|
|
11
17
|
def read(filename)
|
|
12
|
-
|
|
18
|
+
|
|
19
|
+
File.read File.join(@path, filename)
|
|
20
|
+
|
|
13
21
|
end
|
|
14
22
|
|
|
15
23
|
def write(filename, s)
|
|
16
|
-
|
|
24
|
+
|
|
25
|
+
File.write File.join(@path, filename), s
|
|
26
|
+
|
|
17
27
|
end
|
|
18
28
|
|
|
19
29
|
end
|
|
20
30
|
|
|
21
|
-
def initialize(host: 'localhost', port: '61010')
|
|
31
|
+
def initialize(host: 'localhost', port: '61010', path: '.')
|
|
22
32
|
|
|
23
33
|
@host, @port = host, port
|
|
24
|
-
@file = FileX.new
|
|
34
|
+
@file = FileX.new path
|
|
25
35
|
|
|
26
36
|
end
|
|
27
37
|
|
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.1
|
|
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-01-
|
|
33
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
|
34
34
|
dependencies: []
|
|
35
35
|
description:
|
|
36
36
|
email: james@jamesrobertson.eu
|
metadata.gz.sig
CHANGED
|
Binary file
|