drb_fileserver 0.1.0 → 0.1.1

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: eeda5d8a1769c6ad13c60d067d52a5a1b33360da
4
- data.tar.gz: 54449f523fb803ba6b7f0b3f38a60b09e551038e
3
+ metadata.gz: 30300f966061810cf3925826fd536a38fc009a6c
4
+ data.tar.gz: 9c08b2d55e82ea4f5a7c73c177442fcd4bb3613a
5
5
  SHA512:
6
- metadata.gz: 32ee974d05ef8f9a8716c3f6c952f5db6bd0141fb283134379ba2783063bd76588c0b7b0e6a0a8fe89b684b0c3487b045ac4378089984c79889c4954537ff9b1
7
- data.tar.gz: 945158d5174f540adee3b2b4c798a5bce4a78cb2f74e824de788eeff91af993178252b8a6ca9ecd4b2be87939ff644651ea87b792955d867615850fbd968e941
6
+ metadata.gz: eadabd95d0a575dd146175365a6de08828d2daab2f2e56433a97290a647ba5a902e39787cd0de7d7b99c32a1613c8eae569880c057a8f1f5f6e965b727c515c8
7
+ data.tar.gz: ee3a8248e5753e9548e1016e96d9cce0461016e06873cec5fd285aacc8545d266a4fc0253461bfd04ace644bb43f3b708a4f60caad489717c1dd8ac3e95e42ce
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- File.read filename
18
+
19
+ File.read File.join(@path, filename)
20
+
13
21
  end
14
22
 
15
23
  def write(filename, s)
16
- File.write filename, s
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.0
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-22 00:00:00.000000000 Z
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