rsmp 0.13.3 → 0.13.6

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: a7fbae6ef01f7b0d6149360423fb4de524584cf74c7fbf1f5300ebd4115a43e3
4
- data.tar.gz: 879d0da2780de89a5ef563b62ca36c4728313389671da5e33d0011c94bba9dac
3
+ metadata.gz: 4cda7f9e8c968b04c5b584c0e9cb9af6ec139f955c3c305ddcb6d00b064d377f
4
+ data.tar.gz: 57adfef975bb4cdb7adad247f8a3aebbd04d081e6cf92655b86925008c35f831
5
5
  SHA512:
6
- metadata.gz: 2e905d13e37c7af948dc978cbb84257aeb7d292e605f9f98238a81311eb2344e37a1b3699998c75bef81ce844bb28564cecc581c6a3410a2cce76c558e7d6c6c
7
- data.tar.gz: c2d737778d4e08f0c80a94af80953d47af23e93ca576ee9f468113c985b89221c8cf6a42bade00e99b5ded549bbe48fdb10541c8e721a061f4b5f8dac672036d
6
+ metadata.gz: 0e525d88e1b2f6a71a62ed3c711eee82c918a8b14d3f893b2d8ecf4351f7d4516e39ba4be6462bd398ab01be543c86a238e3de37c38bc785f18a1cc3fb2e8e6c
7
+ data.tar.gz: ff0d0e1402d27b8952355cc3c65a2cb78166e334b35e281cf8707b063eb35ee606126d82650d7d94d37709cb70fbcf4e93710760bb659de13075bd8e8ce1792c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.13.3)
4
+ rsmp (0.13.6)
5
5
  async (~> 1.29.1)
6
6
  async-io (~> 1.32.2)
7
7
  colorize (~> 0.8.1)
@@ -27,7 +27,7 @@ GEM
27
27
  builder (3.2.4)
28
28
  childprocess (4.1.0)
29
29
  colorize (0.8.1)
30
- console (1.15.0)
30
+ console (1.15.3)
31
31
  fiber-local
32
32
  contracts (0.17)
33
33
  cucumber (7.1.0)
@@ -79,9 +79,9 @@ GEM
79
79
  multi_test (0.1.2)
80
80
  nio4r (2.5.8)
81
81
  rake (13.0.6)
82
- regexp_parser (2.4.0)
83
- rsmp_schemer (0.4.0)
84
- json_schemer (~> 0.2.18)
82
+ regexp_parser (2.5.0)
83
+ rsmp_schemer (0.4.1)
84
+ json_schemer (~> 0.2.21)
85
85
  rspec (3.10.0)
86
86
  rspec-core (~> 3.10.0)
87
87
  rspec-expectations (~> 3.10.0)
data/config/tlc.yaml CHANGED
@@ -8,6 +8,7 @@ components:
8
8
  main:
9
9
  TC:
10
10
  cycle_time: 6
11
+ ntsOId: KK+AG9998=001TC000
11
12
  signal_group:
12
13
  A1:
13
14
  A2:
data/lib/rsmp/proxy.rb CHANGED
@@ -644,11 +644,8 @@ module RSMP
644
644
  end
645
645
 
646
646
  def set_nts_message_attributes message
647
- return unless main
648
- ntsOId = main.ntsOId
649
- xNId = main.xNId
650
- message.attributes['ntsOId'] = ntsOId if ntsOId
651
- message.attributes['xNId'] = xNId if xNId
647
+ message.attributes['ntsOId'] = (main && main.ntsOId) ? main.ntsOId : ''
648
+ message.attributes['xNId'] = (main && main.xNId) ? main.xNId : ''
652
649
  end
653
650
  end
654
651
  end
@@ -375,6 +375,7 @@ module RSMP
375
375
  end
376
376
 
377
377
  def build_component id:, type:, settings:{}
378
+ settings ||= {}
378
379
  if type == 'main'
379
380
  ComponentProxy.new id:id, node: self, grouped: true,
380
381
  ntsOId: settings['ntsOId'], xNId: settings['xNId']
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = "0.13.3"
2
+ VERSION = "0.13.6"
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.13.3
4
+ version: 0.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-12 00:00:00.000000000 Z
11
+ date: 2022-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async