cosmos 3.6.0 → 3.6.1

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
  SHA1:
3
- metadata.gz: 46c831622d8bb205d35bbb73d5b72d93c9923028
4
- data.tar.gz: 5dd0f0bbf288ba2595cb4e541b019bc1069f3ab3
3
+ metadata.gz: 6d1c8a2b2a4a135fab40129e5417a797319c8533
4
+ data.tar.gz: b92343e0fbffcc7db750c0420c08b59337a5fc99
5
5
  SHA512:
6
- metadata.gz: 0dcd9a36210998709f829d5488f4f90a7ed69029df35f20fcc080027e212b23e26911c80a6957115829ca0b97691d0df8ffd59d86825cb0af0829462e1bbb77f
7
- data.tar.gz: 2912f264846633602ffcd2fcaeed692ed39b1ad8fc38a69678eb540b185fdc40c7b8cdf44dde502eb7a3d6701c450dd1cdf6e3e409ad8afd984d15ac6d66cfaa
6
+ metadata.gz: 220d5599c798111b346d2461ca9073e7a4b09ce1a9c623d5a8343a1d2c2e2df21db90fc20fc03e7f6ba7a2f13287a63aa0fc24908a42bda459d3af77777a25a2
7
+ data.tar.gz: c0404b2ca2619ba1b984ee254187d15a145dac0e4278c1bd7dc43f31bea1d0ea28eb45dd4c696d66b50c13e2bbb3a046b1da2756d0379afcf26d812a95dbb117
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: ascii-8bit
2
2
 
3
- source 'http://rubygems.org'
3
+ source 'https://rubygems.org'
4
4
 
5
5
  gem 'ruby-termios', '~> 0.9' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw|cygwin/i
6
6
  # This is commented out because wdm does not currently support Ruby 2.2
@@ -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" 0x0D095C3F
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" 0x57B2D7DE
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
@@ -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
- @cmd_tlm_files << filename
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
@@ -1,12 +1,12 @@
1
1
  # encoding: ascii-8bit
2
2
 
3
- COSMOS_VERSION = '3.6.0'
3
+ COSMOS_VERSION = '3.6.1'
4
4
  module Cosmos
5
5
  module Version
6
6
  MAJOR = '3'
7
7
  MINOR = '6'
8
- PATCH = '0'
9
- BUILD = 'c536539999e6ee8e176d875a88e4ae639bb1e196'
8
+ PATCH = '1'
9
+ BUILD = 'e2512eb4bbd5b9100b13af0cfae7d042489eac99'
10
10
  end
11
- VERSION = '3.6.0'
11
+ VERSION = '3.6.1'
12
12
  end
@@ -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.0
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-07 00:00:00.000000000 Z
12
+ date: 2015-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler