cosmos 4.1.1-java → 4.2.0-java

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.
Files changed (336) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -2
  3. data/.travis.yml +2 -0
  4. data/.yardopts +1 -0
  5. data/Gemfile +1 -0
  6. data/Manifest.txt +130 -0
  7. data/autohotkey/tools/ConfigEditorAHK +19 -0
  8. data/autohotkey/tools/cmd_extractor.ahk +4 -4
  9. data/autohotkey/tools/cmd_sequence.ahk +9 -5
  10. data/autohotkey/tools/config_editor.ahk +197 -0
  11. data/autohotkey/tools/packet_viewer.ahk +12 -6
  12. data/autohotkey/tools/replay.ahk +29 -29
  13. data/autohotkey/tools/script_runner.ahk +10 -2
  14. data/autohotkey/tools/tlm_extractor.ahk +7 -8
  15. data/autohotkey/tools/tlm_grapher.ahk +21 -9
  16. data/bin/dart_import +2 -0
  17. data/cosmos.gemspec +18 -16
  18. data/data/config/cmd_tlm_server.yaml +9 -0
  19. data/data/config/interface_modifiers.yaml +17 -0
  20. data/data/config/item_modifiers.yaml +3 -3
  21. data/data/crc.txt +184 -90
  22. data/data/dart.png +0 -0
  23. data/demo/Gemfile +1 -0
  24. data/demo/Rakefile +4 -0
  25. data/demo/config/dart/Gemfile +54 -0
  26. data/demo/config/data/crc.txt +28 -21
  27. data/demo/config/system/system.txt +3 -0
  28. data/demo/config/system/system2.txt +3 -0
  29. data/demo/config/targets/INST/cmd_tlm/inst_cmds.txt +3 -3
  30. data/demo/config/targets/INST/cmd_tlm/inst_tlm.txt +1 -1
  31. data/demo/config/targets/INST/lib/sim_inst.rb +1 -1
  32. data/demo/config/targets/INST/screens/adcs.txt +2 -1
  33. data/demo/config/targets/INST/screens/array.txt +1 -1
  34. data/demo/config/targets/INST/screens/block.txt +1 -1
  35. data/demo/config/targets/INST/screens/commanding.txt +7 -2
  36. data/demo/config/targets/INST/screens/graphs.txt +1 -1
  37. data/demo/config/targets/INST/screens/ground.txt +1 -1
  38. data/demo/config/targets/INST/screens/hs.txt +2 -1
  39. data/demo/config/targets/INST/screens/latest.txt +1 -1
  40. data/demo/config/targets/INST/screens/limits.txt +1 -1
  41. data/demo/config/targets/INST/screens/other.txt +1 -1
  42. data/demo/config/targets/INST/screens/tabs.txt +1 -1
  43. data/demo/config/tools/cmd_tlm_server/cmd_tlm_server.txt +2 -2
  44. data/demo/config/tools/cmd_tlm_server/cmd_tlm_server2.txt +3 -1
  45. data/demo/config/tools/launcher/launcher.txt +3 -2
  46. data/demo/tools/Dart +16 -0
  47. data/demo/tools/Dart.bat +9 -0
  48. data/demo/tools/mac/CmdSequence.app/Contents/MacOS/main.sh +0 -0
  49. data/demo/tools/mac/ConfigEditor.app/Contents/MacOS/main.sh +0 -0
  50. data/install/Gemfile +1 -0
  51. data/install/Rakefile +4 -0
  52. data/install/config/dart/Gemfile +54 -0
  53. data/install/config/data/crc.txt +6 -3
  54. data/install/config/system/system.txt +3 -0
  55. data/install/config/tools/launcher/launcher.txt +3 -2
  56. data/install/tools/Dart +16 -0
  57. data/install/tools/Dart.bat +9 -0
  58. data/install/tools/mac/CmdSequence.app/Contents/MacOS/main.sh +0 -0
  59. data/install/tools/mac/ConfigEditor.app/Contents/MacOS/main.sh +0 -0
  60. data/lib/cosmos/core_ext/time.rb +8 -8
  61. data/lib/cosmos/dart/.rspec +1 -0
  62. data/lib/cosmos/dart/Gemfile +69 -0
  63. data/lib/cosmos/dart/Rakefile +7 -0
  64. data/lib/cosmos/dart/app/assets/config/manifest.js +4 -0
  65. data/lib/cosmos/dart/app/assets/images/.keep +0 -0
  66. data/lib/cosmos/dart/app/assets/javascripts/application.js +13 -0
  67. data/lib/cosmos/dart/app/assets/javascripts/cable.js +13 -0
  68. data/lib/cosmos/dart/app/assets/stylesheets/application.css.scss +15 -0
  69. data/lib/cosmos/dart/app/channels/application_cable/channel.rb +4 -0
  70. data/lib/cosmos/dart/app/channels/application_cable/connection.rb +4 -0
  71. data/lib/cosmos/dart/app/controllers/application_controller.rb +3 -0
  72. data/lib/cosmos/dart/app/helpers/application_helper.rb +2 -0
  73. data/lib/cosmos/dart/app/jobs/application_job.rb +2 -0
  74. data/lib/cosmos/dart/app/mailers/application_mailer.rb +4 -0
  75. data/lib/cosmos/dart/app/models/application_record.rb +3 -0
  76. data/lib/cosmos/dart/app/models/item.rb +6 -0
  77. data/lib/cosmos/dart/app/models/item_to_decom_table_mapping.rb +9 -0
  78. data/lib/cosmos/dart/app/models/packet.rb +4 -0
  79. data/lib/cosmos/dart/app/models/packet_config.rb +7 -0
  80. data/lib/cosmos/dart/app/models/packet_log.rb +3 -0
  81. data/lib/cosmos/dart/app/models/packet_log_entry.rb +41 -0
  82. data/lib/cosmos/dart/app/models/system_config.rb +2 -0
  83. data/lib/cosmos/dart/app/models/target.rb +4 -0
  84. data/lib/cosmos/dart/app/views/layouts/application.html.erb +14 -0
  85. data/lib/cosmos/dart/app/views/layouts/mailer.html.erb +13 -0
  86. data/lib/cosmos/dart/app/views/layouts/mailer.text.erb +1 -0
  87. data/lib/cosmos/dart/bin/bundle +3 -0
  88. data/lib/cosmos/dart/bin/rails +4 -0
  89. data/lib/cosmos/dart/bin/rake +4 -0
  90. data/lib/cosmos/dart/bin/setup +34 -0
  91. data/lib/cosmos/dart/bin/update +29 -0
  92. data/lib/cosmos/dart/config.ru +5 -0
  93. data/lib/cosmos/dart/config/application.rb +29 -0
  94. data/lib/cosmos/dart/config/boot.rb +3 -0
  95. data/lib/cosmos/dart/config/cable.yml +9 -0
  96. data/lib/cosmos/dart/config/database.yml +23 -0
  97. data/lib/cosmos/dart/config/environment.rb +5 -0
  98. data/lib/cosmos/dart/config/environments/development.rb +62 -0
  99. data/lib/cosmos/dart/config/environments/production.rb +84 -0
  100. data/lib/cosmos/dart/config/environments/test.rb +42 -0
  101. data/lib/cosmos/dart/config/initializers/application_controller_renderer.rb +6 -0
  102. data/lib/cosmos/dart/config/initializers/assets.rb +12 -0
  103. data/lib/cosmos/dart/config/initializers/backtrace_silencers.rb +7 -0
  104. data/lib/cosmos/dart/config/initializers/cookies_serializer.rb +5 -0
  105. data/lib/cosmos/dart/config/initializers/filter_parameter_logging.rb +4 -0
  106. data/lib/cosmos/dart/config/initializers/inflections.rb +16 -0
  107. data/lib/cosmos/dart/config/initializers/mime_types.rb +4 -0
  108. data/lib/cosmos/dart/config/initializers/new_framework_defaults.rb +25 -0
  109. data/lib/cosmos/dart/config/initializers/session_store.rb +3 -0
  110. data/lib/cosmos/dart/config/initializers/wrap_parameters.rb +14 -0
  111. data/lib/cosmos/dart/config/locales/en.yml +23 -0
  112. data/lib/cosmos/dart/config/puma.rb +47 -0
  113. data/lib/cosmos/dart/config/routes.rb +3 -0
  114. data/lib/cosmos/dart/config/secrets.yml +22 -0
  115. data/lib/cosmos/dart/db/migrate/20170406172907_create_targets.rb +8 -0
  116. data/lib/cosmos/dart/db/migrate/20170406172927_create_packets.rb +10 -0
  117. data/lib/cosmos/dart/db/migrate/20170406172937_create_packet_logs.rb +9 -0
  118. data/lib/cosmos/dart/db/migrate/20170406172943_create_packet_log_entries.rb +16 -0
  119. data/lib/cosmos/dart/db/migrate/20170406183500_change_packet_log_entries_primary_key.rb +5 -0
  120. data/lib/cosmos/dart/db/migrate/20170407153618_add_unique_requirements.rb +7 -0
  121. data/lib/cosmos/dart/db/migrate/20170511155447_add_meta_id_to_packet_log_entries.rb +6 -0
  122. data/lib/cosmos/dart/db/migrate/20170523185056_rename_received_time_and_add_is_tlm_to_packet_log_entries.rb +7 -0
  123. data/lib/cosmos/dart/db/migrate/20170525201157_create_items.rb +10 -0
  124. data/lib/cosmos/dart/db/migrate/20170525201315_create_system_configs.rb +9 -0
  125. data/lib/cosmos/dart/db/migrate/20170525201624_create_packet_configs.rb +11 -0
  126. data/lib/cosmos/dart/db/migrate/20170525201745_create_item_to_decom_table_mappings.rb +12 -0
  127. data/lib/cosmos/dart/db/migrate/20170525201939_create_decom_tables.rb +12 -0
  128. data/lib/cosmos/dart/db/migrate/20170525202051_add_decom_state_to_packet_log_entry.rb +5 -0
  129. data/lib/cosmos/dart/db/migrate/20170913160409_update_items.rb +6 -0
  130. data/lib/cosmos/dart/db/migrate/20170913160558_update_item_to_decom_table_mapping.rb +11 -0
  131. data/lib/cosmos/dart/db/migrate/20170913160916_udpate_decom_table.rb +6 -0
  132. data/lib/cosmos/dart/db/migrate/20170913212026_add_ready_to_packet_configs.rb +5 -0
  133. data/lib/cosmos/dart/db/migrate/20170913223556_modify_tables.rb +9 -0
  134. data/lib/cosmos/dart/db/migrate/20170914215744_modify_mapping_table.rb +6 -0
  135. data/lib/cosmos/dart/db/migrate/20170919201433_add_system_config_id_to_packet_config.rb +11 -0
  136. data/lib/cosmos/dart/db/migrate/20170919210307_add_max_table_index_to_packet_configs.rb +5 -0
  137. data/lib/cosmos/dart/db/migrate/20171215225546_add_ready_to_packet_log_entries.rb +5 -0
  138. data/lib/cosmos/dart/db/migrate/20180116214338_add_index_for_ple_ready_to_packet_log_entries.rb +5 -0
  139. data/lib/cosmos/dart/db/schema.rb +103 -0
  140. data/lib/cosmos/dart/db/seeds.rb +7 -0
  141. data/lib/cosmos/dart/examples/dart_decom_client.rb +45 -0
  142. data/lib/cosmos/dart/examples/dart_stream_client.rb +93 -0
  143. data/lib/cosmos/dart/lib/dart_common.rb +749 -0
  144. data/lib/cosmos/dart/lib/dart_database_cleaner.rb +172 -0
  145. data/lib/cosmos/dart/lib/dart_decom_query.rb +184 -0
  146. data/lib/cosmos/dart/lib/dart_decommutator.rb +235 -0
  147. data/lib/cosmos/dart/lib/dart_importer.rb +154 -0
  148. data/lib/cosmos/dart/lib/dart_logging.rb +50 -0
  149. data/lib/cosmos/dart/lib/dart_packet_log_writer.rb +139 -0
  150. data/lib/cosmos/dart/lib/dart_reducer_manager.rb +85 -0
  151. data/lib/cosmos/dart/lib/dart_reducer_worker_thread.rb +263 -0
  152. data/lib/cosmos/dart/lib/dart_tcpip_server_interface.rb +142 -0
  153. data/lib/cosmos/dart/processes/dart.rb +145 -0
  154. data/lib/cosmos/dart/processes/dart_decom_server.rb +39 -0
  155. data/lib/cosmos/dart/processes/dart_import.rb +63 -0
  156. data/lib/cosmos/dart/processes/dart_ingester.rb +92 -0
  157. data/lib/cosmos/dart/processes/dart_reducer.rb +27 -0
  158. data/lib/cosmos/dart/processes/dart_stream_server.rb +31 -0
  159. data/lib/cosmos/dart/processes/dart_worker.rb +37 -0
  160. data/lib/cosmos/dart/spec/dart/dart_common_spec.rb +333 -0
  161. data/lib/cosmos/dart/spec/dart/dart_database_cleaner_spec.rb +455 -0
  162. data/lib/cosmos/dart/spec/dart/dart_decom_query_spec.rb +153 -0
  163. data/lib/cosmos/dart/spec/dart/dart_decommutator_spec.rb +336 -0
  164. data/lib/cosmos/dart/spec/dart/dart_importer_spec.rb +83 -0
  165. data/lib/cosmos/dart/spec/dart/dart_logging_spec.rb +30 -0
  166. data/lib/cosmos/dart/spec/dart/dart_packet_log_writer_spec.rb +149 -0
  167. data/lib/cosmos/dart/spec/dart/dart_reducer_manager_spec.rb +289 -0
  168. data/lib/cosmos/dart/spec/dart/dart_tcpip_server_interface_spec.rb +241 -0
  169. data/lib/cosmos/dart/spec/rails_helper.rb +60 -0
  170. data/lib/cosmos/dart/spec/spec_helper.rb +139 -0
  171. data/lib/cosmos/gui/dialogs/about_dialog.rb +1 -1
  172. data/lib/cosmos/gui/dialogs/dart_dialog.rb +60 -0
  173. data/lib/cosmos/gui/dialogs/legal_dialog.rb +1 -0
  174. data/lib/cosmos/gui/dialogs/scroll_text_dialog.rb +0 -3
  175. data/lib/cosmos/gui/qt.rb +10 -1
  176. data/lib/cosmos/gui/text/completion.rb +10 -9
  177. data/lib/cosmos/gui/text/completion_text_edit.rb +16 -14
  178. data/lib/cosmos/gui/text/ruby_editor.rb +2 -2
  179. data/lib/cosmos/gui/widgets/dart_frame.rb +142 -0
  180. data/lib/cosmos/gui/widgets/dart_meta_frame.rb +119 -0
  181. data/lib/cosmos/gui/widgets/packet_log_frame.rb +42 -12
  182. data/lib/cosmos/interfaces/interface.rb +1 -2
  183. data/lib/cosmos/interfaces/protocols/crc_protocol.rb +26 -8
  184. data/lib/cosmos/interfaces/protocols/fixed_protocol.rb +8 -2
  185. data/lib/cosmos/interfaces/protocols/protocol.rb +2 -1
  186. data/lib/cosmos/interfaces/protocols/template_protocol.rb +1 -1
  187. data/lib/cosmos/interfaces/stream_interface.rb +1 -0
  188. data/lib/cosmos/interfaces/tcpip_server_interface.rb +2 -3
  189. data/lib/cosmos/io/json_drb_object.rb +1 -1
  190. data/lib/cosmos/io/json_rpc.rb +2 -1
  191. data/lib/cosmos/io/win32_serial_driver.rb +2 -9
  192. data/lib/cosmos/packet_logs/packet_log_writer.rb +1 -1
  193. data/lib/cosmos/packets/packet.rb +22 -12
  194. data/lib/cosmos/packets/packet_config.rb +2 -1
  195. data/lib/cosmos/packets/packet_item.rb +26 -24
  196. data/lib/cosmos/packets/parsers/macro_parser.rb +5 -2
  197. data/lib/cosmos/packets/parsers/packet_item_parser.rb +35 -17
  198. data/lib/cosmos/packets/parsers/packet_parser.rb +3 -10
  199. data/lib/cosmos/packets/parsers/xtce_converter.rb +21 -35
  200. data/lib/cosmos/packets/parsers/xtce_parser.rb +54 -46
  201. data/lib/cosmos/packets/structure.rb +10 -2
  202. data/lib/cosmos/packets/structure_item.rb +22 -8
  203. data/lib/cosmos/processors/statistics_processor.rb +2 -0
  204. data/lib/cosmos/script/api_shared.rb +13 -12
  205. data/lib/cosmos/script/cmd_tlm_server.rb +4 -0
  206. data/lib/cosmos/script/commands.rb +3 -15
  207. data/lib/cosmos/script/script.rb +69 -23
  208. data/lib/cosmos/streams/tcpip_client_stream.rb +2 -2
  209. data/lib/cosmos/system/system.rb +42 -25
  210. data/lib/cosmos/system/target.rb +6 -2
  211. data/lib/cosmos/tools/cmd_extractor/cmd_extractor.rb +177 -36
  212. data/lib/cosmos/tools/cmd_sender/cmd_param_table_item_delegate.rb +3 -2
  213. data/lib/cosmos/tools/cmd_sender/cmd_sender.rb +34 -8
  214. data/lib/cosmos/tools/cmd_sequence/cmd_sequence.rb +80 -25
  215. data/lib/cosmos/tools/cmd_tlm_server/api.rb +19 -4
  216. data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server.rb +15 -14
  217. data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb +15 -9
  218. data/lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb +1 -9
  219. data/lib/cosmos/tools/cmd_tlm_server/gui/logging_tab.rb +1 -6
  220. data/lib/cosmos/tools/cmd_tlm_server/gui/packets_tab.rb +1 -3
  221. data/lib/cosmos/tools/cmd_tlm_server/gui/replay_tab.rb +84 -7
  222. data/lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb +0 -1
  223. data/lib/cosmos/tools/cmd_tlm_server/gui/targets_tab.rb +1 -5
  224. data/lib/cosmos/tools/cmd_tlm_server/limits_groups_background_task.rb +3 -2
  225. data/lib/cosmos/tools/cmd_tlm_server/replay_backend.rb +159 -27
  226. data/lib/cosmos/tools/cmd_tlm_server/routers.rb +1 -1
  227. data/lib/cosmos/tools/config_editor/config_editor.rb +17 -52
  228. data/lib/cosmos/tools/config_editor/config_editor_frame.rb +0 -5
  229. data/lib/cosmos/tools/data_viewer/data_viewer.rb +111 -0
  230. data/lib/cosmos/tools/limits_monitor/limits_monitor.rb +31 -18
  231. data/lib/cosmos/tools/packet_viewer/packet_viewer.rb +12 -3
  232. data/lib/cosmos/tools/script_runner/script_runner.rb +27 -14
  233. data/lib/cosmos/tools/script_runner/script_runner_frame.rb +104 -37
  234. data/lib/cosmos/tools/table_manager/table_config.rb +1 -1
  235. data/lib/cosmos/tools/table_manager/table_item_parser.rb +4 -2
  236. data/lib/cosmos/tools/table_manager/table_manager.rb +0 -5
  237. data/lib/cosmos/tools/table_manager/table_manager_core.rb +0 -1
  238. data/lib/cosmos/tools/test_runner/test.rb +1 -3
  239. data/lib/cosmos/tools/test_runner/test_runner.rb +26 -15
  240. data/lib/cosmos/tools/tlm_extractor/tlm_extractor.rb +290 -137
  241. data/lib/cosmos/tools/tlm_extractor/tlm_extractor_config.rb +122 -25
  242. data/lib/cosmos/tools/tlm_extractor/tlm_extractor_processor.rb +67 -0
  243. data/lib/cosmos/tools/tlm_grapher/data_object_editors/housekeeping_data_object_editor.rb +28 -0
  244. data/lib/cosmos/tools/tlm_grapher/data_object_editors/xy_data_object_editor.rb +36 -0
  245. data/lib/cosmos/tools/tlm_grapher/data_objects/data_object.rb +42 -3
  246. data/lib/cosmos/tools/tlm_grapher/data_objects/housekeeping_data_object.rb +88 -14
  247. data/lib/cosmos/tools/tlm_grapher/data_objects/linegraph_data_object.rb +2 -5
  248. data/lib/cosmos/tools/tlm_grapher/data_objects/singlexy_data_object.rb +2 -6
  249. data/lib/cosmos/tools/tlm_grapher/data_objects/xy_data_object.rb +74 -18
  250. data/lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_config.rb +3 -7
  251. data/lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_dart_thread.rb +159 -0
  252. data/lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_tool.rb +49 -2
  253. data/lib/cosmos/tools/tlm_viewer/screen.rb +3 -0
  254. data/lib/cosmos/tools/tlm_viewer/tlm_viewer_config.rb +0 -2
  255. data/lib/cosmos/tools/tlm_viewer/widgets.rb +1 -0
  256. data/lib/cosmos/tools/tlm_viewer/widgets/backgroundbutton_widget.rb +54 -0
  257. data/lib/cosmos/tools/tlm_viewer/widgets/button_widget.rb +5 -5
  258. data/lib/cosmos/top_level.rb +1 -0
  259. data/lib/cosmos/utilities/crc.rb +3 -0
  260. data/lib/cosmos/utilities/csv.rb +1 -0
  261. data/lib/cosmos/utilities/message_log.rb +2 -1
  262. data/lib/cosmos/utilities/simulated_target.rb +8 -8
  263. data/lib/cosmos/version.rb +5 -5
  264. data/lib/cosmos/win32/win32.rb +4 -10
  265. data/run_gui_tests.bat +2 -1
  266. data/spec/config/config_parser_spec.rb +4 -4
  267. data/spec/core_ext/array_spec.rb +1 -1
  268. data/spec/core_ext/exception_spec.rb +12 -12
  269. data/spec/core_ext/file_spec.rb +6 -6
  270. data/spec/core_ext/hash_spec.rb +1 -1
  271. data/spec/core_ext/socket_spec.rb +2 -2
  272. data/spec/core_ext/string_spec.rb +13 -13
  273. data/spec/core_ext/time_spec.rb +0 -2
  274. data/spec/gui/utilities/script_module_gui_spec.rb +3 -3
  275. data/spec/install/config/targets/INST/cmd_tlm/inst_tlm.txt +6 -6
  276. data/spec/install/config/tools/cmd_tlm_server/cmd_tlm_server.txt +4 -0
  277. data/spec/interfaces/cmd_tlm_server_interface_spec.rb +6 -2
  278. data/spec/interfaces/interface_spec.rb +0 -1
  279. data/spec/interfaces/linc_interface_spec.rb +0 -5
  280. data/spec/interfaces/protocols/crc_protocol_spec.rb +201 -85
  281. data/spec/interfaces/protocols/fixed_protocol_spec.rb +33 -9
  282. data/spec/interfaces/protocols/length_protocol_spec.rb +1 -1
  283. data/spec/interfaces/protocols/override_protocol_spec.rb +6 -2
  284. data/spec/interfaces/protocols/preidentified_protocol_spec.rb +1 -5
  285. data/spec/interfaces/protocols/template_protocol_spec.rb +0 -1
  286. data/spec/interfaces/simulated_target_interface_spec.rb +5 -5
  287. data/spec/interfaces/udp_interface_spec.rb +2 -4
  288. data/spec/io/buffered_file_spec.rb +8 -12
  289. data/spec/io/json_drb_spec.rb +9 -9
  290. data/spec/io/json_rpc_spec.rb +4 -4
  291. data/spec/io/raw_logger_spec.rb +4 -3
  292. data/spec/packet_logs/packet_log_reader_spec.rb +3 -6
  293. data/spec/packet_logs/packet_log_writer_spec.rb +4 -4
  294. data/spec/packets/binary_accessor_spec.rb +5 -8
  295. data/spec/packets/commands_spec.rb +2 -2
  296. data/spec/packets/limits_spec.rb +2 -2
  297. data/spec/packets/packet_config_spec.rb +12 -0
  298. data/spec/packets/packet_item_limits_spec.rb +1 -1
  299. data/spec/packets/packet_item_spec.rb +9 -9
  300. data/spec/packets/packet_spec.rb +15 -5
  301. data/spec/packets/parsers/packet_item_parser_spec.rb +27 -0
  302. data/spec/packets/parsers/xtce_parser_spec.rb +27 -30
  303. data/spec/packets/structure_spec.rb +2 -1
  304. data/spec/packets/telemetry_spec.rb +3 -5
  305. data/spec/processors/statistics_processor_spec.rb +35 -0
  306. data/spec/script/cmd_tlm_server_spec.rb +4 -21
  307. data/spec/script/commands_disconnect_spec.rb +46 -58
  308. data/spec/script/commands_spec.rb +40 -61
  309. data/spec/script/limits_spec.rb +1 -21
  310. data/spec/script/script_spec.rb +32 -41
  311. data/spec/script/scripting_spec.rb +166 -185
  312. data/spec/script/telemetry_spec.rb +10 -5
  313. data/spec/script/tools_spec.rb +2 -24
  314. data/spec/spec_helper.rb +11 -5
  315. data/spec/system/system_spec.rb +17 -12
  316. data/spec/tools/cmd_tlm_server/api_spec.rb +21 -10
  317. data/spec/tools/cmd_tlm_server/background_tasks_spec.rb +15 -16
  318. data/spec/tools/cmd_tlm_server/cmd_tlm_server_config_spec.rb +0 -1
  319. data/spec/tools/cmd_tlm_server/cmd_tlm_server_spec.rb +16 -27
  320. data/spec/tools/cmd_tlm_server/commanding_spec.rb +2 -6
  321. data/spec/tools/cmd_tlm_server/connections_spec.rb +0 -4
  322. data/spec/tools/cmd_tlm_server/interface_thread_spec.rb +13 -13
  323. data/spec/tools/cmd_tlm_server/interfaces_spec.rb +5 -9
  324. data/spec/tools/cmd_tlm_server/limits_groups_background_task_spec.rb +11 -3
  325. data/spec/tools/cmd_tlm_server/packet_logging_spec.rb +0 -4
  326. data/spec/tools/cmd_tlm_server/router_thread_spec.rb +5 -5
  327. data/spec/tools/cmd_tlm_server/routers_spec.rb +5 -9
  328. data/spec/tools/table_manager/table_config_spec.rb +0 -1
  329. data/spec/tools/table_manager/tablemanager_core_spec.rb +23 -23
  330. data/spec/tools/tlm_viewer/tlm_viewer_config_spec.rb +6 -4
  331. data/spec/top_level/top_level_spec.rb +9 -9
  332. data/spec/utilities/csv_spec.rb +2 -12
  333. data/spec/utilities/logger_spec.rb +6 -6
  334. data/spec/utilities/message_log_spec.rb +3 -11
  335. data/tasks/gemfile_stats.rake +2 -2
  336. metadata +167 -60
