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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c2051ea200293ad2a6c200836296d95e67ab09f5
4
- data.tar.gz: 97cb35d70ede7c41eb5a4d531ca477fa500b41ea
2
+ SHA256:
3
+ metadata.gz: db7a8fa46b6665c309367797c511b1adba02d3a479539e8f4c7065aa672ea7d4
4
+ data.tar.gz: c24303de8d0ac14cb6c34b8993104e1fc9af7611f5040a714a36ace48cbcda77
5
5
  SHA512:
6
- metadata.gz: a6045b7debbc4f4da703db673eca4039a6f4ea735e165863a6dd151eabcfd977a22bff866af96672e5fe30149f03a137a7c5c1b4932be916edc821826b3dc804
7
- data.tar.gz: d003737a7909dea1cdd5af07a15fd1092720990a6ee6472c019e0512e5892108379beea5032b1ac3226268b2a88e379de307efb97fe73e076a2f45caa3c38fde
6
+ metadata.gz: b09d184f618ada0b1ee3c7ff74ca8936f56bb9c5aa6fcba153ecbe59c221b55289ebe2f163b625c4de31a05e0ddb040afff6bb0cb15031c3d7e2ccb509eebdd1
7
+ data.tar.gz: 5276678520f86e74caae027964c7bb110522016d0b0cb2e159d19f2f61a42f82c51d31ec3577833872f09a0597b7cb174ade6d8cd8b61ebf467ae7cbce164b31
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
- n0E�� M��xR;�ӖE�)����l�8�d� ~�d��Bd)�p;Lô&l�㦖�>��-��x�+���U��������z]:���A�o��I��õ�����{���k��ঢ়"��f�A��{+#=�o�_�މ�t���[���.����a�dP�C�����j��+���V��R�9<���0ɩ�I<�A� oq�anF}�~�T~�X��dI{ie0���$�7h� ��%B�>� �'��9:�
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.2
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-02-24 00:00:00.000000000 Z
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.13
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