rxfhelper 1.5.2 → 1.6.2

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: 2b5c7a604d12e76d1b67601e84cd6be90cb612378201bd63372b78d1204c6e13
4
- data.tar.gz: 2b98fa2dd3dadad088f65296cefe98b9bfd8ecf42a729eedf48bd34555bb8634
3
+ metadata.gz: ec2bc30b75c15a678fc71292fdb526629e7a853f53b240859876084b7241386d
4
+ data.tar.gz: 97aee822ce763d7107d684544165b361c4d2bda61d9ac51dca67e9676e255a09
5
5
  SHA512:
6
- metadata.gz: e529502ac52526e10625dcd5ddde3d9ad1c6e0941cfcbfe90639430a73359a17581e0b66fd16e1cfec3d1d9b7b0c84a47d5f8f26b177322e00652e059c94e8cc
7
- data.tar.gz: ad9971b83b6d3699ac06671625cdc3ad6222c8740328f119618c81d5efd78dc73d924481cd056066bfb3a4acb8330e09c530a2e96867876b7f1cd4c53fa76ef4
6
+ metadata.gz: 986b8fb3dbba78560bf0931bcbaab3c609600c1978a022a0b34cc2968f1a593032665d3417e5d36fdf7476b39aaec40daa07e5279fdf5a20f44bbc1d73d48b7f
7
+ data.tar.gz: 63e939066b5cbeb5781e8ced3160fd2278e6348a1898d23d286885ba16ef9d7068afb9573a3cbf73e850959bef010ea49bc876c6a152ef764a032bdb4a16bfa6
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
 
@@ -44,6 +45,16 @@ class RXFHelper < RXFileIO
44
45
 
45
46
  def self.call(s, val=nil)
46
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
+
47
58
  if val then
48
59
 
49
60
  name = s =~ /^sps:/ ? :pub : :set
@@ -135,6 +146,14 @@ class RXFHelper < RXFileIO
135
146
  def self.objectize(contents)
136
147
 
137
148
  doctype = contents.lines.first[/(?<=^<\?)\w+/]
149
+ return contents unless doctype
150
+
151
+ if doctype == 'xml' then
152
+ doc = Rexle.new(contents)
153
+ e = doc.root.element('summary/recordx_type')
154
+ doctype = e.text.to_s if e
155
+ end
156
+
138
157
  reg = RemoteDwsRegistry.new domain: 'reg.lookup', port: '9292'
139
158
  r = reg.get_key 'hkey_gems/doctype/' + doctype
140
159
 
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.2
4
+ version: 1.6.2
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-04-13 00:00:00.000000000 Z
38
+ date: 2022-05-01 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