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 +4 -4
- data/data/crc.txt +2 -2
- data/lib/cosmos/system/system.rb +7 -3
- data/lib/cosmos/version.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb2fffb8f204bc932ef93438457c310503837e2f
|
|
4
|
+
data.tar.gz: 6ecd99712d7682a2d70de2539c03826502868cc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3b958ffc7000f284188567ae8cf57934288373617682208b913767b2d230cdeb05b98f55745347d9d6ad12ab5d4874e1a8c6f29f379baccbaf4a3f2f21c4253
|
|
7
|
+
data.tar.gz: c3b6704c2d87fdc6a9413eab98be998fe278a364f2097776521610a876b605c3eb6b0876dd349a5f523ea5255ad7df6259769fe111d6be439b18ebfd6b3389a9
|
data/data/crc.txt
CHANGED
|
@@ -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"
|
|
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"
|
|
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
|
data/lib/cosmos/system/system.rb
CHANGED
|
@@ -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
|
|
198
|
-
|
|
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
|
data/lib/cosmos/version.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# encoding: ascii-8bit
|
|
2
2
|
|
|
3
|
-
COSMOS_VERSION = '3.3.
|
|
3
|
+
COSMOS_VERSION = '3.3.1'
|
|
4
4
|
module Cosmos
|
|
5
5
|
module Version
|
|
6
6
|
MAJOR = '3'
|
|
7
7
|
MINOR = '3'
|
|
8
|
-
PATCH = '
|
|
9
|
-
BUILD = '
|
|
8
|
+
PATCH = '1'
|
|
9
|
+
BUILD = 'ec5e7d055502c4160427af946416839a23cda7ea'
|
|
10
10
|
end
|
|
11
|
-
VERSION = '3.3.
|
|
11
|
+
VERSION = '3.3.1'
|
|
12
12
|
end
|