rsmp 0.42.2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49c61e299fa55246bbee0c3c0bbd28f294dc652fdcb754020292738bdd4b7e2f
4
- data.tar.gz: 688d17de1f51cfd5a82b7c71b4d49db20365fdace976d481eaae93973400edd1
3
+ metadata.gz: a9f368cd8292402eeed0301ea65feee0e4ce5c88fd60e3c992d25d8b72060724
4
+ data.tar.gz: fc14b6c538ffb6674453cfe35d2067ca62cb0cf52a42030422c231cab995ce3c
5
5
  SHA512:
6
- metadata.gz: 981237d8987c178ef8a9bca82ad3c6735553bc04165680da82b4b60cef9f40db4349db5ab9faa7fd10612516796e1ea33759e12578d6e0a165b4d0c3a36666d8
7
- data.tar.gz: 2a0832841d760be46b2d507b391726734a1036dc191545c33f380fd27a3f4cce58e78272067ffaa51aebd97333c495b8624122055b0f89bef9df80df15f37b53
6
+ metadata.gz: fb4f875c05f517b3ddf9b8e966945bcc72bbb86278c03d85d08547cc44fac7589bf6de89ac370ff1ff5d931ef897e766fcdba7a46bddf9ea43baed8e2ea1576e
7
+ data.tar.gz: '095469321f19b0558c45ef4d683bcc0779b567ffa5ffe52a4364d7a603825ea27224c6fd418a416efd87089d1d629f346c04fb709e5929a199560d88f5073c26'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.42.2)
4
+ rsmp (0.42.3)
5
5
  async (~> 2.32)
6
6
  colorize (~> 1.1)
7
7
  io-endpoint (~> 0.15)
@@ -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
@@ -125,12 +125,12 @@ module RSMP
125
125
  # note that the type comes from the site config, while the version
126
126
  # comes from the Version message send by the site
127
127
  type = @site_settings['sxl']
128
- version = RSMP::Schema.sanitize_version(message.attribute('SXL'))
129
- RSMP::Schema.find_schema! type, version
128
+ sanitized_version = RSMP::Schema.sanitize_version(message.attribute('SXL'))
129
+ RSMP::Schema.find_schema! type, sanitized_version
130
130
 
131
- # store sanitized sxl version requested by site
131
+ # store raw sxl version from site (may be 2-part like "1.2"), so we echo it back unchanged
132
132
  # TODO should check agaist site settings
133
- @site_sxl_version = version
133
+ @site_sxl_version = message.attribute('SXL')
134
134
  rescue RSMP::Schema::UnknownSchemaError => e
135
135
  dont_acknowledge message, "Rejected #{message.type} message,", e.to_s
136
136
  end
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = '0.42.2'.freeze
2
+ VERSION = '0.42.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.2
4
+ version: 0.42.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin