cosmos 5.0.4 → 5.0.5

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.
@@ -1,14 +1,14 @@
1
1
  # encoding: ascii-8bit
2
2
 
3
- COSMOS_VERSION = '5.0.4'
3
+ COSMOS_VERSION = '5.0.5'
4
4
  module Cosmos
5
5
  module Version
6
6
  MAJOR = '5'
7
7
  MINOR = '0'
8
- PATCH = '4'
8
+ PATCH = '5'
9
9
  OTHER = ''
10
- BUILD = '84d6dcebd4bc21e5559963be4e5fde2ddb7e9822'
10
+ BUILD = 'e31c5f3ab7a18f52db7c00430c36efe651048fd7'
11
11
  end
12
- VERSION = '5.0.4'
13
- GEM_VERSION = '5.0.4'
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
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-05-24 00:00:00.000000000 Z
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.12'
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.12'
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: '2.2'
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: '2.2'
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