rsmp 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86e6971159c3de6157fdb7fd34884adc1a62aff9fee429798d7841b8c66be7cb
4
- data.tar.gz: 2860409f7063b95317fb7bac60a12fdd50d0a48ae48cb97d888b452157ee9444
3
+ metadata.gz: cae4c89c10f18699cf2dd73c1f09b9b43d8acc1b0f576f3ca875e4d420e05575
4
+ data.tar.gz: 9a94b68a88cb00dbfe5adee059f69c5406ef48d91bc5cd5909976c585868ff04
5
5
  SHA512:
6
- metadata.gz: ab3400ead4fe96f24ff033f48bf8c47a5eb1b7497ffff876232b5797a6b99ab73907469b2699d2159ad15d9a7c06b3c189c936e16dc1d693f31c513ccd91b984
7
- data.tar.gz: 51b681148cad227590653ac1d7834e5d4375374c6d89228bdaa019896cb882560ca3b71c225d0db473bde05a8b34f7788078f02ab48c9a50d94f47cc6791df23
6
+ metadata.gz: 19c8cb4f8d237320a32a1cf4a99d0a41914aa5e948a00d7409eade1b15d587d3c9e9f08177fff6141749d73401ad1df9b732d21e32c6e07cd4a807aad29b1847
7
+ data.tar.gz: 9d42d8ce166cc994ff856dc13e77a8d7480a6e7e65d607f8993350006f7eb957439ddd910b4570e2b570050a6bd52dc4940b6eab9dd60a8631bb22e3102b488c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.23.0)
4
+ rsmp (0.24.0)
5
5
  async (~> 2.6.4)
6
6
  async-io (~> 1.36.0)
7
7
  colorize (~> 0.8.1)
@@ -260,7 +260,7 @@ module RSMP
260
260
  def handle_m0002 arg, options={}
261
261
  @node.verify_security_code 2, arg['securityCode']
262
262
  if TrafficControllerSite.from_rsmp_bool(arg['status'])
263
- switch_plan arg['timeplan'], source: 'force'
263
+ switch_plan arg['timeplan'], source: 'forced'
264
264
  else
265
265
  switch_plan 0, source: 'startup' # TODO use clock/calender
266
266
  end
@@ -664,10 +664,20 @@ module RSMP
664
664
  case status_name
665
665
  when 'status'
666
666
  TrafficControllerSite.make_status @is_starting
667
+ when 'statusByIntersection' # from sxl 1.2
668
+ TrafficControllerSite.make_status([
669
+ {
670
+ "intersection"=>"1",
671
+ "startup" => TrafficControllerSite.to_rmsp_bool(@is_starting)
672
+ }
673
+ ])
667
674
  end
668
675
  end
669
676
 
670
677
  def handle_s0006 status_code, status_name=nil, options={}
678
+ if Proxy.version_meets_requirement? options[:sxl_version], '>=1.2'
679
+ log "S0006 is depreciated, use S0035 instead.", level: :warning
680
+ end
671
681
  case status_name
672
682
  when 'status'
673
683
  TrafficControllerSite.make_status @emergency_routes.include?(@last_emergency_route)
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = "0.23.0"
2
+ VERSION = "0.24.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-04 00:00:00.000000000 Z
11
+ date: 2023-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async