cosmos 3.3.3 → 3.4.0
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/.gitattributes +2 -0
- data/.travis.yml +2 -1
- data/Gemfile +4 -3
- data/Manifest.txt +22 -0
- data/autohotkey/tools/handbook_creator.ahk +9 -0
- data/autohotkey/tools/packet_viewer.ahk +4 -0
- data/bin/exchndl20-x64.dll +0 -0
- data/bin/exchndl20.dll +0 -0
- data/bin/exchndl21-x64.dll +0 -0
- data/bin/exchndl21.dll +0 -0
- data/bin/exchndl22-x64.dll +0 -0
- data/bin/exchndl22.dll +0 -0
- data/bin/mgwhelp-x64.dll +0 -0
- data/bin/mgwhelp.dll +0 -0
- data/cosmos.gemspec +1 -0
- data/data/crc.txt +30 -24
- data/demo/config/data/crc.txt +3 -3
- data/demo/config/tools/handbook_creator/templates/command_packets.html.erb +3 -1
- data/demo/config/tools/handbook_creator/templates/telemetry_packets.html.erb +3 -1
- data/demo/procedures/cosmos_api_test.rb +1 -1
- data/ext/cosmos/ext/low_fragmentation_array/low_fragmentation_array.c +4 -0
- data/ext/cosmos/ext/platform/platform.c +22 -2
- data/ext/cosmos/ext/structure/structure.c +631 -104
- data/ext/cosmos/ext/telemetry/telemetry.c +3 -2
- data/lib/cosmos/gui/line_graph/line_graph_drawing.rb +71 -92
- data/lib/cosmos/gui/line_graph/overview_graph.rb +1 -1
- data/lib/cosmos/gui/qt.rb +38 -24
- data/lib/cosmos/gui/text/ruby_editor.rb +1 -1
- data/lib/cosmos/packets/binary_accessor.rb +1 -288
- data/lib/cosmos/packets/telemetry.rb +2 -1
- data/lib/cosmos/script/cmd_tlm_server.rb +110 -0
- data/lib/cosmos/script/commands.rb +166 -0
- data/lib/cosmos/script/extract.rb +2 -2
- data/lib/cosmos/script/limits.rb +108 -0
- data/lib/cosmos/script/script.rb +28 -1487
- data/lib/cosmos/script/scripting.rb +889 -0
- data/lib/cosmos/script/telemetry.rb +174 -0
- data/lib/cosmos/script/tools.rb +138 -0
- data/lib/cosmos/streams/stream_protocol.rb +9 -6
- data/lib/cosmos/system/target.rb +55 -38
- data/lib/cosmos/tools/cmd_tlm_server/api.rb +6 -3
- data/lib/cosmos/tools/cmd_tlm_server/connections.rb +0 -1
- data/lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb +17 -7
- data/lib/cosmos/tools/cmd_tlm_server/interface_thread.rb +15 -4
- data/lib/cosmos/tools/handbook_creator/handbook_creator.rb +15 -8
- data/lib/cosmos/tools/handbook_creator/handbook_creator_config.rb +41 -13
- data/lib/cosmos/tools/packet_viewer/packet_viewer.rb +18 -1
- data/lib/cosmos/tools/tlm_viewer/widgets/canvasline_widget.rb +1 -1
- data/lib/cosmos/tools/tlm_viewer/widgets/canvaslinevalue_widget.rb +1 -1
- data/lib/cosmos/tools/tlm_viewer/widgets/limitsbar_widget.rb +1 -1
- data/lib/cosmos/tools/tlm_viewer/widgets/rangebar_widget.rb +1 -1
- data/lib/cosmos/top_level.rb +1 -1
- data/lib/cosmos/utilities/ruby_lex_utils.rb +1 -1
- data/lib/cosmos/version.rb +5 -5
- data/spec/gui/line_graph/line_clip_spec.rb +6 -6
- data/spec/gui/qt_spec.rb +102 -0
- data/spec/interfaces/interface_spec.rb +9 -9
- data/spec/interfaces/linc_interface_spec.rb +72 -15
- data/spec/interfaces/serial_interface_spec.rb +9 -9
- data/spec/interfaces/simulated_target_interface_spec.rb +7 -7
- data/spec/interfaces/stream_interface_spec.rb +4 -4
- data/spec/interfaces/tcpip_client_interface_spec.rb +8 -8
- data/spec/interfaces/tcpip_server_interface_spec.rb +9 -9
- data/spec/interfaces/udp_interface_spec.rb +20 -20
- data/spec/io/json_drb_spec.rb +4 -4
- data/spec/io/raw_logger_pair_spec.rb +20 -20
- data/spec/io/raw_logger_spec.rb +3 -3
- data/spec/io/tcpip_server_spec.rb +9 -9
- data/spec/io/udp_sockets_spec.rb +2 -2
- data/spec/io/win32_serial_driver_spec.rb +2 -2
- data/spec/packets/binary_accessor_spec.rb +143 -6
- data/spec/packets/commands_spec.rb +5 -5
- data/spec/packets/limits_spec.rb +15 -15
- data/spec/packets/packet_config_spec.rb +19 -19
- data/spec/packets/packet_item_limits_spec.rb +3 -3
- data/spec/packets/packet_item_spec.rb +4 -4
- data/spec/packets/packet_spec.rb +33 -33
- data/spec/packets/structure_item_spec.rb +19 -19
- data/spec/packets/telemetry_spec.rb +6 -6
- data/spec/script/cmd_tlm_server_spec.rb +110 -0
- data/spec/script/commands_disconnect_spec.rb +270 -0
- data/spec/script/commands_spec.rb +288 -0
- data/spec/script/limits_spec.rb +153 -0
- data/spec/script/script_spec.rb +32 -696
- data/spec/script/scripting_spec.rb +436 -0
- data/spec/script/telemetry_spec.rb +130 -0
- data/spec/script/tools_spec.rb +117 -0
- data/spec/spec_helper.rb +10 -5
- data/spec/streams/preidentified_stream_protocol_spec.rb +4 -4
- data/spec/streams/serial_stream_spec.rb +8 -8
- data/spec/streams/stream_protocol_spec.rb +4 -4
- data/spec/streams/tcpip_client_stream_spec.rb +3 -3
- data/spec/streams/tcpip_socket_stream_spec.rb +7 -7
- data/spec/streams/template_stream_protocol_spec.rb +1 -1
- data/spec/system/system_spec.rb +6 -6
- data/spec/system/target_spec.rb +2 -0
- data/spec/tools/cmd_tlm_server/api_spec.rb +17 -17
- data/spec/tools/cmd_tlm_server/cmd_tlm_server_config_spec.rb +5 -5
- data/spec/tools/cmd_tlm_server/interface_thread_spec.rb +3 -3
- data/spec/top_level/top_level_spec.rb +8 -8
- data/spec/utilities/csv_spec.rb +3 -3
- data/spec/utilities/message_log_spec.rb +3 -3
- data/spec/utilities/ruby_lex_utils_spec.rb +7 -7
- data/test/performance/config/tools/launcher/launcher_threads.txt +8 -1
- data/test/performance/tools/CmdTlmServerMemProf +1 -1
- data/test/performance/tools/TlmGrapherMemProf +19 -0
- data/test/performance/tools/TlmGrapherMemProf.bat +59 -0
- metadata +38 -2
|
@@ -106,8 +106,8 @@ module Cosmos
|
|
|
106
106
|
tf.close
|
|
107
107
|
config = CmdTlmServerConfig.new(tf.path)
|
|
108
108
|
expect(config.packet_log_writer_pairs.keys).to eql ["DEFAULT","MY_WRITER"]
|
|
109
|
-
expect(config.packet_log_writer_pairs["DEFAULT"].cmd_log_writer.logging_enabled).to
|
|
110
|
-
expect(config.packet_log_writer_pairs["MY_WRITER"].cmd_log_writer.logging_enabled).to
|
|
109
|
+
expect(config.packet_log_writer_pairs["DEFAULT"].cmd_log_writer.logging_enabled).to be true
|
|
110
|
+
expect(config.packet_log_writer_pairs["MY_WRITER"].cmd_log_writer.logging_enabled).to be false
|
|
111
111
|
tf.unlink
|
|
112
112
|
config.packet_log_writer_pairs.each do |name, plwp|
|
|
113
113
|
plwp.cmd_log_writer.shutdown
|
|
@@ -191,7 +191,7 @@ module Cosmos
|
|
|
191
191
|
tf.puts 'DONT_CONNECT'
|
|
192
192
|
tf.close
|
|
193
193
|
config = CmdTlmServerConfig.new(tf.path)
|
|
194
|
-
expect(config.interfaces['CTSCONFIGTESTINTERFACE'].connect_on_startup).to
|
|
194
|
+
expect(config.interfaces['CTSCONFIGTESTINTERFACE'].connect_on_startup).to be false
|
|
195
195
|
tf.unlink
|
|
196
196
|
end
|
|
197
197
|
end
|
|
@@ -212,7 +212,7 @@ module Cosmos
|
|
|
212
212
|
tf.puts 'DONT_RECONNECT'
|
|
213
213
|
tf.close
|
|
214
214
|
config = CmdTlmServerConfig.new(tf.path)
|
|
215
|
-
expect(config.interfaces['CTSCONFIGTESTINTERFACE'].auto_reconnect).to
|
|
215
|
+
expect(config.interfaces['CTSCONFIGTESTINTERFACE'].auto_reconnect).to be false
|
|
216
216
|
tf.unlink
|
|
217
217
|
end
|
|
218
218
|
end
|
|
@@ -254,7 +254,7 @@ module Cosmos
|
|
|
254
254
|
tf.puts 'DISABLE_DISCONNECT'
|
|
255
255
|
tf.close
|
|
256
256
|
config = CmdTlmServerConfig.new(tf.path)
|
|
257
|
-
expect(config.interfaces['CTSCONFIGTESTINTERFACE'].disable_disconnect).to
|
|
257
|
+
expect(config.interfaces['CTSCONFIGTESTINTERFACE'].disable_disconnect).to be true
|
|
258
258
|
tf.unlink
|
|
259
259
|
end
|
|
260
260
|
end
|
|
@@ -121,7 +121,7 @@ module Cosmos
|
|
|
121
121
|
thread.stop
|
|
122
122
|
sleep 0.2
|
|
123
123
|
expect(Thread.list.length).to eql(1)
|
|
124
|
-
expect(callback_called).to
|
|
124
|
+
expect(callback_called).to be true
|
|
125
125
|
|
|
126
126
|
expect(stdout.string).not_to match "Connection Success"
|
|
127
127
|
end
|
|
@@ -163,7 +163,7 @@ module Cosmos
|
|
|
163
163
|
thread.stop
|
|
164
164
|
sleep 0.2
|
|
165
165
|
expect(Thread.list.length).to eql(1)
|
|
166
|
-
expect(callback_called).to
|
|
166
|
+
expect(callback_called).to be true
|
|
167
167
|
|
|
168
168
|
expect(stdout.string).not_to match "Connection Lost"
|
|
169
169
|
end
|
|
@@ -229,7 +229,7 @@ module Cosmos
|
|
|
229
229
|
sleep 0.1
|
|
230
230
|
thread.stop
|
|
231
231
|
sleep 0.2
|
|
232
|
-
expect(callback_called).to
|
|
232
|
+
expect(callback_called).to be true
|
|
233
233
|
|
|
234
234
|
expect(stdout.string).not_to match "Packet reading thread unexpectedly died"
|
|
235
235
|
end
|
|
@@ -116,7 +116,7 @@ module Cosmos
|
|
|
116
116
|
array = [1,2,3,4]
|
|
117
117
|
Cosmos.marshal_dump('marshal_test', array)
|
|
118
118
|
array_load = Cosmos.marshal_load('marshal_test')
|
|
119
|
-
expect(File.exist?(File.join(Cosmos::USERPATH,'marshal_test'))).to
|
|
119
|
+
expect(File.exist?(File.join(Cosmos::USERPATH,'marshal_test'))).to be true
|
|
120
120
|
expect(array).to eql array_load
|
|
121
121
|
File.delete(File.join(Cosmos::USERPATH,'marshal_test'))
|
|
122
122
|
end
|
|
@@ -161,9 +161,9 @@ module Cosmos
|
|
|
161
161
|
thread = Cosmos.run_process("ping 192.0.0.234 -n 1 -w 1000 > nul")
|
|
162
162
|
sleep 0.1
|
|
163
163
|
expect(thread).to be_a Thread
|
|
164
|
-
expect(thread.alive?).to
|
|
164
|
+
expect(thread.alive?).to be true
|
|
165
165
|
sleep 2
|
|
166
|
-
expect(thread.alive?).to
|
|
166
|
+
expect(thread.alive?).to be false
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
end
|
|
@@ -198,7 +198,7 @@ module Cosmos
|
|
|
198
198
|
describe "create_log_file" do
|
|
199
199
|
it "creates a log file even if System LOGS doesn't exist" do
|
|
200
200
|
filename = Cosmos.create_log_file('test', 'X:/directory/which/does/not/exit')
|
|
201
|
-
expect(File.exist?(filename)).to
|
|
201
|
+
expect(File.exist?(filename)).to be true
|
|
202
202
|
File.delete(filename)
|
|
203
203
|
|
|
204
204
|
Cosmos.set_working_dir do
|
|
@@ -220,13 +220,13 @@ module Cosmos
|
|
|
220
220
|
# Create a logs directory as the first order backup
|
|
221
221
|
FileUtils.mkdir('logs')
|
|
222
222
|
filename = Cosmos.create_log_file('test', 'X:/directory/which/does/not/exit')
|
|
223
|
-
expect(File.exist?(filename)).to
|
|
223
|
+
expect(File.exist?(filename)).to be true
|
|
224
224
|
File.delete(filename)
|
|
225
225
|
|
|
226
226
|
# Delete logs and see if we still get a log file
|
|
227
227
|
FileUtils.rm_rf('logs')
|
|
228
228
|
filename = Cosmos.create_log_file('test', 'X:/directory/which/does/not/exit')
|
|
229
|
-
expect(File.exist?(filename)).to
|
|
229
|
+
expect(File.exist?(filename)).to be true
|
|
230
230
|
File.delete(filename)
|
|
231
231
|
|
|
232
232
|
# Restore outputs
|
|
@@ -238,9 +238,9 @@ module Cosmos
|
|
|
238
238
|
describe "write_exception_file" do
|
|
239
239
|
it "writes an exception file" do
|
|
240
240
|
file = Cosmos.write_exception_file(nil, 'test1_exception', File.dirname(__FILE__))
|
|
241
|
-
expect(File.exist?(file)).to
|
|
241
|
+
expect(File.exist?(file)).to be true
|
|
242
242
|
file = Cosmos.write_exception_file(RuntimeError.new, 'test2_exception', File.dirname(__FILE__))
|
|
243
|
-
expect(File.exist?(file)).to
|
|
243
|
+
expect(File.exist?(file)).to be true
|
|
244
244
|
Cosmos.cleanup_exceptions()
|
|
245
245
|
end
|
|
246
246
|
end
|
data/spec/utilities/csv_spec.rb
CHANGED
|
@@ -54,7 +54,7 @@ module Cosmos
|
|
|
54
54
|
describe "create_archive" do
|
|
55
55
|
it "creates a default archive file" do
|
|
56
56
|
@csv.create_archive
|
|
57
|
-
expect(File.exist?(@csv.archive_file)).to
|
|
57
|
+
expect(File.exist?(@csv.archive_file)).to be true
|
|
58
58
|
@csv.close_archive
|
|
59
59
|
end
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ module Cosmos
|
|
|
62
62
|
if Kernel.is_windows?
|
|
63
63
|
Dir.mkdir("C:/temp") unless File.directory?("C:/temp")
|
|
64
64
|
@csv.create_archive("C:/temp")
|
|
65
|
-
expect(File.exist?(@csv.archive_file)).to
|
|
65
|
+
expect(File.exist?(@csv.archive_file)).to be true
|
|
66
66
|
@csv.close_archive
|
|
67
67
|
end
|
|
68
68
|
end
|
|
@@ -74,7 +74,7 @@ module Cosmos
|
|
|
74
74
|
@csv.write_archive(%w(HI a b c))
|
|
75
75
|
@csv.close_archive
|
|
76
76
|
data = File.read @csv.archive_file
|
|
77
|
-
expect(data.include?("HI,a,b,c")).to
|
|
77
|
+
expect(data.include?("HI,a,b,c")).to be true
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
it "raises an exception if writing to an unopened archive" do
|
|
@@ -27,7 +27,7 @@ module Cosmos
|
|
|
27
27
|
log.start
|
|
28
28
|
log.stop
|
|
29
29
|
Cosmos.set_working_dir do
|
|
30
|
-
expect(File.exist?(log.filename)).to
|
|
30
|
+
expect(File.exist?(log.filename)).to be true
|
|
31
31
|
expect(log.filename).to match 'TEST'
|
|
32
32
|
expect(log.filename).to match 'logs'
|
|
33
33
|
File.delete log.filename
|
|
@@ -38,7 +38,7 @@ module Cosmos
|
|
|
38
38
|
log = MessageLog.new('TEST', File.expand_path(File.dirname(__FILE__)))
|
|
39
39
|
log.start
|
|
40
40
|
log.stop
|
|
41
|
-
expect(File.exist?(log.filename)).to
|
|
41
|
+
expect(File.exist?(log.filename)).to be true
|
|
42
42
|
expect(log.filename).to match File.expand_path(File.dirname(__FILE__))
|
|
43
43
|
File.delete log.filename
|
|
44
44
|
end
|
|
@@ -79,7 +79,7 @@ module Cosmos
|
|
|
79
79
|
log.start
|
|
80
80
|
log.stop
|
|
81
81
|
Cosmos.set_working_dir do
|
|
82
|
-
expect(File.stat(log.filename).writable?).to
|
|
82
|
+
expect(File.stat(log.filename).writable?).to be false
|
|
83
83
|
File.delete log.filename
|
|
84
84
|
end
|
|
85
85
|
end
|
|
@@ -19,23 +19,23 @@ module Cosmos
|
|
|
19
19
|
|
|
20
20
|
describe "contains_begin?" do
|
|
21
21
|
it "detects the begin keyword" do
|
|
22
|
-
expect(@lex.contains_begin?(" begin ")).to
|
|
23
|
-
expect(@lex.contains_begin?(" begin # asdf ")).to
|
|
22
|
+
expect(@lex.contains_begin?(" begin ")).to be true
|
|
23
|
+
expect(@lex.contains_begin?(" begin # asdf ")).to be true
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
describe "contains_keyword?" do
|
|
28
28
|
it "detects the ruby keywords" do
|
|
29
|
-
expect(@lex.contains_keyword?("if something")).to
|
|
30
|
-
expect(@lex.contains_keyword?("obj.method = something")).to
|
|
29
|
+
expect(@lex.contains_keyword?("if something")).to be true
|
|
30
|
+
expect(@lex.contains_keyword?("obj.method = something")).to be false
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
describe "contains_block_beginning?" do
|
|
35
35
|
it "detects block beginning keywords" do
|
|
36
|
-
expect(@lex.contains_block_beginning?("do")).to
|
|
37
|
-
expect(@lex.contains_block_beginning?("[].each {")).to
|
|
38
|
-
expect(@lex.contains_block_beginning?("begin")).to
|
|
36
|
+
expect(@lex.contains_block_beginning?("do")).to be true
|
|
37
|
+
expect(@lex.contains_block_beginning?("[].each {")).to be true
|
|
38
|
+
expect(@lex.contains_block_beginning?("begin")).to be true
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
TITLE "Threads"
|
|
2
2
|
TOOL_FONT tahoma 12
|
|
3
3
|
LABEL_FONT tahoma 16
|
|
4
|
+
NUM_COLUMNS 5 # This is the default
|
|
4
5
|
|
|
5
|
-
TOOL "CTS - Profiled" "ruby-prof -p call_tree -m 1 -f callgrind.profile tools\CmdTlmServerMemProf -- --config cmd_tlm_server_threads.txt --system system_threads.txt" "cts.png"
|
|
6
6
|
TOOL "CTS" "LAUNCH CmdTlmServer --config cmd_tlm_server_threads.txt --system system_threads.txt" "cts.png"
|
|
7
|
+
TOOL "CTS - CodeProf" "ruby-prof -p call_tree -m 1 -f callgrind.cts tools\CmdTlmServer -- --config cmd_tlm_server_threads.txt --system system_threads.txt" "cts.png"
|
|
8
|
+
TOOL "CTS - MemProf" "LAUNCH CmdTlmServerMemProf --config cmd_tlm_server_threads.txt --system system_threads.txt" "cts.png"
|
|
7
9
|
TOOL "Script Runner" "LAUNCH ScriptRunner --system system_threads.txt" "script_runner.png"
|
|
8
10
|
MULTITOOL_START "Simulated Targets" NULL
|
|
9
11
|
TOOL "LAUNCH_TERMINAL ExampleTarget 9999 STATUS 10 --system system_threads.txt"
|
|
@@ -68,3 +70,8 @@ MULTITOOL_START "Simulated Targets" NULL
|
|
|
68
70
|
DONT_CAPTURE_IO # Without this you get an "Unexpected Output" dialog
|
|
69
71
|
MULTITOOL_END
|
|
70
72
|
|
|
73
|
+
DIVIDER
|
|
74
|
+
TOOL "Telemetry Grapher" "LAUNCH TlmGrapher --system system_threads.txt" "tlm_grapher.png"
|
|
75
|
+
TOOL "Grapher - CodeProf" "ruby-prof -p call_tree -m 1 -f callgrind.grapher tools\TlmGrapher -- --system system_threads.txt" "tlm_grapher.png"
|
|
76
|
+
TOOL "Grapher - MemProf" "LAUNCH TlmGrapherMemProf --system system_threads.txt" "tlm_grapher.png"
|
|
77
|
+
|
|
@@ -16,5 +16,5 @@ require 'memory_profiler'
|
|
|
16
16
|
report = MemoryProfiler.report do
|
|
17
17
|
Cosmos::CmdTlmServerGui.run
|
|
18
18
|
end
|
|
19
|
-
File.open(File.build_timestamped_filename(%w(memory profile)),'w') {|file| report.pretty_print(file) }
|
|
19
|
+
File.open(File.build_timestamped_filename(%w(cts memory profile)),'w') {|file| report.pretty_print(file) }
|
|
20
20
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# encoding: ascii-8bit
|
|
3
|
+
|
|
4
|
+
# Copyright 2014 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 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
|
+
require 'cosmos'
|
|
13
|
+
require 'cosmos/tools/tlm_grapher/tlm_grapher'
|
|
14
|
+
|
|
15
|
+
require 'memory_profiler'
|
|
16
|
+
report = MemoryProfiler.report do
|
|
17
|
+
Cosmos::TlmGrapher.run
|
|
18
|
+
end
|
|
19
|
+
File.open(File.build_timestamped_filename(%w(grapher memory profile)),'w') {|file| report.pretty_print(file) }
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
SET RUBYEXE=rubyw.exe
|
|
4
|
+
|
|
5
|
+
SET "DESTINATION_DIR=%~dp0..\..\"
|
|
6
|
+
IF EXIST "%DESTINATION_DIR%Vendor\Ruby" GOTO DIREND
|
|
7
|
+
IF "%COSMOS_DIR%" == "" GOTO DIREND
|
|
8
|
+
SET "DESTINATION_DIR=%COSMOS_DIR%\"
|
|
9
|
+
:DIREND
|
|
10
|
+
|
|
11
|
+
IF NOT EXIST "%DESTINATION_DIR%Vendor\Ruby" GOTO SYSTEMRUBY
|
|
12
|
+
|
|
13
|
+
REM Save some variables we're going to change so we can restore them later
|
|
14
|
+
SET "COSMOS_GEM_HOME_SAVED=%GEM_HOME%"
|
|
15
|
+
SET "COSMOS_GEM_PATH_SAVED=%GEM_PATH%"
|
|
16
|
+
SET "COSMOS_GEMRC_SAVED=%GEMRC%"
|
|
17
|
+
SET "COSMOS_PATH_SAVED=%PATH%"
|
|
18
|
+
SET "COSMOS_RUBYOPT_SAVED=%RUBYOPT%"
|
|
19
|
+
SET "COSMOS_RUBYLIB_SAVED=%RUBYLIB%"
|
|
20
|
+
SET "COSMOS_RI_DEVKIT_SAVED=%RI_DEVKIT%"
|
|
21
|
+
|
|
22
|
+
REM Set environmental variables
|
|
23
|
+
|
|
24
|
+
IF EXIST "%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\1.8" SET "GEM_HOME=%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\1.8"
|
|
25
|
+
IF EXIST "%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\1.9.1" SET "GEM_HOME=%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\1.9.1"
|
|
26
|
+
IF EXIST "%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\2.0.0" SET "GEM_HOME=%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\2.0.0"
|
|
27
|
+
SET "GEM_PATH=%GEM_HOME%"
|
|
28
|
+
SET "GEMRC=%DESTINATION_DIR%Vendor\Ruby\lib\ruby\gems\etc\gemrc"
|
|
29
|
+
|
|
30
|
+
REM Prepend embedded bin to PATH so we prefer those binaries
|
|
31
|
+
SET "RI_DEVKIT=%DESTINATION_DIR%Vendor\Devkit\"
|
|
32
|
+
SET "PATH=%DESTINATION_DIR%Vendor\Ruby\bin;%RI_DEVKIT%bin;%RI_DEVKIT%mingw\bin;%DESTINATION_DIR%Vendor\wkhtmltopdf;%PATH%"
|
|
33
|
+
|
|
34
|
+
REM Remove RUBYOPT and RUBYLIB, which can cause serious problems.
|
|
35
|
+
SET RUBYOPT=
|
|
36
|
+
SET RUBYLIB=
|
|
37
|
+
|
|
38
|
+
REM Run tool using Installer Ruby
|
|
39
|
+
ECHO Starting tool using installer ruby in %DESTINATION_DIR%
|
|
40
|
+
START "COSMOS" "%DESTINATION_DIR%Vendor\Ruby\bin\%RUBYEXE%" "%~dp0%~n0" %*
|
|
41
|
+
|
|
42
|
+
REM Restore some environmental variables we changed
|
|
43
|
+
SET "GEM_HOME=%COSMOS_GEM_HOME_SAVED%"
|
|
44
|
+
SET "GEM_PATH=%COSMOS_GEM_PATH_SAVED%"
|
|
45
|
+
SET "GEMRC=%COSMOS_GEMRC_SAVED%"
|
|
46
|
+
SET "PATH=%COSMOS_PATH_SAVED%"
|
|
47
|
+
SET "RUBYOPT=%COSMOS_RUBYOPT_SAVED%"
|
|
48
|
+
SET "RUBYLIB=%COSMOS_RUBYLIB_SAVED%"
|
|
49
|
+
SET "RI_DEVKIT=%COSMOS_RI_DEVKIT_SAVED%"
|
|
50
|
+
|
|
51
|
+
GOTO END
|
|
52
|
+
:SYSTEMRUBY
|
|
53
|
+
|
|
54
|
+
REM Use System Ruby and Environment
|
|
55
|
+
ECHO Starting tool using system ruby and environment
|
|
56
|
+
START "COSMOS" "%RUBYEXE%" "%~dp0%~n0" %*
|
|
57
|
+
|
|
58
|
+
GOTO END
|
|
59
|
+
: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: 3.
|
|
4
|
+
version: 3.4.0
|
|
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: 2015-
|
|
12
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -395,6 +395,20 @@ dependencies:
|
|
|
395
395
|
- - "~>"
|
|
396
396
|
- !ruby/object:Gem::Version
|
|
397
397
|
version: '0.7'
|
|
398
|
+
- !ruby/object:Gem::Dependency
|
|
399
|
+
name: benchmark-ips
|
|
400
|
+
requirement: !ruby/object:Gem::Requirement
|
|
401
|
+
requirements:
|
|
402
|
+
- - "~>"
|
|
403
|
+
- !ruby/object:Gem::Version
|
|
404
|
+
version: '2'
|
|
405
|
+
type: :development
|
|
406
|
+
prerelease: false
|
|
407
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
408
|
+
requirements:
|
|
409
|
+
- - "~>"
|
|
410
|
+
- !ruby/object:Gem::Version
|
|
411
|
+
version: '2'
|
|
398
412
|
description: |2
|
|
399
413
|
Ball Aerospace COSMOS provides all the functionality needed to send
|
|
400
414
|
commands to and receive data from one or more embedded systems
|
|
@@ -426,6 +440,7 @@ extensions:
|
|
|
426
440
|
extra_rdoc_files: []
|
|
427
441
|
files:
|
|
428
442
|
- ".coveralls.yml"
|
|
443
|
+
- ".gitattributes"
|
|
429
444
|
- ".gitignore"
|
|
430
445
|
- ".travis.yml"
|
|
431
446
|
- CONTRIBUTING.txt
|
|
@@ -608,8 +623,13 @@ files:
|
|
|
608
623
|
- autohotkey/userpath.txt
|
|
609
624
|
- bin/cosmos
|
|
610
625
|
- bin/cstol_converter
|
|
626
|
+
- bin/exchndl20-x64.dll
|
|
611
627
|
- bin/exchndl20.dll
|
|
628
|
+
- bin/exchndl21-x64.dll
|
|
612
629
|
- bin/exchndl21.dll
|
|
630
|
+
- bin/exchndl22-x64.dll
|
|
631
|
+
- bin/exchndl22.dll
|
|
632
|
+
- bin/mgwhelp-x64.dll
|
|
613
633
|
- bin/mgwhelp.dll
|
|
614
634
|
- bin/rubysloc
|
|
615
635
|
- cosmos.gemspec
|
|
@@ -1252,8 +1272,14 @@ files:
|
|
|
1252
1272
|
- lib/cosmos/processors/statistics_processor.rb
|
|
1253
1273
|
- lib/cosmos/processors/watermark_processor.rb
|
|
1254
1274
|
- lib/cosmos/script.rb
|
|
1275
|
+
- lib/cosmos/script/cmd_tlm_server.rb
|
|
1276
|
+
- lib/cosmos/script/commands.rb
|
|
1255
1277
|
- lib/cosmos/script/extract.rb
|
|
1278
|
+
- lib/cosmos/script/limits.rb
|
|
1256
1279
|
- lib/cosmos/script/script.rb
|
|
1280
|
+
- lib/cosmos/script/scripting.rb
|
|
1281
|
+
- lib/cosmos/script/telemetry.rb
|
|
1282
|
+
- lib/cosmos/script/tools.rb
|
|
1257
1283
|
- lib/cosmos/streams/burst_stream_protocol.rb
|
|
1258
1284
|
- lib/cosmos/streams/fixed_stream_protocol.rb
|
|
1259
1285
|
- lib/cosmos/streams/length_stream_protocol.rb
|
|
@@ -1459,6 +1485,7 @@ files:
|
|
|
1459
1485
|
- spec/core_ext/stringio_spec.rb
|
|
1460
1486
|
- spec/core_ext/time_spec.rb
|
|
1461
1487
|
- spec/gui/line_graph/line_clip_spec.rb
|
|
1488
|
+
- spec/gui/qt_spec.rb
|
|
1462
1489
|
- spec/install/config/system/system.txt
|
|
1463
1490
|
- spec/install/config/targets/COSMOS/cmd_tlm/cosmos_server_cmds.txt
|
|
1464
1491
|
- spec/install/config/targets/COSMOS/cmd_tlm/cosmos_server_tlm.txt
|
|
@@ -1527,7 +1554,14 @@ files:
|
|
|
1527
1554
|
- spec/processors/processor_spec.rb
|
|
1528
1555
|
- spec/processors/statistics_processor_spec.rb
|
|
1529
1556
|
- spec/processors/watermark_processor_spec.rb
|
|
1557
|
+
- spec/script/cmd_tlm_server_spec.rb
|
|
1558
|
+
- spec/script/commands_disconnect_spec.rb
|
|
1559
|
+
- spec/script/commands_spec.rb
|
|
1560
|
+
- spec/script/limits_spec.rb
|
|
1530
1561
|
- spec/script/script_spec.rb
|
|
1562
|
+
- spec/script/scripting_spec.rb
|
|
1563
|
+
- spec/script/telemetry_spec.rb
|
|
1564
|
+
- spec/script/tools_spec.rb
|
|
1531
1565
|
- spec/spec_helper.rb
|
|
1532
1566
|
- spec/streams/burst_stream_protocol_spec.rb
|
|
1533
1567
|
- spec/streams/fixed_stream_protocol_spec.rb
|
|
@@ -1692,6 +1726,8 @@ files:
|
|
|
1692
1726
|
- test/performance/tools/TlmExtractor.bat
|
|
1693
1727
|
- test/performance/tools/TlmGrapher
|
|
1694
1728
|
- test/performance/tools/TlmGrapher.bat
|
|
1729
|
+
- test/performance/tools/TlmGrapherMemProf
|
|
1730
|
+
- test/performance/tools/TlmGrapherMemProf.bat
|
|
1695
1731
|
- test/performance/tools/TlmViewer
|
|
1696
1732
|
- test/performance/tools/TlmViewer.bat
|
|
1697
1733
|
- test/performance/tools/mac/CmdExtractor.app/Contents/Info.plist
|