@@ -14,7 +14,6 @@ require 'cosmos/tools/table_manager/table_config'
14
14
  require 'tempfile'
15
15
 
16
16
  module Cosmos
17
-
18
17
  describe TableConfig do
19
18
  let(:tc) { TableConfig.new }
20
19
 
@@ -61,7 +61,7 @@ module Cosmos
61
61
  end
62
62
  bin_filename = core.file_new(def_filename, Dir.pwd)
63
63
  expect(bin_filename).to eq File.join(Dir.pwd, "table.dat")
64
- expect(File.read(bin_filename).formatted).to match /DE AD BE EF 00 00/
64
+ expect(File.read(bin_filename).formatted).to match(/DE AD BE EF 00 00/)
65
65
  FileUtils.rm def_filename
66
66
  FileUtils.rm bin_filename
67
67
  FileUtils.rm 'table.csv'
@@ -96,7 +96,7 @@ module Cosmos
96
96
  file.puts ' APPEND_PARAMETER item1 32 UINT 0 0 0 "Item"'
97
97
  end
98
98
  expect { core.file_open(bin_filename, def_filename) }.to raise_error(/Binary size of 2 not large enough/)
99
- expect(core.config.tables['TABLE1'].buffer.formatted).to match /AB CD 00 00/
99
+ expect(core.config.tables['TABLE1'].buffer.formatted).to match(/AB CD 00 00/)
100
100
  FileUtils.rm bin_filename
