drb_fileclient 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_fileclient.rb +7 -1
- 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: '069e451b1e7939b6dbb5c23bc67a9537b1aa83d5'
|
|
4
|
+
data.tar.gz: 872db0d50b802c0b70cda63db6fb19fe0e5b58b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 483d6cf8d7b7d7a68806f7cd2eae04a454c16e6e04e8ec332c18e996740094bda7d38865c9f1e810aa6f69c96562f089260e7b00a3c50a72a839a9ca41cd9713
|
|
7
|
+
data.tar.gz: '0928ec6d8e035f3110c780c33f653d2b1e9d78d9ef5104832cabd7f5380e1fefafacea807921e593905686f51dbb65b0ce87a6e37461e12124fceb6c3430cffe'
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
|
@@ -8,12 +8,19 @@ require 'drb'
|
|
|
8
8
|
class DRbFileClient
|
|
9
9
|
|
|
10
10
|
def initialize(host: 'localhost', port: '61010')
|
|
11
|
+
|
|
11
12
|
DRb.start_service
|
|
12
13
|
|
|
13
14
|
# attach to the DRb server via a URI given on the command line
|
|
14
15
|
@file = DRbObject.new nil, "druby://#{host}:#{port}"
|
|
15
16
|
|
|
16
17
|
end
|
|
18
|
+
|
|
19
|
+
def exists?(filename)
|
|
20
|
+
|
|
21
|
+
@file.exists? filename
|
|
22
|
+
|
|
23
|
+
end
|
|
17
24
|
|
|
18
25
|
def read(filename)
|
|
19
26
|
|
|
@@ -28,4 +35,3 @@ class DRbFileClient
|
|
|
28
35
|
end
|
|
29
36
|
|
|
30
37
|
end
|
|
31
|
-
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: drb_fileclient
|
|
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
|
2aIZ9lf6/AT4LP07t9jB5oYLHlr2nBLIqtPXdJvg5RKKr79CQVmpJ5LCTjwTg9h+
|
|
31
31
|
g1Q=
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2018-
|
|
33
|
+
date: 2018-02-24 00:00:00.000000000 Z
|
|
34
34
|
dependencies: []
|
|
35
35
|
description:
|
|
36
36
|
email: james@jamesrobertson.eu
|
metadata.gz.sig
CHANGED
|
Binary file
|