drb_reg_client 0.1.4 → 0.2.0

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: a8ecba096003098c47b52bbe3938c4ccd813b74a6c46e34e47a10aaff767365f
4
- data.tar.gz: 292fac7e5040ed8d8c0592bbac09e6d365fe9eeb8b85f380f5da7dbf5b0f3f53
3
+ metadata.gz: 630edfba92b374d8933dc085dcd98b373cc682ad95c23b891e57366a1d44b953
4
+ data.tar.gz: ecae0ef882e657b676506cc05e6b80bb0ab5bb48cdcc09cb5b5e51f36c1fc30a
5
5
  SHA512:
6
- metadata.gz: 2232003661e9a5a0c87a2fb079a36484183ac79225d73f9305f9b494309038bb3a15a30559ea6f515c6c79835334dd64b44dab73bc6520bfcf46a02678cd93d9
7
- data.tar.gz: 138cc5c3cc3ab83bb2a8ec293370b2bf81581ef2f2cd5cac55a511e1d2c21c083749890fbdf29766bba19a8a2235cec8634e6890a72d89eb26c1a4c0e0b188ec
6
+ metadata.gz: dae2da72692772cdf1653037deb323c4c0751df9503f8658bea5672959b15136b052083cf6c013f3a9c1f965bb0944e823f370c18d4c78725d64d314ee527e85
7
+ data.tar.gz: ad76f8e7bef8fc7b1f3c37fe64bfbcf6f8423dc5c9dbdf8e6337dd5e10b0085066caf6b9634db9ecff78b1a173e1c1950a96be893e472b21629693f04c60e885
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -25,7 +25,7 @@ class DRbRegClient
25
25
 
26
26
  def get(s)
27
27
 
28
- raw_uri, path = s[/(?<=reg:\/\/).*/].split('/',2)
28
+ raw_uri, raw_path = s[/(?<=reg:\/\/).*/].split('/',2)
29
29
  host, port = raw_uri.split(':')
30
30
  port ||= @port
31
31
 
@@ -35,7 +35,27 @@ class DRbRegClient
35
35
  end
36
36
 
37
37
  @reg = DRbObject.new nil, "druby://#{host}:#{port}"
38
- get_key(path, auto_detect_type: true)
38
+
39
+ path, raw_q = raw_path.split('?',2)
40
+
41
+ r = get_key(path, auto_detect_type: true)
42
+
43
+ if raw_q then
44
+
45
+ q = raw_q[/(?<=q\=)[^$]+/]
46
+
47
+ if q then
48
+ attr_val = r.attributes[q.to_sym]
49
+ Time.parse(attr_val) if q.to_sym == :last_modified
50
+ end
51
+
52
+ else
53
+
54
+ return r
55
+
56
+ end
57
+
58
+
39
59
 
40
60
  end
41
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drb_reg_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  Q8EYGbOAqtb0phUBPLNTXJ8ToIk7zuFB7wu7K3L9gLHolnbnZ6fZOLsmhHuOAXue
36
36
  w7VTDsV1LRF3S+/km8Tt5tpO
37
37
  -----END CERTIFICATE-----
38
- date: 2020-08-28 00:00:00.000000000 Z
38
+ date: 2020-09-02 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rexle
@@ -43,20 +43,20 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.4'
46
+ version: '1.5'
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 1.4.3
49
+ version: 1.5.8
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '1.4'
56
+ version: '1.5'
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 1.4.3
59
+ version: 1.5.8
60
60
  description:
61
61
  email: james@jamesrobertson.eu
62
62
  executables: []
metadata.gz.sig CHANGED
Binary file