101
101
  FileUtils.rm def_filename
102
102
  end
@@ -110,7 +110,7 @@ module Cosmos
110
110
  file.puts ' APPEND_PARAMETER item1 16 UINT 0 0 0 "Item"'
111
111
  end
112
112
  expect { core.file_open(bin_filename, def_filename) }.to raise_error(/Binary size of 3 larger/)
113
- expect(core.config.tables['TABLE1'].buffer.formatted).to match /AB CD/
113
+ expect(core.config.tables['TABLE1'].buffer.formatted).to match(/AB CD/)
114
114
  FileUtils.rm bin_filename
115
115
  FileUtils.rm def_filename
116
116
  end
@@ -146,7 +146,7 @@ module Cosmos
146
146
  core.file_open(bin_filename, def_filename)
147
147
  core.config.tables['TABLE1'].buffer = "\xAB\xCD"
148
148
  core.file_save('save.bin')
149
- expect(File.read('save.bin').formatted).to match /AB CD/
149
+ expect(File.read('save.bin').formatted).to match(/AB CD/)
150
150
  FileUtils.rm bin_filename
151
151
  FileUtils.rm def_filename
152
152
  FileUtils.rm 'save.bin'
@@ -205,8 +205,8 @@ module Cosmos
205
205
  report_filename = core.file_report(bin_filename, def_filename)
