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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcd17284d8b25c5e1f13822ac915ae2aea99f35d5f16a7d60e75de6a5375ec6f
4
- data.tar.gz: 1219b2fa5db461da843aa8e34044ce233c0d5f4efe36fe06d065a97a4690f436
3
+ metadata.gz: 060d6a3577835a6a55a136dc720ee33c47cf31fa77a7861648e8e04ce8c3a121
4
+ data.tar.gz: 812266284826603f59cd99d752967ec8fa4ff8e418f41bd29c28b44b46d50056
5
5
  SHA512:
6
- metadata.gz: 17dad46db34c4de8354b0a2e74081844e79b9e7ad60f3a494a4d1382f047892b35358077c2025b3efc69079ee8852a447a39238329e817a213700f719545556f
7
- data.tar.gz: 1e40245b0342bc97eb8f3500f22c15113b0e57cd82e208f07f3d2af3d5d8cf758bfb55e9f0736a35024060ffc62e1d04ee415966e54552a1d46147014d6e5f77
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 s =~ /=/ then
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.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-02 00:00:00.000000000 Z
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