cosmos 3.6.0 → 3.6.1
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/Gemfile +1 -1
- data/data/crc.txt +2 -2
- data/lib/cosmos/system/target.rb +4 -2
- data/lib/cosmos/version.rb +4 -4
- data/spec/system/target_spec.rb +27 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d1c8a2b2a4a135fab40129e5417a797319c8533
|
4
|
+
data.tar.gz: b92343e0fbffcc7db750c0420c08b59337a5fc99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 220d5599c798111b346d2461ca9073e7a4b09ce1a9c623d5a8343a1d2c2e2df21db90fc20fc03e7f6ba7a2f13287a63aa0fc24908a42bda459d3af77777a25a2
|
7
|
+
data.tar.gz: c0404b2ca2619ba1b984ee254187d15a145dac0e4278c1bd7dc43f31bea1d0ea28eb45dd4c696d66b50c13e2bbb3a046b1da2756d0379afcf26d812a95dbb117
|
data/Gemfile
CHANGED
data/data/crc.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"lib/cosmos/ccsds/ccsds_parser.rb" 0x89A5FB3A
|
2
2
|
"lib/cosmos/ccsds/ccsds_packet.rb" 0xA30EE27E
|
3
|
-
"lib/cosmos/system/target.rb"
|
3
|
+
"lib/cosmos/system/target.rb" 0xF96070A6
|
4
4
|
"lib/cosmos/system/system.rb" 0x9437DAD9
|
5
5
|
"lib/cosmos/win32/win32_main.rb" 0x6D33DC6A
|
6
6
|
"lib/cosmos/win32/win32.rb" 0xEF748B06
|
@@ -234,7 +234,7 @@
|
|
234
234
|
"lib/cosmos/tools/tlm_viewer/tlm_viewer.rb" 0x895983E9
|
235
235
|
"lib/cosmos/system.rb" 0x735DFB42
|
236
236
|
"lib/cosmos/conversions.rb" 0x43679D05
|
237
|
-
"lib/cosmos/version.rb"
|
237
|
+
"lib/cosmos/version.rb" 0x1DE7C42D
|
238
238
|
"lib/cosmos/core_ext.rb" 0x1951B346
|
239
239
|
"lib/cosmos/interfaces.rb" 0x7E3EA326
|
240
240
|
"lib/cosmos/processors.rb" 0x5241327D
|
data/lib/cosmos/system/target.rb
CHANGED
@@ -196,14 +196,16 @@ module Cosmos
|
|
196
196
|
|
197
197
|
# Make sure all partials are included in the cmd_tlm list for the MD5 calculation
|
198
198
|
def add_cmd_tlm_partials(dir)
|
199
|
+
partial_files = []
|
199
200
|
if Dir.exist?(File.join(dir, 'cmd_tlm'))
|
200
201
|
# Grab all _*.txt files in the cmd_tlm folder and subfolders
|
201
202
|
Dir[File.join(dir, 'cmd_tlm', '**', '_*.txt')].each do |filename|
|
202
|
-
|
203
|
+
partial_files << filename
|
203
204
|
end
|
204
205
|
end
|
206
|
+
partial_files.sort!
|
207
|
+
@cmd_tlm_files.concat(partial_files)
|
205
208
|
@cmd_tlm_files.uniq!
|
206
|
-
@cmd_tlm_files.sort!
|
207
209
|
end
|
208
210
|
|
209
211
|
end # class Target
|
data/lib/cosmos/version.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# encoding: ascii-8bit
|
2
2
|
|
3
|
-
COSMOS_VERSION = '3.6.
|
3
|
+
COSMOS_VERSION = '3.6.1'
|
4
4
|
module Cosmos
|
5
5
|
module Version
|
6
6
|
MAJOR = '3'
|
7
7
|
MINOR = '6'
|
8
|
-
PATCH = '
|
9
|
-
BUILD = '
|
8
|
+
PATCH = '1'
|
9
|
+
BUILD = 'e2512eb4bbd5b9100b13af0cfae7d042489eac99'
|
10
10
|
end
|
11
|
-
VERSION = '3.6.
|
11
|
+
VERSION = '3.6.1'
|
12
12
|
end
|
data/spec/system/target_spec.rb
CHANGED
@@ -242,6 +242,33 @@ module Cosmos
|
|
242
242
|
|
243
243
|
FileUtils.rm_r(tgt_dir)
|
244
244
|
end
|
245
|
+
|
246
|
+
it "filename order must be preserved" do
|
247
|
+
tgt_path = File.join(Cosmos::USERPATH,'target_spec_temp')
|
248
|
+
tgt_name = "TEST"
|
249
|
+
tgt_dir = File.join(tgt_path,tgt_name)
|
250
|
+
FileUtils.mkdir_p(tgt_dir)
|
251
|
+
FileUtils.mkdir_p(tgt_dir + '/cmd_tlm')
|
252
|
+
File.open(tgt_dir + '/cmd_tlm/tgt_cmds.txt', 'w') {|file| file.puts "# comment"}
|
253
|
+
File.open(tgt_dir + '/cmd_tlm/tgt_cmds2.txt', 'w') {|file| file.puts "# comment"}
|
254
|
+
File.open(tgt_dir + '/cmd_tlm/tgt_cmds3.txt', 'w') {|file| file.puts "# comment"}
|
255
|
+
File.open(tgt_dir + '/cmd_tlm/tgt_tlm.txt', 'w') {|file| file.puts "# comment"}
|
256
|
+
File.open(tgt_dir + '/cmd_tlm/tgt_tlm2.txt', 'w') {|file| file.puts "# comment"}
|
257
|
+
File.open(tgt_dir + '/cmd_tlm/tgt_tlm3.txt', 'w') {|file| file.puts "# comment"}
|
258
|
+
File.open(File.join(tgt_dir,'target.txt'),'w') do |file|
|
259
|
+
file.puts("COMMANDS tgt_cmds3.txt")
|
260
|
+
file.puts("COMMANDS tgt_cmds2.txt")
|
261
|
+
file.puts("TELEMETRY tgt_tlm3.txt")
|
262
|
+
file.puts("TELEMETRY tgt_tlm.txt")
|
263
|
+
end
|
264
|
+
|
265
|
+
tgt = Target.new(tgt_name,nil,tgt_path)
|
266
|
+
expect(tgt.dir).to eql tgt_dir
|
267
|
+
expect(tgt.cmd_tlm_files.length).to eql 4
|
268
|
+
expect(tgt.cmd_tlm_files).to eql [tgt_dir + '/cmd_tlm/tgt_cmds3.txt', tgt_dir + '/cmd_tlm/tgt_cmds2.txt', tgt_dir + '/cmd_tlm/tgt_tlm3.txt', tgt_dir + '/cmd_tlm/tgt_tlm.txt']
|
269
|
+
|
270
|
+
FileUtils.rm_r(tgt_dir)
|
271
|
+
end
|
245
272
|
end
|
246
273
|
end
|
247
274
|
|
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.6.
|
4
|
+
version: 3.6.1
|
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-08-
|
12
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|