206
206
  expect(File.basename(report_filename)).to eql "testfile.csv"
207
207
  report = File.read(report_filename)
208
- expect(report).to match /#{bin_filename}/
209
- expect(report).to match /#{def_filename}/
208
+ expect(report).to match(/#{bin_filename}/)
209
+ expect(report).to match(/#{def_filename}/)
210
210
  FileUtils.rm report_filename
211
211
  FileUtils.rm bin_filename
212
212
  FileUtils.rm def_filename
@@ -225,8 +225,8 @@ module Cosmos
225
225
  report_filename = core.file_report(bin_filename, def_filename)
226
226
  expect(File.basename(report_filename)).to eql "testfile.csv"
227
227
  report = File.read(report_filename)
228
- expect(report).to match /#{bin_filename}/
229
- expect(report).to match /#{def_filename}/
228
+ expect(report).to match(/#{bin_filename}/)
229
+ expect(report).to match(/#{def_filename}/)
230
230
  FileUtils.rm report_filename
231
231
  FileUtils.rm bin_filename
232
232
  FileUtils.rm def_filename
@@ -248,8 +248,8 @@ module Cosmos
248
248
  file.puts ' APPEND_PARAMETER item2 16 UINT MIN MAX 0 "Item"'
249
249
  end
250
250
  core.file_open(bin_filename, def_filename)
251
- expect(core.file_hex).to match /Total Bytes Read: 4/
252
- expect(core.file_hex).to match /DE AD BE EF/
251
+ expect(core.file_hex).to match(/Total Bytes Read: 4/)
252
+ expect(core.file_hex).to match(/DE AD BE EF/)
253
253
  FileUtils.rm bin_filename
254
254
  FileUtils.rm def_filename
255
255
  end
@@ -294,9 +294,9 @@ module Cosmos
294
294
  end
295
295
  core.file_open(bin_filename, def_filename)
296
296
  result = core.table_check('table1')
297
- expect(result).to match "ITEM1: 3 outside valid range of 0..2"
298
- expect(result).to match "ITEM2: -3 outside valid range of -2..2"
299
- expect(result).to match "ITEM4: 0x6 outside valid range of 0x0..0x4"
297
+ expect(result).to match("ITEM1: 3 outside valid range of 0..2")
298
+ expect(result).to match("ITEM2: -3 outside valid range of -2..2")
299
+ expect(result).to match("ITEM4: 0x6 outside valid range of 0x0..0x4")
300
300
  FileUtils.rm bin_filename
301
301
  FileUtils.rm def_filename
302
302
  end
@@ -336,7 +336,7 @@ module Cosmos
336
336
  expect(core.config.tables['TABLE1'].read('item2')).to eq 0
337
337
  expect(core.config.tables['TABLE1'].read('item3')).to eq ""
338
338
  core.table_default('table1')
339
- expect(core.config.tables['TABLE1'].read('item1')).to eq -100
339
+ expect(core.config.tables['TABLE1'].read('item1')).to eq (-100)
340
340
  expect(core.config.tables['TABLE1'].read('item2')).to eq 0xDEADBEEF
341
341
  expect(core.config.tables['TABLE1'].read('item3')).to eq "HELLO"
342
342
  FileUtils.rm bin_filename
@@ -377,10 +377,10 @@ module Cosmos
377
377
  file.puts ' APPEND_PARAMETER item2 16 UINT MIN MAX 0 "Item"'
378
378
  end
379
379
  core.file_open(bin_filename, def_filename)
380
- expect(core.table_hex('table1')).to match /Total Bytes Read: 4/
381
- expect(core.table_hex('table1')).to match /DE AD BE EF/
382
- expect(core.table_hex('table2')).to match /Total Bytes Read: 4/
383
- expect(core.table_hex('table2')).to match /CA FE BA BE/
380
+ expect(core.table_hex('table1')).to match(/Total Bytes Read: 4/)
381
+ expect(core.table_hex('table1')).to match(/DE AD BE EF/)
382
+ expect(core.table_hex('table2')).to match(/Total Bytes Read: 4/)
383
+ expect(core.table_hex('table2')).to match(/CA FE BA BE/)
384
384
  FileUtils.rm bin_filename
385
385
  FileUtils.rm def_filename
386
386
  end
@@ -435,9 +435,9 @@ module Cosmos
435
435
  end
436
436
  core.file_open(bin_filename, def_filename)
437
437
  core.table_save('table1', 'table1.dat')
438
- expect(File.read('table1.dat').formatted).to match /DE AD BE EF/
438
+ expect(File.read('table1.dat').formatted).to match(/DE AD BE EF/)
439
439
  core.table_save('table2', 'table2.dat')
440
- expect(File.read('table2.dat').formatted).to match /CA FE BA BE/
440
+ expect(File.read('table2.dat').formatted).to match(/CA FE BA BE/)
441
441
  FileUtils.rm bin_filename
442
442
  FileUtils.rm def_filename
443
443
  FileUtils.rm 'table1.dat'
@@ -540,11 +540,11 @@ module Cosmos
540
540
  File.open(new_bin_filename,'w') {|file| file.write "\x00"*8 }
541
541
 
542
542
  core.file_open(bin_filename, def_filename)
543
- expect(File.read('newtestfile.dat').formatted).to match /00 00 00 00 00 00 00 00/
543
+ expect(File.read('newtestfile.dat').formatted).to match(/00 00 00 00 00 00 00 00/)
544
544
  core.table_commit('table1', 'newtestfile.dat', 'testfile_def.txt')
545
- expect(File.read('newtestfile.dat').formatted).to match /DE AD BE EF 00 00 00 00/
545
+ expect(File.read('newtestfile.dat').formatted).to match(/DE AD BE EF 00 00 00 00/)
546
546
  core.table_commit('table2', 'newtestfile.dat', 'testfile_def.txt')
547
- expect(File.read('newtestfile.dat').formatted).to match /DE AD BE EF CA FE BA BE/
547
+ expect(File.read('newtestfile.dat').formatted).to match(/DE AD BE EF CA FE BA BE/)
548
548
  FileUtils.rm bin_filename
549
549
  FileUtils.rm def_filename
550
550
  FileUtils.rm new_bin_filename
@@ -352,10 +352,11 @@ module Cosmos
352
352
  tf.unlink
353
353
 
354
354
  config = File.read(config_file)
355
- expect(config).to match /TARGET "INST"/
356
- expect(config).to match /SCREEN "hs.txt"/
357
- expect(config).to match /TARGET "SYSTEM"/
358
- expect(config).to match /SCREEN "status.txt"/
355
+ expect(config).to match(/TARGET "INST"/)
356
+ expect(config).to match(/SCREEN "hs.txt"/)
357
+ expect(config).to match(/TARGET "SYSTEM"/)
358
+ expect(config).to match(/SCREEN "status.txt"/)
359
+ FileUtils.rm_f config_file
359
360
  end
360
361
 
361
362
  it "saves the configuration" do
@@ -392,6 +393,7 @@ module Cosmos
392
393
  expect(config).to include(test_group)
393
394
  expect(config).to include("TARGET \"SYSTEM\"\n SCREEN \"status.txt\" 500 600\n SHOW_ON_STARTUP")
394
395
  expect(config.scan(/NEW_COLUMN/).count).to eql 2
396
+ FileUtils.rm_f config_file
395
397
  end
396
398
  end
397
399
 
@@ -45,7 +45,7 @@ module Cosmos
45
45
  $stderr = stderr
46
46
  save = Cosmos::PATH
47
47
  Cosmos::PATH = "HI"
48
- expect(stderr.string).to match /warning\: already initialized constant/
48
+ expect(stderr.string).to match(/warning\: already initialized constant/)
49
49
  Cosmos::PATH = save
50
50
 
51
51
  save_mutex = Cosmos::COSMOS_MUTEX
@@ -53,7 +53,7 @@ module Cosmos
53
53
  Cosmos::COSMOS_MUTEX = "HI"
54
54
  Cosmos::COSMOS_MUTEX = save_mutex
55
55
  end
56
- expect(stderr.string).not_to match "warning: already initialized constant COSMOS_MUTEX"
56
+ expect(stderr.string).not_to match("warning: already initialized constant COSMOS_MUTEX")
57
57
  $stderr = STDERR
58
58
  end
59
59
  end
@@ -166,7 +166,7 @@ module Cosmos
166
166
  system_exit_count = $system_exit_count
167
167
  Cosmos.marshal_dump('marshal_test', Proc.new { '' })
168
168
  expect($system_exit_count).to be > system_exit_count
169
- expect(stdout.string).to match "is defined for class Proc"
169
+ expect(stdout.string).to match("is defined for class Proc")
170
170
  end
171
171
  Cosmos.cleanup_exceptions()
172
172
  end
@@ -187,7 +187,7 @@ module Cosmos
187
187
 
188
188
  capture_io do |stdout|
189
189
  Cosmos.marshal_load('marshal_test')
190
- expect(stdout.string).to match "Marshal load failed with exception"
190
+ expect(stdout.string).to match("Marshal load failed with exception")
191
191
  end
192
192
  Cosmos.cleanup_exceptions()
193
193
  end
@@ -217,7 +217,7 @@ module Cosmos
217
217
  allow(Logger).to receive(:error) {|str| output = str}
218
218
  thread = Cosmos.run_process_check_output("ping 192.0.0.234 -n 1 -w 1000")
219
219
  sleep 0.1 while thread.alive?
220
- expect(output).to match "Pinging 192.0.0.234"
220
+ expect(output).to match("Pinging 192.0.0.234")
221
221
  end
222
222
  end
223
223
  end
@@ -311,7 +311,7 @@ module Cosmos
311
311
  raise "AHHH!!!"
312
312
  end
313
313
  expect($system_exit_count).to eql(system_exit_count + 1)
314
- expect(stdout.string).to match "Fatal Exception! Exiting..."
314
+ expect(stdout.string).to match("Fatal Exception! Exiting...")
315
315
  end
316
316
  Cosmos.cleanup_exceptions()
317
317
  end
@@ -323,7 +323,7 @@ module Cosmos
323
323
  system_exit_count = $system_exit_count
324
324
  Cosmos.handle_fatal_exception(RuntimeError.new)
325
325
  expect($system_exit_count).to eql(system_exit_count + 1)
326
- expect(stdout.string).to match "Fatal Exception! Exiting..."
326
+ expect(stdout.string).to match("Fatal Exception! Exiting...")
327
327
  end
328
328
  Cosmos.cleanup_exceptions()
329
329
  end
@@ -335,7 +335,7 @@ module Cosmos
335
335
  system_exit_count = $system_exit_count
336
336
  Cosmos.handle_critical_exception(RuntimeError.new)
337
337
  expect($system_exit_count).to eql(system_exit_count)
338
- expect(stdout.string).to match "Critical Exception!"
338
+ expect(stdout.string).to match("Critical Exception!")
339
339
  end
340
340
  Cosmos.cleanup_exceptions()
341
341
  end
@@ -350,7 +350,7 @@ module Cosmos
350
350
  def thread.graceful_kill
351
351
  end
352
352
  sleep 1
353
- expect(stdout.string).to match "Test thread unexpectedly died."
353
+ expect(stdout.string).to match("Test thread unexpectedly died.")
354
354
  Cosmos.kill_thread(thread, thread)
355
355
  end
356
356
  Cosmos.cleanup_exceptions()
@@ -17,6 +17,7 @@ module Cosmos
17
17
  before(:each) do
18
18
  @lines = []
19
19
  # CSV data can't have extra spaces in array values
20
+ @lines << "# This is a comment\n"
20
21
  @lines << "test,1,2,3\n"
21
22
  @lines << "bool1,true,false\n"
22
23
  @lines << "bool2,false,true\n"
@@ -29,27 +30,16 @@ module Cosmos
29
30
  @test_file.close
30
31
 
31
32
  @csv = CSV.new(@test_file.path)
32
- @dir_name = System.paths['LOGS']
33
33
  end
34
34
 
35
35
  after(:each) do
36
36
  Dir["*cosmos_csv_spec*"].each do |filename|
37
37
  File.delete(filename)
38
38
  end
39
- if @dir_created
40
- sleep(1)
41
- FileUtils.remove_dir(@dir_name, false)
42
- end
43
- end
44
-
45
- after(:all) do
46
- clean_config()
47
39
  end
48
40
 
49
41
  describe "initialize" do
50
42
  it "loads the CSV data and overwrites existing key/values" do
51
- lines = []
52
-
53
43
  tf = Tempfile.new("test.csv")
54
44
  tf.puts "test,1,2,3\n"
55
45
  tf.puts "other,10\n"
@@ -68,7 +58,7 @@ module Cosmos
68
58
  expect(@csv["test"]).to eq(%w(1 2 3))
69
59
  end
70
60
 
71
- it "returns all keys" do
61
+ it "returns all keys and ignores comments" do
72
62
  expect(@csv.keys).to eq(%w(test bool1 bool2 int float string))
73
63
  end
74
64
 
@@ -34,20 +34,20 @@ module Cosmos
34
34
  Logger.level = level
35
35
  if block
36
36
  Logger.send(method, "Message1") { "Block1" }
37
- expect(stdout.string).not_to match "Message1"
38
- expect(stdout.string).to match "#{method.upcase}: Block1"
37
+ expect(stdout.string).not_to match("Message1")
38
+ expect(stdout.string).to match("#{method.upcase}: Block1")
39
39
  else
40
40
  Logger.send(method, "Message1")
41
- expect(stdout.string).to match "#{method.upcase}: Message1"
41
+ expect(stdout.string).to match("#{method.upcase}: Message1")
42
42
  end
43
43
  Logger::instance.level = level + 1
44
44
  if block
45
45
  Logger.debug("Message2") { "Block2" }
46
- expect(stdout.string).not_to match "Message2"
47
- expect(stdout.string).not_to match "Block2"
46
+ expect(stdout.string).not_to match("Message2")
47
+ expect(stdout.string).not_to match("Block2")
48
48
  else
49
49
  Logger.send(method, "Message2")
50
- expect(stdout.string).not_to match "Message2"
50
+ expect(stdout.string).not_to match("Message2")
51
51
  end
52
52
  $stdout = STDOUT
53
53
  Logger.level = Logger::UNKNOWN
@@ -13,14 +13,6 @@ require "cosmos/utilities/message_log"
13
13
 
14
14
  module Cosmos
15
15
  describe MessageLog do
16
- before(:all) do
17
- System.class_eval('@@instance = nil')
18
- end
19
-
20
- after(:all) do
21
- clean_config()
22
- end
23
-
24
16
  describe "initialize" do
25
17
  it "accepts a tool name and use the default LOG path" do
26
18
  log = MessageLog.new('TEST')
@@ -28,8 +20,8 @@ module Cosmos
28
20
  log.stop
29
21
  Cosmos.set_working_dir do
30
22
  expect(File.exist?(log.filename)).to be true
31
- expect(log.filename).to match 'TEST'
32
- expect(log.filename).to match 'logs'
23
+ expect(log.filename).to match('TEST')
24
+ expect(log.filename).to match('logs')
33
25
  File.delete log.filename
34
26
  end
35
27
  end
@@ -39,7 +31,7 @@ module Cosmos
39
31
  log.start
40
32
  log.stop
41
33
  expect(File.exist?(log.filename)).to be true
42
- expect(log.filename).to match File.expand_path(File.dirname(__FILE__))
34
+ expect(log.filename).to match(File.expand_path(File.dirname(__FILE__)))
43
35
  File.delete log.filename
44
36
  end
45
37
  end
@@ -67,8 +67,8 @@ task :gemfile_stats do
67
67
  end
68
68
 
69
69
  # Reduce the number of labels due to overlap
70
- labels.each do |index, label|
71
- labels[index] = '' if index % 2 == 0
70
+ labels.each do |i, label|
71
+ labels[i] = '' if i % 2 == 0
72
72
  end
73
73
  g.labels = labels
74
74
  g.marker_font_size = 12
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: 4.1.1
4
+ version: 4.2.0
5
5
  platform: java
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: 2017-12-06 00:00:00.000000000 Z
12
+ date: 2018-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
@@ -30,10 +30,10 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '3'
33
+ version: '4'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '5'
36
+ version: '6'
37
37
  name: rdoc
38
38
  prerelease: false
39
39
  type: :runtime
@@ -41,19 +41,16 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: '3'
44
+ version: '4'
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '5'
47
+ version: '6'
48
48
  - !ruby/object:Gem::Dependency
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0'
54
- - - "<"
55
- - !ruby/object:Gem::Version
56
- version: '13'
53
+ version: '10.0'
57
54
  name: rake
58
55
  prerelease: false
59
56
  type: :runtime
@@ -61,10 +58,7 @@ dependencies:
61
58
  requirements:
62
59
  - - ">="
63
60
  - !ruby/object:Gem::Version
64
- version: '0'
65
- - - "<"
66
- - !ruby/object:Gem::Version
67
- version: '13'
61
+ version: '10.0'
68
62
  - !ruby/object:Gem::Dependency
69
63
  requirement: !ruby/object:Gem::Requirement
70
64
  requirements:
@@ -73,7 +67,7 @@ dependencies:
73
67
  version: '1.5'
74
68
  - - "<"
75
69
  - !ruby/object:Gem::Version
76
- version: '1.9'
70
+ version: '3'
77
71
  name: json
78
72
  prerelease: false
79
73
  type: :runtime
@@ -84,73 +78,55 @@ dependencies:
84
78
  version: '1.5'
85
79
  - - "<"
86
80
  - !ruby/object:Gem::Version
87
- version: '1.9'
81
+ version: '3'
88
82
  - !ruby/object:Gem::Dependency
89
83
  requirement: !ruby/object:Gem::Requirement
90
84
  requirements:
91
- - - ">="
85
+ - - "~>"
92
86
  - !ruby/object:Gem::Version
93
87
  version: '0.9'
94
- - - "<"
95
- - !ruby/object:Gem::Version
96
- version: '0.11'
97
88
  name: pry
98
89
  prerelease: false
99
90
  type: :runtime
100
91
  version_requirements: !ruby/object:Gem::Requirement
101
92
  requirements:
102
- - - ">="
93
+ - - "~>"
103
94
  - !ruby/object:Gem::Version
104
95
  version: '0.9'
105
- - - "<"
106
- - !ruby/object:Gem::Version
107
- version: '0.11'
108
96
  - !ruby/object:Gem::Dependency
109
97
  requirement: !ruby/object:Gem::Requirement
110
98
  requirements:
111
- - - ">="
99
+ - - "~>"
112
100
  - !ruby/object:Gem::Version
113
101
  version: '0.5'
114
- - - "<"
115
- - !ruby/object:Gem::Version
116
- version: '0.7'
117
102
  name: pry-doc
118
103
  prerelease: false
119
104
  type: :runtime
120
105
  version_requirements: !ruby/object:Gem::Requirement
121
106
  requirements:
122
- - - ">="
107
+ - - "~>"
123
108
  - !ruby/object:Gem::Version
124
109
  version: '0.5'
125
- - - "<"
126
- - !ruby/object:Gem::Version
127
- version: '0.7'
128
110
  - !ruby/object:Gem::Dependency
129
111
  requirement: !ruby/object:Gem::Requirement
130
112
  requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- version: '0.8'
134
- - - "<"
113
+ - - "~>"
135
114
  - !ruby/object:Gem::Version
136
- version: '0.10'
115
+ version: 0.9.11
137
116
  name: yard
138
117
  prerelease: false
139
118
  type: :runtime
140
119
  version_requirements: !ruby/object:Gem::Requirement
141
120
  requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- version: '0.8'
145
- - - "<"
121
+ - - "~>"
146
122
  - !ruby/object:Gem::Version
147
- version: '0.10'
123
+ version: 0.9.11
148
124
  - !ruby/object:Gem::Dependency
149
125
  requirement: !ruby/object:Gem::Requirement
150
126
  requirements:
151
127
  - - "~>"
152
128
  - !ruby/object:Gem::Version
153
- version: 2.1.0
129
+ version: '2.1'
154
130
  name: uuidtools
155
131
  prerelease: false
156
132
  type: :runtime
@@ -158,7 +134,7 @@ dependencies:
158
134
  requirements:
159
135
  - - "~>"
160
136
  - !ruby/object:Gem::Version
161
- version: 2.1.0
137
+ version: '2.1'
162
138
  - !ruby/object:Gem::Dependency
163
139
  requirement: !ruby/object:Gem::Requirement
164
140
  requirements:
@@ -178,7 +154,7 @@ dependencies:
178
154
  requirements:
179
155
  - - "~>"
180
156
  - !ruby/object:Gem::Version
181
- version: 1.2.1
157
+ version: '1.2'
182
158
  name: rubyzip
183
159
  prerelease: false
184
160
  type: :runtime
@@ -186,7 +162,7 @@ dependencies:
186
162
  requirements:
187
163
  - - "~>"
188
164
  - !ruby/object:Gem::Version
189
- version: 1.2.1
165
+ version: '1.2'
190
166
  - !ruby/object:Gem::Dependency
191
167
  requirement: !ruby/object:Gem::Requirement
192
168
  requirements:
@@ -206,7 +182,7 @@ dependencies:
206
182
  requirements:
207
183
  - - "~>"
208
184
  - !ruby/object:Gem::Version
209
- version: 3.10.0
185
+ version: '3.10'
210
186
  name: puma
211
187
  prerelease: false
212
188
  type: :runtime
@@ -214,13 +190,13 @@ dependencies:
214
190
  requirements:
215
191
  - - "~>"
216
192
  - !ruby/object:Gem::Version
217
- version: 3.10.0
193
+ version: '3.10'
218
194
  - !ruby/object:Gem::Dependency
219
195
  requirement: !ruby/object:Gem::Requirement
220
196
  requirements:
221
197
  - - "~>"
222
198
  - !ruby/object:Gem::Version
223
- version: 2.0.3
199
+ version: '2.0'
224
200
  name: rack
225
201
  prerelease: false
226
202
  type: :runtime
@@ -228,13 +204,13 @@ dependencies:
228
204
  requirements:
229
205
  - - "~>"
230
206
  - !ruby/object:Gem::Version
231
- version: 2.0.3
207
+ version: '2.0'
232
208
  - !ruby/object:Gem::Dependency
233
209
  requirement: !ruby/object:Gem::Requirement
234
210
  requirements:
235
211
  - - "~>"
236
212
  - !ruby/object:Gem::Version
237
- version: 2.8.3
213
+ version: '2.8'
238
214
  name: httpclient
239
215
  prerelease: false
240
216
  type: :runtime
@@ -242,13 +218,13 @@ dependencies:
242
218
  requirements:
243
219
  - - "~>"
244
220
  - !ruby/object:Gem::Version
245
- version: 2.8.3
221
+ version: '2.8'
246
222
  - !ruby/object:Gem::Dependency
247
223
  requirement: !ruby/object:Gem::Requirement
248
224
  requirements:
249
225
  - - "~>"
250
226
  - !ruby/object:Gem::Version
251
- version: 3.5.0
227
+ version: '3.5'
252
228
  name: rspec
253
229
  prerelease: false
254
230
  type: :development
@@ -256,7 +232,7 @@ dependencies:
256
232
  requirements:
257
233
  - - "~>"
258
234
  - !ruby/object:Gem::Version
259
- version: 3.5.0
235
+ version: '3.5'
260
236
  - !ruby/object:Gem::Dependency
261
237
  requirement: !ruby/object:Gem::Requirement
262
238
  requirements:
@@ -290,7 +266,7 @@ dependencies:
290
266
  requirements:
291
267
  - - "~>"
292
268
  - !ruby/object:Gem::Version
293
- version: '1.0'
269
+ version: '4.0'
294
270
  name: reek
295
271
  prerelease: false
296
272
  type: :development
@@ -298,7 +274,7 @@ dependencies:
298
274
  requirements:
299
275
  - - "~>"
300
276
  - !ruby/object:Gem::Version
301
- version: '1.0'
277
+ version: '4.0'
302
278
  - !ruby/object:Gem::Dependency
303
279
  requirement: !ruby/object:Gem::Requirement
304
280
  requirements:
@@ -332,7 +308,7 @@ dependencies:
332
308
  requirements:
333
309
  - - "~>"
334
310
  - !ruby/object:Gem::Version
335
- version: '2.0'
311
+ version: '3.0'
336
312
  name: listen
337
313
  prerelease: false
338
314
  type: :development
@@ -340,7 +316,7 @@ dependencies:
340
316
  requirements:
341
317
  - - "~>"
342
318
  - !ruby/object:Gem::Version
343
- version: '2.0'
319
+ version: '3.0'
344
320
  - !ruby/object:Gem::Dependency
345
321
  requirement: !ruby/object:Gem::Requirement
346
322
  requirements:
@@ -374,7 +350,7 @@ dependencies:
374
350
  requirements:
375
351
  - - "~>"
376
352
  - !ruby/object:Gem::Version
377
- version: '0.11'
353
+ version: '0.15'
378
354
  name: simplecov
379
355
  prerelease: false
380
356
  type: :development
@@ -382,7 +358,7 @@ dependencies:
382
358
  requirements:
383
359
  - - "~>"
384
360
  - !ruby/object:Gem::Version
385
- version: '0.11'
361
+ version: '0.15'
386
362
  - !ruby/object:Gem::Dependency
387
363
  requirement: !ruby/object:Gem::Requirement
388
364
  requirements:
@@ -425,6 +401,7 @@ executables:
425
401
  - rubysloc
426
402
  - cstol_converter
427
403
  - xtce_converter
404
+ - dart_import
428
405
  extensions: []
429
406
  extra_rdoc_files: []
430
407
  files:
@@ -563,6 +540,7 @@ files:
563
540
  - autohotkey/tools/CmdTlmServerAHK
564
541
  - autohotkey/tools/CmdTlmServerAHK2
565
542
  - autohotkey/tools/ConfigEditor
543
+ - autohotkey/tools/ConfigEditorAHK
566
544
  - autohotkey/tools/DataViewer
567
545
  - autohotkey/tools/DataViewerAHK
568
546
  - autohotkey/tools/HandbookCreatorAHK
@@ -611,6 +589,7 @@ files:
611
589
  - autohotkey/tools/cmd_sequence2.ahk
612
590
  - autohotkey/tools/cmd_tlm_server.ahk
613
591
  - autohotkey/tools/cmd_tlm_server2.ahk
592
+ - autohotkey/tools/config_editor.ahk
614
593
  - autohotkey/tools/data_viewer.ahk
615
594
  - autohotkey/tools/handbook_creator.ahk
616
595
  - autohotkey/tools/launcher.ahk
@@ -638,6 +617,7 @@ files:
638
617
  - autohotkey/tools/tool_launch.rb
639
618
  - bin/cosmos
640
619
  - bin/cstol_converter
620
+ - bin/dart_import
641
621
  - bin/exchndl20-x64.dll
642
622
  - bin/exchndl20.dll
643
623
  - bin/exchndl21-x64.dll
@@ -714,6 +694,7 @@ files:
714
694
  - data/critical.wav
715
695
  - data/cts.png
716
696
  - data/cut.png
697
+ - data/dart.png
717
698
  - data/data_viewer.png
718
699
  - data/delete.png
719
700
  - data/delete_database.png
@@ -774,6 +755,7 @@ files:
774
755
  - demo/Launcher
775
756
  - demo/Launcher.bat
776
757
  - demo/Rakefile
758
+ - demo/config/dart/Gemfile
777
759
  - demo/config/data/attitude.bin
778
760
  - demo/config/data/crc.txt
779
761
  - demo/config/data/diamond.STL
@@ -899,6 +881,8 @@ files:
899
881
  - demo/lib/example_target.rb
900
882
  - demo/lib/scpi_target.rb
901
883
  - demo/lib/user_version.rb
884
+ - demo/outputs/dart/data/README.txt
885
+ - demo/outputs/dart/logs/README.txt
902
886
  - demo/outputs/handbooks/assets/css/bootstrap-theme.css
903
887
  - demo/outputs/handbooks/assets/css/bootstrap-theme.min.css
904
888
  - demo/outputs/handbooks/assets/css/bootstrap.css
@@ -936,6 +920,8 @@ files:
936
920
  - demo/tools/CmdTlmServer.bat
937
921
  - demo/tools/ConfigEditor
938
922
  - demo/tools/ConfigEditor.bat
923
+ - demo/tools/Dart
924
+ - demo/tools/Dart.bat
939
925
  - demo/tools/DataViewer
940
926
  - demo/tools/DataViewer.bat
941
927
  - demo/tools/ExampleTarget
@@ -1090,6 +1076,7 @@ files:
1090
1076
  - install/Launcher
1091
1077
  - install/Launcher.bat
1092
1078
  - install/Rakefile
1079
+ - install/config/dart/Gemfile
1093
1080
  - install/config/data/README.txt
1094
1081
  - install/config/data/crc.txt
1095
1082
  - install/config/system/system.txt
@@ -1122,6 +1109,8 @@ files:
1122
1109
  - install/config/tools/tlm_grapher/README.txt
1123
1110
  - install/config/tools/tlm_viewer/tlm_viewer.txt
1124
1111
  - install/lib/user_version.rb
1112
+ - install/outputs/dart/data/README.txt
1113
+ - install/outputs/dart/logs/README.txt
1125
1114
  - install/outputs/handbooks/assets/css/bootstrap-theme.css
1126
1115
  - install/outputs/handbooks/assets/css/bootstrap-theme.min.css
1127
1116
  - install/outputs/handbooks/assets/css/bootstrap.css
@@ -1153,6 +1142,8 @@ files:
1153
1142
  - install/tools/CmdTlmServer.bat
1154
1143
  - install/tools/ConfigEditor
1155
1144
  - install/tools/ConfigEditor.bat
1145
+ - install/tools/Dart
1146
+ - install/tools/Dart.bat
1156
1147
  - install/tools/DataViewer
1157
1148
  - install/tools/DataViewer.bat
1158
1149
  - install/tools/HandbookCreator
@@ -1306,6 +1297,116 @@ files:
1306
1297
  - lib/cosmos/core_ext/string.rb
1307
1298
  - lib/cosmos/core_ext/stringio.rb
1308
1299
  - lib/cosmos/core_ext/time.rb
1300
+ - lib/cosmos/dart/.rspec
1301
+ - lib/cosmos/dart/Gemfile
1302
+ - lib/cosmos/dart/Rakefile
1303
+ - lib/cosmos/dart/app/assets/config/manifest.js
1304
+ - lib/cosmos/dart/app/assets/images/.keep
1305
+ - lib/cosmos/dart/app/assets/javascripts/application.js
1306
+ - lib/cosmos/dart/app/assets/javascripts/cable.js
1307
+ - lib/cosmos/dart/app/assets/stylesheets/application.css.scss
1308
+ - lib/cosmos/dart/app/channels/application_cable/channel.rb
1309
+ - lib/cosmos/dart/app/channels/application_cable/connection.rb
1310
+ - lib/cosmos/dart/app/controllers/application_controller.rb
1311
+ - lib/cosmos/dart/app/helpers/application_helper.rb
1312
+ - lib/cosmos/dart/app/jobs/application_job.rb
1313
+ - lib/cosmos/dart/app/mailers/application_mailer.rb
1314
+ - lib/cosmos/dart/app/models/application_record.rb
1315
+ - lib/cosmos/dart/app/models/item.rb
1316
+ - lib/cosmos/dart/app/models/item_to_decom_table_mapping.rb
1317
+ - lib/cosmos/dart/app/models/packet.rb
1318
+ - lib/cosmos/dart/app/models/packet_config.rb
1319
+ - lib/cosmos/dart/app/models/packet_log.rb
1320
+ - lib/cosmos/dart/app/models/packet_log_entry.rb
1321
+ - lib/cosmos/dart/app/models/system_config.rb
1322
+ - lib/cosmos/dart/app/models/target.rb
1323
+ - lib/cosmos/dart/app/views/layouts/application.html.erb
1324
+ - lib/cosmos/dart/app/views/layouts/mailer.html.erb
1325
+ - lib/cosmos/dart/app/views/layouts/mailer.text.erb
1326
+ - lib/cosmos/dart/bin/bundle
1327
+ - lib/cosmos/dart/bin/rails
1328
+ - lib/cosmos/dart/bin/rake
1329
+ - lib/cosmos/dart/bin/setup
1330
+ - lib/cosmos/dart/bin/update
1331
+ - lib/cosmos/dart/config.ru
1332
+ - lib/cosmos/dart/config/application.rb
1333
+ - lib/cosmos/dart/config/boot.rb
1334
+ - lib/cosmos/dart/config/cable.yml
1335
+ - lib/cosmos/dart/config/database.yml
1336
+ - lib/cosmos/dart/config/environment.rb
1337
+ - lib/cosmos/dart/config/environments/development.rb
1338
+ - lib/cosmos/dart/config/environments/production.rb
1339
+ - lib/cosmos/dart/config/environments/test.rb
1340
+ - lib/cosmos/dart/config/initializers/application_controller_renderer.rb
1341
+ - lib/cosmos/dart/config/initializers/assets.rb
1342
+ - lib/cosmos/dart/config/initializers/backtrace_silencers.rb
1343
+ - lib/cosmos/dart/config/initializers/cookies_serializer.rb
1344
+ - lib/cosmos/dart/config/initializers/filter_parameter_logging.rb
1345
+ - lib/cosmos/dart/config/initializers/inflections.rb
1346
+ - lib/cosmos/dart/config/initializers/mime_types.rb
1347
+ - lib/cosmos/dart/config/initializers/new_framework_defaults.rb
1348
+ - lib/cosmos/dart/config/initializers/session_store.rb
1349
+ - lib/cosmos/dart/config/initializers/wrap_parameters.rb
1350
+ - lib/cosmos/dart/config/locales/en.yml
1351
+ - lib/cosmos/dart/config/puma.rb
1352
+ - lib/cosmos/dart/config/routes.rb
1353
+ - lib/cosmos/dart/config/secrets.yml
1354
+ - lib/cosmos/dart/db/migrate/20170406172907_create_targets.rb
1355
+ - lib/cosmos/dart/db/migrate/20170406172927_create_packets.rb
1356
+ - lib/cosmos/dart/db/migrate/20170406172937_create_packet_logs.rb
1357
+ - lib/cosmos/dart/db/migrate/20170406172943_create_packet_log_entries.rb
1358
+ - lib/cosmos/dart/db/migrate/20170406183500_change_packet_log_entries_primary_key.rb
1359
+ - lib/cosmos/dart/db/migrate/20170407153618_add_unique_requirements.rb
1360
+ - lib/cosmos/dart/db/migrate/20170511155447_add_meta_id_to_packet_log_entries.rb
1361
+ - lib/cosmos/dart/db/migrate/20170523185056_rename_received_time_and_add_is_tlm_to_packet_log_entries.rb
1362
+ - lib/cosmos/dart/db/migrate/20170525201157_create_items.rb
1363
+ - lib/cosmos/dart/db/migrate/20170525201315_create_system_configs.rb
1364
+ - lib/cosmos/dart/db/migrate/20170525201624_create_packet_configs.rb
1365
+ - lib/cosmos/dart/db/migrate/20170525201745_create_item_to_decom_table_mappings.rb
1366
+ - lib/cosmos/dart/db/migrate/20170525201939_create_decom_tables.rb
1367
+ - lib/cosmos/dart/db/migrate/20170525202051_add_decom_state_to_packet_log_entry.rb
1368
+ - lib/cosmos/dart/db/migrate/20170913160409_update_items.rb
1369
+ - lib/cosmos/dart/db/migrate/20170913160558_update_item_to_decom_table_mapping.rb
1370
+ - lib/cosmos/dart/db/migrate/20170913160916_udpate_decom_table.rb
1371
+ - lib/cosmos/dart/db/migrate/20170913212026_add_ready_to_packet_configs.rb
1372
+ - lib/cosmos/dart/db/migrate/20170913223556_modify_tables.rb
1373
+ - lib/cosmos/dart/db/migrate/20170914215744_modify_mapping_table.rb
1374
+ - lib/cosmos/dart/db/migrate/20170919201433_add_system_config_id_to_packet_config.rb
1375
+ - lib/cosmos/dart/db/migrate/20170919210307_add_max_table_index_to_packet_configs.rb
1376
+ - lib/cosmos/dart/db/migrate/20171215225546_add_ready_to_packet_log_entries.rb
1377
+ - lib/cosmos/dart/db/migrate/20180116214338_add_index_for_ple_ready_to_packet_log_entries.rb
1378
+ - lib/cosmos/dart/db/schema.rb
1379
+ - lib/cosmos/dart/db/seeds.rb
1380
+ - lib/cosmos/dart/examples/dart_decom_client.rb
1381
+ - lib/cosmos/dart/examples/dart_stream_client.rb
1382
+ - lib/cosmos/dart/lib/dart_common.rb
1383
+ - lib/cosmos/dart/lib/dart_database_cleaner.rb
1384
+ - lib/cosmos/dart/lib/dart_decom_query.rb
1385
+ - lib/cosmos/dart/lib/dart_decommutator.rb
1386
+ - lib/cosmos/dart/lib/dart_importer.rb
1387
+ - lib/cosmos/dart/lib/dart_logging.rb
1388
+ - lib/cosmos/dart/lib/dart_packet_log_writer.rb
1389
+ - lib/cosmos/dart/lib/dart_reducer_manager.rb
1390
+ - lib/cosmos/dart/lib/dart_reducer_worker_thread.rb
1391
+ - lib/cosmos/dart/lib/dart_tcpip_server_interface.rb
1392
+ - lib/cosmos/dart/processes/dart.rb
1393
+ - lib/cosmos/dart/processes/dart_decom_server.rb
1394
+ - lib/cosmos/dart/processes/dart_import.rb
1395
+ - lib/cosmos/dart/processes/dart_ingester.rb
1396
+ - lib/cosmos/dart/processes/dart_reducer.rb
1397
+ - lib/cosmos/dart/processes/dart_stream_server.rb
1398
+ - lib/cosmos/dart/processes/dart_worker.rb
1399
+ - lib/cosmos/dart/spec/dart/dart_common_spec.rb
1400
+ - lib/cosmos/dart/spec/dart/dart_database_cleaner_spec.rb
1401
+ - lib/cosmos/dart/spec/dart/dart_decom_query_spec.rb
1402
+ - lib/cosmos/dart/spec/dart/dart_decommutator_spec.rb
1403
+ - lib/cosmos/dart/spec/dart/dart_importer_spec.rb
1404
+ - lib/cosmos/dart/spec/dart/dart_logging_spec.rb
1405
+ - lib/cosmos/dart/spec/dart/dart_packet_log_writer_spec.rb
1406
+ - lib/cosmos/dart/spec/dart/dart_reducer_manager_spec.rb
1407
+ - lib/cosmos/dart/spec/dart/dart_tcpip_server_interface_spec.rb
1408
+ - lib/cosmos/dart/spec/rails_helper.rb
1409
+ - lib/cosmos/dart/spec/spec_helper.rb
1309
1410
  - lib/cosmos/ext/.keep
1310
1411
  - lib/cosmos/gui/choosers/combobox_chooser.rb
1311
1412
  - lib/cosmos/gui/choosers/file_chooser.rb
@@ -1318,6 +1419,7 @@ files:
1318
1419
  - lib/cosmos/gui/dialogs/calendar_dialog.rb
1319
1420
  - lib/cosmos/gui/dialogs/cmd_details_dialog.rb
1320
1421
  - lib/cosmos/gui/dialogs/cmd_tlm_raw_dialog.rb
1422
+ - lib/cosmos/gui/dialogs/dart_dialog.rb
1321
1423
  - lib/cosmos/gui/dialogs/details_dialog.rb
1322
1424
  - lib/cosmos/gui/dialogs/exception_dialog.rb
1323
1425
  - lib/cosmos/gui/dialogs/exception_list_dialog.rb
@@ -1364,6 +1466,8 @@ files:
1364
1466
  - lib/cosmos/gui/utilities/analyze_log.rb
1365
1467
  - lib/cosmos/gui/utilities/screenshot.rb
1366
1468
  - lib/cosmos/gui/utilities/script_module_gui.rb
1469
+ - lib/cosmos/gui/widgets/dart_frame.rb
1470
+ - lib/cosmos/gui/widgets/dart_meta_frame.rb
1367
1471
  - lib/cosmos/gui/widgets/full_text_search_line_edit.rb
1368
1472
  - lib/cosmos/gui/widgets/packet_log_frame.rb
1369
1473
  - lib/cosmos/gui/widgets/realtime_button_bar.rb
@@ -1539,6 +1643,7 @@ files:
1539
1643
  - lib/cosmos/tools/tlm_grapher/plots/xy_plot.rb
1540
1644
  - lib/cosmos/tools/tlm_grapher/tabbed_plots/overview_tabbed_plots.rb
1541
1645
  - lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_config.rb
1646
+ - lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_dart_thread.rb
1542
1647
  - lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_data_object_editor.rb
1543
1648
  - lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_logfile_thread.rb
1544
1649
  - lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_plot_editor.rb
@@ -1552,6 +1657,7 @@ files:
1552
1657
  - lib/cosmos/tools/tlm_viewer/widgets.rb
1553
1658
  - lib/cosmos/tools/tlm_viewer/widgets/aging_widget.rb
1554
1659
  - lib/cosmos/tools/tlm_viewer/widgets/array_widget.rb
1660
+ - lib/cosmos/tools/tlm_viewer/widgets/backgroundbutton_widget.rb
1555
1661
  - lib/cosmos/tools/tlm_viewer/widgets/block_widget.rb
1556
1662
  - lib/cosmos/tools/tlm_viewer/widgets/button_widget.rb
1557
1663
  - lib/cosmos/tools/tlm_viewer/widgets/canvas_clickable.rb
@@ -1680,6 +1786,7 @@ files:
1680
1786
  - spec/install/config/targets/SYSTEM/cmd_tlm_server.txt
1681
1787
  - spec/install/config/targets/SYSTEM/screens/status.txt
1682
1788
  - spec/install/config/targets/SYSTEM/target.txt
1789
+ - spec/install/config/tools/cmd_tlm_server/cmd_tlm_server.txt
1683
1790
  - spec/install/lib/README.txt
1684
1791
  - spec/interfaces/cmd_tlm_server_interface_spec.rb
1685
1792
  - spec/interfaces/interface_spec.rb