drb_fileclient-reader 0.1.4 → 0.1.6

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: 150c2c52f8ee2df3b92f2a228f5868f59badf14bb9c572cb61c54ea638ce3ea9
4
- data.tar.gz: e18f9847a150ce4cfed1990ca572dfd33398c69e24e4868127d0064f3115eda4
3
+ metadata.gz: 232fa62b301e0f22c918663addced5795431aa0403f2654d2e329c5cdab11d4f
4
+ data.tar.gz: 675fb32bc5cfe244242a63a9134382fb03ffcb7ea0e0de56aeb8397eeebfd3fc
5
5
  SHA512:
6
- metadata.gz: 28337b3466a7e1294af6f0e621ec360705f930f0c30f2f031a46da581399f09b74c60c13db166016ca93a9831bc73da9d39c80e88f985d7171cdaf6a5e8e1976
7
- data.tar.gz: 14b3dde76774b4c4f28a869bb7e7c03a04362a4c54b90f41e6c17ad6d992acb4a0d447522ba99cba2f644596e31b8125016201ffd93d1ba644e1f394771fb4b1
6
+ metadata.gz: 6b98c0342db87fe17849b8d3010df85133b22d7bbc71c87c3d7793f03f682c988287715f8336c8d167233ca4a59d30a08c0f32b7a1959bdd9608b2ee0324f533
7
+ data.tar.gz: 68977c60b8a1ff865a4a16fdef7358cee5e18dd217952452069f123eaeefd58b405f5c6bcfc546a41719ecf78794f1f396956691d9b7096a38510837cd2680d8
checksums.yaml.gz.sig CHANGED
Binary file
@@ -27,18 +27,21 @@ class DRbFileClientReader
27
27
 
28
28
  end
29
29
 
30
- def exists?(filename=@@filename)
30
+ def exist?(filename=@@filename)
31
31
 
32
- return File.exists? filename unless @@directory or filename =~ /^dfs:\/\//
32
+ return File.exist? filename unless @@directory or filename =~ /^dfs:\/\//
33
33
 
34
34
  if filename =~ /^dfs:\/\// then
35
- @@file, filename2 = parse_path(filename)
35
+
36
+ file, filename2 = parse_path(filename)
37
+ @@file ||= file
38
+
36
39
  else
37
40
 
38
41
  filename2 = File.join(@@directory, filename)
39
42
  end
40
43
 
41
- @@file.exists?(filename2)
44
+ @@file.exist?(filename2)
42
45
 
43
46
  end
44
47
 
@@ -49,7 +52,8 @@ class DRbFileClientReader
49
52
  return File.read(filename) unless @@directory or filename =~ /^dfs:\/\//
50
53
 
51
54
  if filename =~ /^dfs:\/\// then
52
- @@file, path = parse_path(filename)
55
+ file, path = parse_path(filename)
56
+ @@file ||= file
53
57
  else
54
58
  path = File.join(@@directory, filename)
55
59
  end
@@ -77,7 +81,8 @@ class DfsFile
77
81
 
78
82
  @client = DRbFileClientReader.new
79
83
 
80
- def self.exists?(filename) @client.exists?(filename) end
84
+ def self.exist?(filename) @client.exist?(filename) end
85
+ def self.exists?(filename) @client.exist?(filename) end
81
86
  def self.read(filename) @client.read(filename) end
82
87
 
83
88
  end
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
4
+ version: 0.1.6
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-08-17 00:00:00.000000000 Z
38
+ date: 2023-01-16 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.3.7
86
+ rubygems_version: 3.4.1
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
- #����[���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�&��98ZЀhn�7 A�gJ�Y�tҢ�}�vb�o�M�����s�d\u�F���+�1���l�HSd^/?eI9�DZ�Jl��P�Ϡ�_2ߵjB��f��c� ����.��v��K��"i,��\y$��i
3
- Hv��9��H��� ����t
1
+ X��M+�
2
+ ���/H"��p8��52M �?�PW!�7�b����5���X��:z�L3��0N
3
+ Sa�� ��� cL��]\���z:ßPmZ�-�� $^�]% ��Cp��B;~ρ�r#.y��äLlo���+�~v��O�8���M��J������b�pqal��*�t���y=4��^����嫷�����%'u���Ēb�݅��P;4A�����)Zf��k�����?�����O�����ԝ��'�f=��j��/Q��'��?y8���T�߽rT�)��Z��k_��-���օ����=�-N�S�/V�{����8��sH��M���ҳ�|��ڞ�jîO�Z�0���Ѹ}�WYp�Nj�Z�޶��NA6��m