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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 796d5ead48abdc86df36327ef871c60888edacf8410b018cc33da018534ceec3
4
- data.tar.gz: 63d268060def89e5e1636e715dc4c70448d53454773bbc0441c28bae00542306
3
+ metadata.gz: 150c2c52f8ee2df3b92f2a228f5868f59badf14bb9c572cb61c54ea638ce3ea9
4
+ data.tar.gz: e18f9847a150ce4cfed1990ca572dfd33398c69e24e4868127d0064f3115eda4
5
5
  SHA512:
6
- metadata.gz: 624ff5f12bfb4e68643f789ba209aac93e97d53b6125b9c52dba377f7cc190310cd1992156a2ec5cabca5ff4da60daa9276c64a5230bde12213985c9320a57db
7
- data.tar.gz: d48b60175b550cbb0f23212d14705b226a9d369ad35cf58f7359a1222414a375b9df124f0909a780eaecd165065aa05f5e2d7d9ce0bbea0ceecca48527af1a53
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 = location[/(?<=^dfs:\/\/)[^\/]+\/(.*)/,1]
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 filename, s unless @@directory or filename =~ /^dfs:\/\//
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.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-02-23 00:00:00.000000000 Z
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.2.22
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
- ���C��1_+�Rӵ�(����^�fv��V{>��i��^[��k�#��15Y(�I�Wq�� o��E���ps��_���bkwDu��bX��&�UF
2
- ��0���]�C[Ƚ��͸h�ΐeߒzz��o�_��G�8}�~^?�:ȸ/c̤�uwoE�����+m<���*^}���ɾ
3
- d�|��Q���,N�=�ÐH���i ��
1
+ #����[���nAKP�]Y:��X����֘з��ٔs՝�����fšYZ��7H��K] Mۙ������������ÍmuE���P�X�Fh����i�:ަm]I~|"_SU�Ry�s�(+��<�}9p4�:P��B/6�G�ю��.�y��a�F���ʑ�5��]!E��Fn�}ʌ����n��E�R���eF��!�F�-%�
2
+ ;uw��j�&��98ZЀ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