From 7753328b25fabd941815265afd41758e617ed847 Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Fri, 6 Sep 2024 13:02:14 +0200 Subject: [PATCH] update rsmp_schema, bump patch version to 0.32.4 --- Gemfile | 1 + Gemfile.lock | 6 +++--- lib/rsmp/alarm_state.rb | 2 +- lib/rsmp/tlc/traffic_controller.rb | 4 ++-- lib/rsmp/version.rb | 2 +- rsmp.gemspec | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index 702bc03a..9a8f44c2 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source "https://rubygems.org" # Specify your gem's dependencies in rsmp.gemspec + gemspec diff --git a/Gemfile.lock b/Gemfile.lock index a47faf52..00a926ea 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,13 +1,13 @@ PATH remote: . specs: - rsmp (0.32.3) + rsmp (0.32.4) async (~> 2.16) async-io (~> 1.43) colorize (~> 1.1) logger (~> 1.6) ostruct (~> 0.6) - rsmp_schema (~> 0.7) + rsmp_schema (~> 0.8) GEM remote: https://rubygems.org/ @@ -77,7 +77,7 @@ GEM ostruct (0.6.0) rake (13.2.1) regexp_parser (2.9.2) - rsmp_schema (0.7.0) + rsmp_schema (0.8.1) json_schemer (~> 2.3.0) thor (~> 1.3.1) rspec (3.13.0) diff --git a/lib/rsmp/alarm_state.rb b/lib/rsmp/alarm_state.rb index 273bdf01..d614a2be 100644 --- a/lib/rsmp/alarm_state.rb +++ b/lib/rsmp/alarm_state.rb @@ -71,7 +71,7 @@ def resume # according to the rsmp core spec, the only time an alarm changes to unanknowledged, # is when it's activated. See: - # https://rsmp-nordic.org/rsmp_specifications/core/3.2/applicability/basic_structure.html#alarm-status + # https://rsmp-nordic.org/rsmp_specifications/core/3.2.0/applicability/basic_structure.html#alarm-status def activate change, @active, @acknowledged = !@active, true, false update_timestamp if change diff --git a/lib/rsmp/tlc/traffic_controller.rb b/lib/rsmp/tlc/traffic_controller.rb index 8245806b..eface8e0 100644 --- a/lib/rsmp/tlc/traffic_controller.rb +++ b/lib/rsmp/tlc/traffic_controller.rb @@ -678,7 +678,7 @@ def handle_s0005 status_code, status_name=nil, options={} case status_name when 'status' TrafficControllerSite.make_status @is_starting - when 'statusByIntersection' # from sxl 1.2 + when 'statusByIntersection' # from sxl 1.2.0 TrafficControllerSite.make_status([ { "intersection"=>"1", @@ -689,7 +689,7 @@ def handle_s0005 status_code, status_name=nil, options={} end def handle_s0006 status_code, status_name=nil, options={} - if Proxy.version_meets_requirement? options[:sxl_version], '>=1.2' + if Proxy.version_meets_requirement? options[:sxl_version], '>=1.2.0' log "S0006 is depreciated, use S0035 instead.", level: :warning end status = @emergency_routes.any? diff --git a/lib/rsmp/version.rb b/lib/rsmp/version.rb index 28c9e94f..3193936c 100644 --- a/lib/rsmp/version.rb +++ b/lib/rsmp/version.rb @@ -1,3 +1,3 @@ module RSMP - VERSION = "0.32.3" + VERSION = "0.32.4" end diff --git a/rsmp.gemspec b/rsmp.gemspec index 2ea0f456..d23ddff2 100644 --- a/rsmp.gemspec +++ b/rsmp.gemspec @@ -35,7 +35,7 @@ Gem::Specification.new do |spec| spec.add_dependency "async", "~> 2.16" spec.add_dependency "async-io", "~> 1.43" spec.add_dependency "colorize", "~> 1.1" - spec.add_dependency "rsmp_schema", "~> 0.7" + spec.add_dependency "rsmp_schema", "~> 0.8" spec.add_development_dependency "bundler", "~> 2.5" spec.add_development_dependency "rake", "~> 13.2"