rsmp 0.42.1 → 0.42.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rsmp/proxy/site/modules/status.rb +1 -1
- data/lib/rsmp/proxy/site/site_proxy.rb +5 -6
- data/lib/rsmp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9f368cd8292402eeed0301ea65feee0e4ce5c88fd60e3c992d25d8b72060724
|
|
4
|
+
data.tar.gz: fc14b6c538ffb6674453cfe35d2067ca62cb0cf52a42030422c231cab995ce3c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb4f875c05f517b3ddf9b8e966945bcc72bbb86278c03d85d08547cc44fac7589bf6de89ac370ff1ff5d931ef897e766fcdba7a46bddf9ea43baed8e2ea1576e
|
|
7
|
+
data.tar.gz: '095469321f19b0558c45ef4d683bcc0779b567ffa5ffe52a4364d7a603825ea27224c6fd418a416efd87089d1d629f346c04fb709e5929a199560d88f5073c26'
|
data/Gemfile.lock
CHANGED
|
@@ -144,7 +144,7 @@ module RSMP
|
|
|
144
144
|
# unsubscribes to all statuses (with all attributes) defined in the used SXL
|
|
145
145
|
def unsubscribe_from_all(component: nil)
|
|
146
146
|
component ||= main.c_id
|
|
147
|
-
catalogue = RSMP::Schema.status_catalogue(@sxl, sxl_version)
|
|
147
|
+
catalogue = RSMP::Schema.status_catalogue(@sxl, RSMP::Schema.sanitize_version(sxl_version))
|
|
148
148
|
status_list = catalogue.flat_map do |status_code_id, names|
|
|
149
149
|
names.map { |name| { 'sCI' => status_code_id.to_s, 'n' => name.to_s } }
|
|
150
150
|
end
|
|
@@ -50,8 +50,7 @@ module RSMP
|
|
|
50
50
|
|
|
51
51
|
def handshake_complete
|
|
52
52
|
super
|
|
53
|
-
|
|
54
|
-
log "Connection to site #{@site_id} established, using core #{@core_version}, #{@sxl} #{sanitized_sxl_version}",
|
|
53
|
+
log "Connection to site #{@site_id} established, using core #{@core_version}, #{@sxl} #{@site_sxl_version}",
|
|
55
54
|
level: :info
|
|
56
55
|
start_watchdog
|
|
57
56
|
end
|
|
@@ -126,12 +125,12 @@ module RSMP
|
|
|
126
125
|
# note that the type comes from the site config, while the version
|
|
127
126
|
# comes from the Version message send by the site
|
|
128
127
|
type = @site_settings['sxl']
|
|
129
|
-
|
|
130
|
-
RSMP::Schema.find_schema! type,
|
|
128
|
+
sanitized_version = RSMP::Schema.sanitize_version(message.attribute('SXL'))
|
|
129
|
+
RSMP::Schema.find_schema! type, sanitized_version
|
|
131
130
|
|
|
132
|
-
# store sxl version
|
|
131
|
+
# store raw sxl version from site (may be 2-part like "1.2"), so we echo it back unchanged
|
|
133
132
|
# TODO should check agaist site settings
|
|
134
|
-
@site_sxl_version = message.attribute
|
|
133
|
+
@site_sxl_version = message.attribute('SXL')
|
|
135
134
|
rescue RSMP::Schema::UnknownSchemaError => e
|
|
136
135
|
dont_acknowledge message, "Rejected #{message.type} message,", e.to_s
|
|
137
136
|
end
|
data/lib/rsmp/version.rb
CHANGED