drb_fileclient-reader 0.1.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/drb_fileclient-reader.rb +5 -3
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 150c2c52f8ee2df3b92f2a228f5868f59badf14bb9c572cb61c54ea638ce3ea9
|
4
|
+
data.tar.gz: e18f9847a150ce4cfed1990ca572dfd33398c69e24e4868127d0064f3115eda4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28337b3466a7e1294af6f0e621ec360705f930f0c30f2f031a46da581399f09b74c60c13db166016ca93a9831bc73da9d39c80e88f985d7171cdaf6a5e8e1976
|
7
|
+
data.tar.gz: 14b3dde76774b4c4f28a869bb7e7c03a04362a4c54b90f41e6c17ad6d992acb4a0d447522ba99cba2f644596e31b8125016201ffd93d1ba644e1f394771fb4b1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -12,13 +12,15 @@ class DRbFileClientReader
|
|
12
12
|
def initialize(location=nil, host: nil, port: '61010', debug: false)
|
13
13
|
|
14
14
|
@debug = debug
|
15
|
+
@@file ||= nil
|
15
16
|
|
16
17
|
if location then
|
17
18
|
|
18
19
|
host = location[/(?<=^dfs:\/\/)[^\/:]+/]
|
19
20
|
port = location[/(?<=^dfs:\/\/)[^:]+:(\d+)/,1] || '61010'
|
20
|
-
@@directory
|
21
|
-
|
21
|
+
@@directory ||= location[/(?<=^dfs:\/\/)[^\/]+\/(.*)/,1]
|
22
|
+
else
|
23
|
+
@@directory ||= nil
|
22
24
|
end
|
23
25
|
|
24
26
|
DRb.start_service
|
@@ -44,7 +46,7 @@ class DRbFileClientReader
|
|
44
46
|
|
45
47
|
def read(filename=@@filename)
|
46
48
|
|
47
|
-
return File.read
|
49
|
+
return File.read(filename) unless @@directory or filename =~ /^dfs:\/\//
|
48
50
|
|
49
51
|
if filename =~ /^dfs:\/\// then
|
50
52
|
@@file, path = parse_path(filename)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drb_fileclient-reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
im+YlEcJfPax42Av6oEBmm6oUqxICcrKX8DdDuNFC44LAC66kmOdMTNiVdeS82BG
|
36
36
|
CGf+32hX61V/Gw6Jiazh7a6L
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-
|
38
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: c32
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
86
|
+
rubygems_version: 3.3.7
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: A DRb file reader client to access the DRb_fileserver service.
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
��
|
3
|
-
|
1
|
+
#����[���n�AKP�]Y:��X����֘з��ٔs՝�����fšYZ��7H��K]Mۙ������������Ím�u�E���P�X�Fh����i�:ަm]I~|"_S�U�Ry�s�(+��<�}9p4�:P��B/6�G�ю��.�y��a�F���ʑ�5��]!E��Fn�}ʌ����n��E�R���eF��!�F�-%�
|
2
|
+
;uw��j�&��98�ZЀhn�7�A�gJ�Y�tҢ�}�vb�o�M�����s�d\u�F���+�1���l�HSd^/?eI9�DZ�Jl��P�Ϡ�_2ߵj�B��f��c�����.��v��K��"i,��\y$��i
|
3
|
+
�Hv��9��H��� ����t
|