cosmos 3.3.0 → 3.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec57be752a23c94586d0b64fcdd5342effbbed1b
4
- data.tar.gz: 2b8c3c202387161e26e17d6bcbfccd0cb8806a08
3
+ metadata.gz: fb2fffb8f204bc932ef93438457c310503837e2f
4
+ data.tar.gz: 6ecd99712d7682a2d70de2539c03826502868cc9
5
5
  SHA512:
6
- metadata.gz: 76dd83d9776276a8f176bb084ec52bbd16f318ca54596cf536925a706676f3207faa2686784bce03278905a4039cdf2d0626f1d06def8b19fb2e09e1e8d7240d
7
- data.tar.gz: 9ac8d4e05bf1a378da705d0bed15e52032e8bcdd41603a2700d6c364e896f17dc6210483969ac4b9b2ebcf8d1241a556990d16401fe97f32d18127289185886a
6
+ metadata.gz: e3b958ffc7000f284188567ae8cf57934288373617682208b913767b2d230cdeb05b98f55745347d9d6ad12ab5d4874e1a8c6f29f379baccbaf4a3f2f21c4253
7
+ data.tar.gz: c3b6704c2d87fdc6a9413eab98be998fe278a364f2097776521610a876b605c3eb6b0876dd349a5f523ea5255ad7df6259769fe111d6be439b18ebfd6b3389a9
@@ -1,7 +1,7 @@
1
1
  "lib/cosmos/ccsds/ccsds_parser.rb" 0x89A5FB3A
2
2
  "lib/cosmos/ccsds/ccsds_packet.rb" 0xA30EE27E
3
3
  "lib/cosmos/system/target.rb" 0x52287176
4
- "lib/cosmos/system/system.rb" 0x46C9FAA0
4
+ "lib/cosmos/system/system.rb" 0x6C509559
5
5
  "lib/cosmos/win32/win32_main.rb" 0xC71EBE12
6
6
  "lib/cosmos/win32/win32.rb" 0xEF748B06
7
7
  "lib/cosmos/win32/excel.rb" 0xB4D4195E
@@ -234,7 +234,7 @@
234
234
  "lib/cosmos/tools/tlm_viewer/tlm_viewer.rb" 0x1D2090F6
235
235
  "lib/cosmos/system.rb" 0x735DFB42
236
236
  "lib/cosmos/conversions.rb" 0x43679D05
237
- "lib/cosmos/version.rb" 0x9A690732
237
+ "lib/cosmos/version.rb" 0xFED34D5F
238
238
  "lib/cosmos/core_ext.rb" 0x1951B346
239
239
  "lib/cosmos/interfaces.rb" 0x7E3EA326
240
240
  "lib/cosmos/processors.rb" 0x5241327D
@@ -62,6 +62,7 @@ module Cosmos
62
62
  KNOWN_PATHS = ['LOGS', 'TMP', 'SAVED_CONFIG', 'TABLES', 'HANDBOOKS', 'PROCEDURES']
63
63
 
64
64
  @@instance = nil
65
+ @@instance_mutex = Mutex.new
65
66
 
66
67
  # Create a new System object. Note, this should not be called directly but
67
68
  # you should instead use System.instance and treat this class as a
@@ -71,7 +72,6 @@ module Cosmos
71
72
  # read. Be default this is <Cosmos::USERPATH>/config/system/system.txt
72
73
  def initialize(filename = nil)
73
74
  raise "Cosmos::System created twice" unless @@instance.nil?
74
- @@instance = self
75
75
  @targets = {}
76
76
  @targets['UNKNOWN'] = Target.new('UNKNOWN')
77
77
  @config = nil
@@ -115,6 +115,7 @@ module Cosmos
115
115
 
116
116
  @initial_filename = filename
117
117
  @initial_config = nil
118
+ @@instance = self
118
119
  end
119
120
 
120
121
  # @return [String] Configuration name
@@ -194,8 +195,11 @@ module Cosmos
194
195
 
195
196
  # @return [System] The System singleton
196
197
  def self.instance(filename = nil)
197
- @@instance ||= self.new(filename)
198
- return @@instance
198
+ return @@instance if @@instance
199
+ @@instance_mutex.synchronize do
200
+ @@instance ||= self.new(filename)
201
+ return @@instance
202
+ end
199
203
  end
200
204
 
201
205
  # Process the system.txt configuration file
@@ -1,12 +1,12 @@
1
1
  # encoding: ascii-8bit
2
2
 
3
- COSMOS_VERSION = '3.3.0'
3
+ COSMOS_VERSION = '3.3.1'
4
4
  module Cosmos
5
5
  module Version
6
6
  MAJOR = '3'
7
7
  MINOR = '3'
8
- PATCH = '0'
9
- BUILD = 'f3db0cfa39b8f3cf8121ab8ead4e5b82964da8d5'
8
+ PATCH = '1'
9
+ BUILD = 'ec5e7d055502c4160427af946416839a23cda7ea'
10
10
  end
11
- VERSION = '3.3.0'
11
+ VERSION = '3.3.1'
12
12
  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.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton