rsmp 0.54.0 → 0.54.1

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: 634c31243e8753c8e71a0617a3bd9a2747a320fdeb8b78827746095202eb0092
4
- data.tar.gz: ff873bb9211175d9577595dabe5e747f47fceb556e584d33f1ee6c1d86db2420
3
+ metadata.gz: 786d6b1e18cbb59c104770c0eedf27416a0f2cfb32cd76d783e36a557e19f129
4
+ data.tar.gz: 99fecea544b38a876e99d876bf1e999ca0801e2b9ea546d954625007a6a31627
5
5
  SHA512:
6
- metadata.gz: e774cdf65f73e20fa881bc269011afb791c0b695eabdbe2c1aa4c953ad408c2bc5deb21894820829cbde16c9c2448ddd64c685d4bec638d0d049a93e9ac36ad8
7
- data.tar.gz: b9eb1b8cd9abedc414236b74749b9ba818619137a95b5edae74fc4881b9299a1fae6f804001858b42dc4ff668d5634aa32261fd44eba7f0e8bc819b4fcf016da
6
+ metadata.gz: 97f94d8c5b1c67bf978473660b53d6b66e44fae11ea51e28ed12355aebf8463122cf9770bfdb03bb801302e8d8e30adebbc6e5e7e2e3c4f368144c2465d77c32
7
+ data.tar.gz: de18469283be6e2ecdb3087b00b4da63b6feac9e748ee8845a403773def48ae93d566cadea010923c86dfdfd206e37a8a11d9596a0880e79953648c013dcfb64
data/CHANGELOG.md CHANGED
@@ -749,14 +749,12 @@ Initial release.
749
749
  ## 0.53.3
750
750
  - prevent possible sxl negotiation race
751
751
 
752
- ## 0.54.4
752
+ ## 0.54.0
753
753
  - accept only the sxl version the supervisor has configured
754
754
  - require configured sxl versions to use strick SemVer format major.minor.patch
755
-
756
- ## Unreleased
757
-
758
- - support ordered SXL version lists: sites start with the first version; supervisors accept any listed version
759
- - add optional testing hints in legacy-only initial Version rejections, allowing sites with version lists to reconnect using an allowed hinted version
760
- - retain hinted selections per supervisor across reconnects and rejections, while fixed-version sites ignore hints
755
+ - support ordered SXL version lists
756
+ - support sxl hint test convention
761
757
  - clear subscriptions and buffered messages when switching SXL versions
762
- - document that hint-based switching is a testing convention outside the RSMP Core specification
758
+
759
+ ## 0.54.1
760
+ - check that sxl version match in version request/response for core < 3.3.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.54.0)
4
+ rsmp (0.54.1)
5
5
  async (~> 2.45)
6
6
  colorize (~> 1.1)
7
7
  io-endpoint (~> 0.17)
@@ -218,9 +218,14 @@ module RSMP
218
218
  @accepted_sxls, @rejected_sxls = message.sxls.partition { |item| item['status'] == 'ok' }
219
219
  @use_alarms = message.attributes.fetch('useAlarms', true)
220
220
  else
221
- primary = primary_configured_sxl
221
+ primary = @sxls.first
222
222
  raise HandshakeError, 'Legacy Version response received, but no SXL is configured' unless primary
223
223
 
224
+ returned = message.attribute('SXL')
225
+ unless RSMP::Schema.sanitize_version(returned) == primary['version']
226
+ raise HandshakeError, "Supervisor returned SXL #{returned}, but the site offered #{primary['version']}"
227
+ end
228
+
224
229
  @accepted_sxls = [primary]
225
230
  @rejected_sxls = []
226
231
  end
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = '0.54.0'.freeze
2
+ VERSION = '0.54.1'.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.54.0
4
+ version: 0.54.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin
@@ -1438,7 +1438,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1438
1438
  - !ruby/object:Gem::Version
1439
1439
  version: '0'
1440
1440
  requirements: []
1441
- rubygems_version: 4.0.10
1441
+ rubygems_version: 4.0.20
1442
1442
  specification_version: 4
1443
1443
  summary: RoadSide Message Protocol (RSMP) library.
1444
1444
  test_files: []