rxfhelper 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rxfhelper.rb +17 -2
- data.tar.gz.sig +0 -0
- metadata +22 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 060d6a3577835a6a55a136dc720ee33c47cf31fa77a7861648e8e04ce8c3a121
|
4
|
+
data.tar.gz: 812266284826603f59cd99d752967ec8fa4ff8e418f41bd29c28b44b46d50056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '07890adc15380038c077c2b5f19a9800d6e8ef0d3cbd4be82cd6c614e12a70a970d164a5a1f0ab74c5904fa92606f89d713e01a429ad0d3746da6d0336f20f99'
|
7
|
+
data.tar.gz: aa32bbf3d5946ecb10569c08dae1eba84fd62f6691bd9100c5489325a4e9969f19de56e83d9230da8c199ca791f568e6b4942a60054b24cfdf6f0ab0c95140bd
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rxfhelper.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
# file: rxfhelper.rb
|
4
4
|
|
5
5
|
require 'rsc'
|
6
|
+
require 'sps-pub'
|
6
7
|
require 'drb_reg_client'
|
7
8
|
require 'remote_dwsregistry'
|
8
9
|
require 'rxfileio'
|
@@ -40,13 +41,20 @@ class RXFHelper < RXFileIO
|
|
40
41
|
using ColouredText
|
41
42
|
|
42
43
|
|
43
|
-
def self.call(s)
|
44
|
+
def self.call(s, val)
|
44
45
|
|
45
|
-
if
|
46
|
+
if val then
|
47
|
+
|
48
|
+
name = s =~ /^sps:/ ? :pub : :set
|
49
|
+
self.method(name).call(s, val)
|
50
|
+
|
51
|
+
elsif s =~ /=/
|
46
52
|
|
47
53
|
uri, val = s.split(/=/)
|
48
54
|
self.set uri, val
|
49
55
|
|
56
|
+
els
|
57
|
+
|
50
58
|
else
|
51
59
|
|
52
60
|
self.get s
|
@@ -140,6 +148,13 @@ class RXFHelper < RXFileIO
|
|
140
148
|
obj
|
141
149
|
end
|
142
150
|
|
151
|
+
def self.pub(s, value)
|
152
|
+
|
153
|
+
r = s.match(/(?<=sps:\/\/)(?<host>[^\/:]+):?(?<port>\d+)?\/(?<topic>.*)/)
|
154
|
+
SPSPub.notice "%s: %s" % [r[:topic], value], host: r[:host],
|
155
|
+
port: r[:port] || '59000'
|
156
|
+
|
157
|
+
end
|
143
158
|
|
144
159
|
def self.read(x, h={})
|
145
160
|
|
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.
|
4
|
+
version: 1.5.0
|
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-
|
38
|
+
date: 2022-03-03 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rsc
|
@@ -117,6 +117,26 @@ dependencies:
|
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: 0.2.2
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: sps-pub
|
122
|
+
requirement: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0.5'
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 0.5.5
|
130
|
+
type: :runtime
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0.5'
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 0.5.5
|
120
140
|
description:
|
121
141
|
email: digital.robertson@gmail.com
|
122
142
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|