cosmosc2-demo 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e47fe0a3d90facf6376309b78db533448f1a0d2d6311b214c56699bf9f850a65
4
- data.tar.gz: cfac84e3cb50511138f9073d8e589f43a978019dcd5d90c721a3f55389e3860d
3
+ metadata.gz: 5d6f101df9ca41febf8914d7e211149885235a03ef49c839f59e0d773384692e
4
+ data.tar.gz: ed8598c7887fae3134e9440573ce839f63c6afc41c7102c862e32c22ee37e8ea
5
5
  SHA512:
6
- metadata.gz: 9ba4d8df7704d219be0f9b0c7a121ee118089caa7fdf1687fcd61fdaaa8c4c3b9ae99dc44699c579f85804273640bb1ba67df4129384be478c836d81cf71f5b9
7
- data.tar.gz: 5a275e4a89934618bdcd075c8851fca3b8b17903754469a8372c39a64775e95a3b246c58a63012d58c57c4c5ce0a628b7ebbfd5e9cd23d833faa3b7a57f13e4c
6
+ metadata.gz: f83259af0bfd971acf3e9f697068108e3c4afd34b3c5351e5e6889eadb66f37dfe528dc228a3acb61ce5e47099fe549207b0dbac096d6e0a4bfd148047994a55
7
+ data.tar.gz: 61458d5ffe593ccdc6f5bb1770d2022e6c56ed7ad732660a563bb9d48a1ba0613ad34a15f1e125c47edf8131bbf464c035ac0ca4b34570016581a95b76806dc6
data/Rakefile CHANGED
@@ -20,7 +20,12 @@
20
20
  PLUGIN_NAME = Dir['*.gemspec'][0].split('.')[0..-2].join('.')
21
21
 
22
22
  task :require_version do
23
- unless ENV['VERSION']
23
+ if ENV['VERSION']
24
+ if ENV['VERSION'] =~ /-/
25
+ # Add Timestamp to prerelease versions
26
+ ENV['VERSION'] = ENV['VERSION'] + "." + Time.now.utc.strftime("%Y%m%d%H%M%S")
27
+ end
28
+ else
24
29
  puts "VERSION is required: rake <task> VERSION=X.X.X"
25
30
  exit 1
26
31
  end
@@ -31,5 +36,7 @@ task :build => [:require_version] do
31
36
  if platform == 'mswin32' or platform == 'mingw32'
32
37
  puts "Warning: Building gem on Windows will lose file permissions"
33
38
  end
39
+ # Build the widgets in the src directory
40
+ system("yarn run build")
34
41
  system("gem build #{PLUGIN_NAME}")
35
42
  end
@@ -33,4 +33,12 @@ VERTICAL
33
33
  BUTTON 'Send' "screen.get_named_widget('GROUP').selected() === 0 ? api.cmd('<%= target_name %> ABORT') : (screen.get_named_widget('CHECK').checked() ? api.cmd_no_hazardous_check('<%= target_name %> CLEAR') : api.cmd('<%= target_name %> CLEAR'))"
34
34
  END
35
35
  SETTING BACKCOLOR 163 185 163
36
+
37
+ VERTICALBOX
38
+ SECTIONHEADER "Run Script:"
39
+ NAMED_WIDGET SCRIPTNAME COMBOBOX collect.rb checks.rb
40
+ NAMED_WIDGET BG CHECKBUTTON 'Background'
41
+ BUTTON 'Run Script' "var script=screen.get_named_widget('SCRIPTNAME').text(); run_script('INST/procedures/'+script, !screen.get_named_widget('BG').checked())"
42
+ END
43
+ SETTING BACKCOLOR 163 185 163
36
44
  END
@@ -5,4 +5,3 @@
5
5
  TABLEFILE "MCConfigurationTable_def.txt"
6
6
  TABLEFILE "TLMMonitoringTable_def.txt"
7
7
  TABLEFILE "PPSSelectionTable_def.txt"
8
-
@@ -0,0 +1,16 @@
1
+ # TBL_FILENAME is set to the name of the table file to overwrite
2
+ puts "file:#{ENV['TBL_FILENAME']}"
3
+ # Download the file
4
+ # Implement custom commanding logic to download the table
5
+ # You probably want to do something like:
6
+ buffer = ''
7
+ # i = 1
8
+ # num_segments = 5 # calculate based on TBL_FILENAME
9
+ # table_id = 1 # calculate based on TBL_FILENAME
10
+ # while i < num_segments
11
+ # # Request a part of the table buffer
12
+ # cmd("TGT DUMP with TABLE_ID #{table_id}, SEGMENT #{i}")
13
+ # buffer += tlm("TGT DUMP_PKT DATA")
14
+ # i += 1
15
+ # end
16
+ put_target_file(ENV['TBL_FILENAME'], buffer)
@@ -0,0 +1,19 @@
1
+ # TBL_FILENAME is set to the name of the table file
2
+ puts "file:#{ENV['TBL_FILENAME']}"
3
+ # Open the file
4
+ file = get_target_file(ENV['TBL_FILENAME'])
5
+ buffer = file.read
6
+ # puts buffer.formatted
7
+ # Implement custom commanding logic to upload the table
8
+ # Note that buffer is a Ruby string of bytes
9
+ # You probably want to do something like:
10
+ # buf_size = 512 # Size of a buffer in the upload command
11
+ # i = 0
12
+ # while i < buffer.length
13
+ # # Send a part of the buffer
14
+ # # NOTE: triple dots means start index, up to but not including, end index
15
+ # # while double dots means start index, up to AND including, end index
16
+ # cmd("TGT", "UPLOAD", "DATA" => buffer[i...(i + buf_size)])
17
+ # i += buf_size
18
+ # end
19
+ file.delete