rxfhelper 1.5.1 → 1.6.1

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: 74dc7c23637dbf7b6f6a2ee5c237020d95e1c48f29de1fd8a17affe8afcb6b99
4
- data.tar.gz: 191f21a4497789777a0de9bac9d5c18159437690d50ff9ace21022c437d54f3c
3
+ metadata.gz: 075b66a41ee646bf81bd00db073d228c9c5d6c7255c6c7e4d8cb2eb143077170
4
+ data.tar.gz: 6a2afe6affbb5e0164e0ac9d5abd23dbb7ccf4cf5b668cf139549bd55cf11609
5
5
  SHA512:
6
- metadata.gz: 55c5d3f111b30502f4c2f9a805897912f6c10c6cae8180d61f59872c662fd5043031d377ae7963a07688f2ff54175045f0007de159ca2962795ab6906e992067
7
- data.tar.gz: 4719bb2bce0e5d3c3b22340ba2ce7f177f34be561d144649d01140648bb76f7146bb0a39012290d7b73dab4b97dd58e51833a0bfbb645391fc7d6c5d651780d0
6
+ metadata.gz: c810ecaa40355195c3f3eda699a9aca66f40a21ea72db536f0d158cd2137c5c1626caa5fe1672e94bd484e30825d6452642e72a32eae640360badd1ad7e888e3
7
+ data.tar.gz: 24dd106b4aaaadf4dd5d746799e061bbfe67064c1f23dd25f7bb7b8f6e42a99d6dad21a44be2eaacc5a5055994047d49f08483757df2c0f16de2c1a1bbe3ddd6
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfhelper.rb CHANGED
@@ -7,6 +7,7 @@ require 'sps-pub'
7
7
  require 'drb_reg_client'
8
8
  require 'remote_dwsregistry'
9
9
  require 'rxfileio'
10
+ require 'onedrb'
10
11
 
11
12
 
12
13
 
@@ -17,7 +18,8 @@ module RXFHelperModule
17
18
  include RXFileIOModule
18
19
 
19
20
  def FileX.exists?(s) RXFHelper.exists?(s) end
20
- def FileX.filetype(x) RXFHelper.filetype(s) end
21
+ def FileX.filetype(s) RXFHelper.filetype(s) end
22
+ def FileX.read(s) RXFHelper.read(s)[0] end
21
23
 
22
24
  end
23
25
 
@@ -43,6 +45,16 @@ class RXFHelper < RXFileIO
43
45
 
44
46
  def self.call(s, val=nil)
45
47
 
48
+ if s.start_with? 'odrb' then
49
+
50
+ if s =~ /^odrb:\/\/[^:]+:\d+/ then
51
+ return OneDrb::Client.call(s)
52
+ else
53
+ return OneDrb::Client.call(s, port: '57844')
54
+ end
55
+
56
+ end
57
+
46
58
  if val then
47
59
 
48
60
  name = s =~ /^sps:/ ? :pub : :set
@@ -53,8 +65,6 @@ class RXFHelper < RXFileIO
53
65
  uri, val = s.split(/=/)
54
66
  self.set uri, val
55
67
 
56
- els
57
-
58
68
  else
59
69
 
60
70
  self.get s
@@ -136,6 +146,13 @@ class RXFHelper < RXFileIO
136
146
  def self.objectize(contents)
137
147
 
138
148
  doctype = contents.lines.first[/(?<=^<\?)\w+/]
149
+
150
+ if doctype == 'xml' then
151
+ doc = Rexle.new(contents)
152
+ e = doc.root.element('summary/recordx_type')
153
+ doctype = e.text.to_s if e
154
+ end
155
+
139
156
  reg = RemoteDwsRegistry.new domain: 'reg.lookup', port: '9292'
140
157
  r = reg.get_key 'hkey_gems/doctype/' + doctype
141
158
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxfhelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  MrrH8cS6bqJRPQqEL1FsPmXfQpp86RvPSr0WqNSRnYEUCmqL0l2pYrXdPAyBLcji
36
36
  X1jPyhH0sl/QdPdaUnsigze+
37
37
  -----END CERTIFICATE-----
38
- date: 2022-03-06 00:00:00.000000000 Z
38
+ date: 2022-04-30 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rsc
@@ -43,20 +43,20 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.4'
46
+ version: '0.5'
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.4.5
49
+ version: 0.5.0
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: '0.4'
56
+ version: '0.5'
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 0.4.5
59
+ version: 0.5.0
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: remote_dwsregistry
62
62
  requirement: !ruby/object:Gem::Requirement
@@ -137,6 +137,26 @@ dependencies:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: 0.5.5
140
+ - !ruby/object:Gem::Dependency
141
+ name: onedrb
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '0.4'
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: 0.4.1
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '0.4'
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 0.4.1
140
160
  description:
141
161
  email: digital.robertson@gmail.com
142
162
  executables: []
metadata.gz.sig CHANGED
Binary file