rsmp 0.48.0 → 0.48.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/rsmp/collect/command_matcher.rb +1 -0
- data/lib/rsmp/proxy/supervisor/modules/commands.rb +8 -1
- data/lib/rsmp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e7604bb4ca158d85f6c21f6b6d5c309d5ff0a716d875bdfd89074ff7405784f
|
|
4
|
+
data.tar.gz: 5533038b6986bab14162789688ded65984b0567b3d39d1aa1f83ae34ab9402e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9c3a5b15a0f8e73a13bfa1df9462ac930f86a26e7d59af60959c75c251fa6a731024ed4b7a749c0d6ef1c962914dbd9794f293e8b03fd9080ffc8be9cd1dd3b
|
|
7
|
+
data.tar.gz: ccd011065b7bfcc6f65adf506b9c5e1b5ec6702900af7a2110437a8653533b08ebd097988a604964e7dc619fccede56c6a9c7c3e4af08cc7234ad1342b831cbc
|
data/CHANGELOG.md
CHANGED
|
@@ -699,3 +699,6 @@ Initial release.
|
|
|
699
699
|
- return `unknown` for unimplemented commands and statuses instead of rejecting the whole request
|
|
700
700
|
- omit legacy NTS message attributes from outgoing Core 3.3.0 messages
|
|
701
701
|
- `CORE_VERSION` or `SXLS` environment variables with command line options `--core` and `--sxls`
|
|
702
|
+
|
|
703
|
+
## 0.48.1
|
|
704
|
+
- fix command responses and collectors for `v=nil` with `age=undefined` or `age=unknown`
|
data/Gemfile.lock
CHANGED
|
@@ -69,6 +69,13 @@ module RSMP
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
def mark_commands_undefined(rvs)
|
|
73
|
+
rvs.each do |item|
|
|
74
|
+
item['age'] = 'undefined'
|
|
75
|
+
item['v'] = nil
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
72
79
|
def execute_commands(message, component_id, rvs)
|
|
73
80
|
component = @site.find_component component_id
|
|
74
81
|
commands = simplify_command_requests message.attributes['arg']
|
|
@@ -82,7 +89,7 @@ module RSMP
|
|
|
82
89
|
rescue UnknownComponent
|
|
83
90
|
log "Received #{message.type} with unknown component id '#{component_id}' and cannot infer type",
|
|
84
91
|
message: message, level: :warning
|
|
85
|
-
rvs
|
|
92
|
+
mark_commands_undefined rvs
|
|
86
93
|
end
|
|
87
94
|
|
|
88
95
|
def process_command_request(message)
|
data/lib/rsmp/version.rb
CHANGED