rsmp 0.42.1 → 0.42.2
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/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: 49c61e299fa55246bbee0c3c0bbd28f294dc652fdcb754020292738bdd4b7e2f
|
|
4
|
+
data.tar.gz: 688d17de1f51cfd5a82b7c71b4d49db20365fdace976d481eaae93973400edd1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 981237d8987c178ef8a9bca82ad3c6735553bc04165680da82b4b60cef9f40db4349db5ab9faa7fd10612516796e1ea33759e12578d6e0a165b4d0c3a36666d8
|
|
7
|
+
data.tar.gz: 2a0832841d760be46b2d507b391726734a1036dc191545c33f380fd27a3f4cce58e78272067ffaa51aebd97333c495b8624122055b0f89bef9df80df15f37b53
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
-
version = message.attribute
|
|
130
|
-
RSMP::Schema.find_schema! type, version
|
|
128
|
+
version = RSMP::Schema.sanitize_version(message.attribute('SXL'))
|
|
129
|
+
RSMP::Schema.find_schema! type, version
|
|
131
130
|
|
|
132
|
-
# store sxl version requested by site
|
|
131
|
+
# store sanitized sxl version requested by site
|
|
133
132
|
# TODO should check agaist site settings
|
|
134
|
-
@site_sxl_version =
|
|
133
|
+
@site_sxl_version = version
|
|
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