cosmos 5.0.4 → 5.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cosmos +182 -41
- data/data/config/plugins.yaml +10 -0
- data/ext/cosmos/ext/cosmos_io/cosmos_io.c +14 -14
- data/ext/cosmos/ext/packet/packet.c +3 -3
- data/ext/cosmos/ext/structure/structure.c +31 -31
- data/lib/cosmos/api/tlm_api.rb +4 -4
- data/lib/cosmos/logs/log_writer.rb +76 -27
- data/lib/cosmos/microservices/interface_microservice.rb +0 -15
- data/lib/cosmos/models/gem_model.rb +7 -1
- data/lib/cosmos/models/interface_model.rb +16 -7
- data/lib/cosmos/models/metadata_model.rb +39 -15
- data/lib/cosmos/models/microservice_model.rb +6 -3
- data/lib/cosmos/models/model.rb +7 -0
- data/lib/cosmos/models/note_model.rb +4 -6
- data/lib/cosmos/models/plugin_model.rb +107 -47
- data/lib/cosmos/models/scope_model.rb +2 -0
- data/lib/cosmos/models/sorted_model.rb +3 -1
- data/lib/cosmos/models/target_model.rb +24 -15
- data/lib/cosmos/models/tool_model.rb +8 -8
- data/lib/cosmos/models/widget_model.rb +10 -10
- data/lib/cosmos/packets/packet.rb +1 -1
- data/lib/cosmos/packets/structure.rb +30 -33
- data/lib/cosmos/script/calendar.rb +13 -2
- data/lib/cosmos/tools/table_manager/table_config.rb +16 -1
- data/lib/cosmos/tools/table_manager/table_manager_core.rb +213 -309
- data/lib/cosmos/topics/config_topic.rb +68 -0
- data/lib/cosmos/version.rb +5 -5
- metadata +7 -8
- data/bin/xtce_converter +0 -92
data/lib/cosmos/version.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# encoding: ascii-8bit
|
2
2
|
|
3
|
-
COSMOS_VERSION = '5.0.
|
3
|
+
COSMOS_VERSION = '5.0.5'
|
4
4
|
module Cosmos
|
5
5
|
module Version
|
6
6
|
MAJOR = '5'
|
7
7
|
MINOR = '0'
|
8
|
-
PATCH = '
|
8
|
+
PATCH = '5'
|
9
9
|
OTHER = ''
|
10
|
-
BUILD = '
|
10
|
+
BUILD = 'e31c5f3ab7a18f52db7c00430c36efe651048fd7'
|
11
11
|
end
|
12
|
-
VERSION = '5.0.
|
13
|
-
GEM_VERSION = '5.0.
|
12
|
+
VERSION = '5.0.5'
|
13
|
+
GEM_VERSION = '5.0.5'
|
14
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cosmos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Melton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-06-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -129,14 +129,14 @@ dependencies:
|
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '1.
|
132
|
+
version: '1.13'
|
133
133
|
type: :runtime
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '1.
|
139
|
+
version: '1.13'
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: puma
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,14 +157,14 @@ dependencies:
|
|
157
157
|
requirements:
|
158
158
|
- - "~>"
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version:
|
160
|
+
version: 2.2.3.1
|
161
161
|
type: :runtime
|
162
162
|
prerelease: false
|
163
163
|
version_requirements: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
165
|
- - "~>"
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version:
|
167
|
+
version: 2.2.3.1
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: redis
|
170
170
|
requirement: !ruby/object:Gem::Requirement
|
@@ -500,7 +500,6 @@ executables:
|
|
500
500
|
- cosmos
|
501
501
|
- rubysloc
|
502
502
|
- cstol_converter
|
503
|
-
- xtce_converter
|
504
503
|
extensions:
|
505
504
|
- ext/cosmos/ext/array/extconf.rb
|
506
505
|
- ext/cosmos/ext/buffered_file/extconf.rb
|
@@ -524,7 +523,6 @@ files:
|
|
524
523
|
- bin/cosmos
|
525
524
|
- bin/cstol_converter
|
526
525
|
- bin/rubysloc
|
527
|
-
- bin/xtce_converter
|
528
526
|
- data/config/_array_params.yaml
|
529
527
|
- data/config/_id_items.yaml
|
530
528
|
- data/config/_id_params.yaml
|
@@ -774,6 +772,7 @@ files:
|
|
774
772
|
- lib/cosmos/topics/calendar_topic.rb
|
775
773
|
- lib/cosmos/topics/command_decom_topic.rb
|
776
774
|
- lib/cosmos/topics/command_topic.rb
|
775
|
+
- lib/cosmos/topics/config_topic.rb
|
777
776
|
- lib/cosmos/topics/interface_topic.rb
|
778
777
|
- lib/cosmos/topics/limits_event_topic.rb
|
779
778
|
- lib/cosmos/topics/notifications_topic.rb
|
data/bin/xtce_converter
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# encoding: ascii-8bit
|
3
|
-
|
4
|
-
# Copyright 2022 Ball Aerospace & Technologies Corp.
|
5
|
-
# All Rights Reserved.
|
6
|
-
#
|
7
|
-
# This program is free software; you can modify and/or redistribute it
|
8
|
-
# under the terms of the GNU Affero General Public License
|
9
|
-
# as published by the Free Software Foundation; version 3 with
|
10
|
-
# attribution addendums as found in the LICENSE.txt
|
11
|
-
#
|
12
|
-
# This program is distributed in the hope that it will be useful,
|
13
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
-
# GNU Affero General Public License for more details.
|
16
|
-
#
|
17
|
-
# This program may also be used under the terms of a commercial or
|
18
|
-
# enterprise edition license of COSMOS if purchased from the
|
19
|
-
# copyright holder
|
20
|
-
|
21
|
-
# This file converts to and from the .xtce file format
|
22
|
-
|
23
|
-
require 'ostruct'
|
24
|
-
require 'optparse'
|
25
|
-
require 'cosmos'
|
26
|
-
|
27
|
-
input_filename = nil
|
28
|
-
|
29
|
-
option_parser = OptionParser.new do |option_parser|
|
30
|
-
option_parser.banner = "Usage: xtce_converter [options] --import input_xtce_filename output_dir\n xtce_converter [options] --export output_dir"
|
31
|
-
option_parser.separator("")
|
32
|
-
|
33
|
-
# Create the help option
|
34
|
-
option_parser.on("-h", "--help", "Show this message") do
|
35
|
-
puts option_parser
|
36
|
-
exit
|
37
|
-
end
|
38
|
-
|
39
|
-
# Create the version option
|
40
|
-
option_parser.on("-v", "--version", "Show version") do
|
41
|
-
puts "COSMOS Version: #{COSMOS_VERSION}"
|
42
|
-
puts "User Version: #{USER_VERSION}" if defined? USER_VERSION
|
43
|
-
exit
|
44
|
-
end
|
45
|
-
|
46
|
-
# Create the system option
|
47
|
-
option_parser.on("--system VALUE", "Use an alternative system.txt file") do |arg|
|
48
|
-
Cosmos::System.instance(File.join(USERPATH, 'config', 'system', arg))
|
49
|
-
end
|
50
|
-
|
51
|
-
# Handle --import mode
|
52
|
-
option_parser.on("-i VALUE", "--import VALUE", "Import the specified .xtce file") do |arg|
|
53
|
-
input_filename = arg
|
54
|
-
end
|
55
|
-
|
56
|
-
# Handle --export mode
|
57
|
-
option_parser.on("-e", "--export", "Create .xtce file(s) from the COSMOS Configuration") do |arg|
|
58
|
-
# This is optional and the default
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
begin
|
63
|
-
option_parser.parse!(ARGV)
|
64
|
-
rescue => err
|
65
|
-
puts err
|
66
|
-
puts option_parser
|
67
|
-
exit
|
68
|
-
end
|
69
|
-
|
70
|
-
if ARGV[0]
|
71
|
-
output_dir = ARGV[0]
|
72
|
-
else
|
73
|
-
puts option_parser
|
74
|
-
exit
|
75
|
-
end
|
76
|
-
|
77
|
-
if input_filename
|
78
|
-
packet_config = Cosmos::PacketConfig.new
|
79
|
-
puts "Processing #{input_filename}..."
|
80
|
-
packet_config.process_file(input_filename, nil)
|
81
|
-
puts "Converting to COSMOS config files in #{output_dir}"
|
82
|
-
packet_config.to_config(output_dir)
|
83
|
-
puts "Success"
|
84
|
-
exit 0
|
85
|
-
else
|
86
|
-
puts "Loading COSMOS Configuration..."
|
87
|
-
Cosmos::System.commands
|
88
|
-
puts "Converting configuration to .xtce files in #{output_dir}"
|
89
|
-
Cosmos::System.instance.instance_variable_get(:@config).to_xtce(output_dir)
|
90
|
-
puts "Success"
|
91
|
-
exit 0
|
92
|
-
end
|