rsmp 0.33.4 → 0.34.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: 7695095d716cbc6f3b6713584bf7b78fc2323a6d9ea80abe28c0ebd8eddfa14b
4
- data.tar.gz: b9efc9a38e5ea2020a2038c28bfbf6c45e2555b4804f763726750995e0c40d5c
3
+ metadata.gz: 7a276c4a05fda97cc694bc72fcd0efe4b40fe965133dcd9dcf8a6e04e72a43f5
4
+ data.tar.gz: 054ce36924aad49963eafe5aeb1874661966568344641199f779e1250471e7c0
5
5
  SHA512:
6
- metadata.gz: 9ccd49421abfa90e1d0dd3c8e84e6346623a4ee3eaf7aa9af8183974e0f867f520c37562d8468338179dd4425aded09f18cd169b9921744f61d368a975c7cf52
7
- data.tar.gz: 6feabda3a5a2ba01042fb594e7c479545d15c48b4d41d22c0f0d0121f15d4d3e4f3c23b2e3e4f7da7f853e4746146bf91c8999e6decddb33846ef60d2a98cd0a
6
+ metadata.gz: 8a978b00b314a51f18a6004de22bb26da98e93790d86b02f805c3912e8190ce861a8787c354b63d6186f0ff5bf5c175a08e63f1056006b33e04e1071ea528a52
7
+ data.tar.gz: 8585887dd59f129fd0b2e62ff94fb5709c575fcf086db789cfceace31499268641be8ee46716adc835fd2970ed853fa24e6616bca9501707f785ea0fab7a56f9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.33.4)
4
+ rsmp (0.34.0)
5
5
  async (~> 2.16)
6
6
  async-io (~> 1.43)
7
7
  colorize (~> 1.1)
@@ -634,7 +634,7 @@ module RSMP
634
634
  'S0015', 'S0016', 'S0017', 'S0018', 'S0019', 'S0020', 'S0021',
635
635
  'S0022', 'S0023', 'S0024', 'S0026', 'S0027', 'S0028',
636
636
  'S0029', 'S0030', 'S0031', 'S0032', 'S0033', 'S0035',
637
- 'S0091', 'S0092', 'S0095', 'S0096', 'S0097',
637
+ 'S0091', 'S0092', 'S0095', 'S0096', 'S0097', 'S0098',
638
638
  'S0205', 'S0206', 'S0207', 'S0208'
639
639
  return send("handle_#{code.downcase}", code, name, options)
640
640
  else
@@ -1008,6 +1008,20 @@ module RSMP
1008
1008
  end
1009
1009
  end
1010
1010
 
1011
+ def handle_s0098 status_code, status_name=nil, options={}
1012
+ settings = node.site_settings.slice('components','signal_plans','inputs','startup_sequence')
1013
+ json = JSON.generate(settings)
1014
+ case status_name
1015
+ when 'config'
1016
+ TrafficControllerSite.make_status json
1017
+ when 'timestamp'
1018
+ now = clock.to_s
1019
+ TrafficControllerSite.make_status now
1020
+ when 'version'
1021
+ TrafficControllerSite.make_status Digest::MD5.hexdigest(json)
1022
+ end
1023
+ end
1024
+
1011
1025
  def handle_s0205 status_code, status_name=nil, options={}
1012
1026
  case status_name
1013
1027
  when 'start'
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = "0.33.4"
2
+ VERSION = "0.34.0"
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.33.4
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin