state_inspector 1.0.1 → 1.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d15f153b234a84d1a55dfcdabf0da072a54525b3f4e002264903886dffcbe0f
|
4
|
+
data.tar.gz: 5dfc62c1219a7eed867d36b08bf00e03c954ca4f505dd26dc1b64d4bee6998d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1270b6929c3ff8ba30e83ddb07aebf41f1ba3d60f0b33feac2b4275fe3f3b8b48c2f25bb9e6ba9ebb6ec6ef22acf31599e560d0bb2a2a2c93e02ccd719b74d25
|
7
|
+
data.tar.gz: 46e4b286c61f4232dc01acd8ae7bc1876d2c77923af2099070f85d38bc22f071cc00c754acdb17c947fcd3ff089f01f2589afd300da907671d148bc7877f5f00
|
@@ -8,12 +8,11 @@ module StateInspector
|
|
8
8
|
class << self
|
9
9
|
include Observer
|
10
10
|
def update *values
|
11
|
-
folder = File.join ['log', 'state_inspector']
|
12
11
|
@file ||= File.join(
|
13
|
-
|
12
|
+
'log', 'state_inspector',
|
14
13
|
['session', Time.now.to_i, 'log'].join('.')
|
15
14
|
)
|
16
|
-
FileUtils.mkdir_p
|
15
|
+
FileUtils.mkdir_p File.dirname(@file)
|
17
16
|
File.open(@file, File::WRONLY | File::APPEND | File::CREAT) do |file|
|
18
17
|
logger = Logger.new(file)
|
19
18
|
logger << values.
|