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: b1d50ffea44727e814b66e026dd4769eb1ed48582d3a1cd73660ecab584aa8d4
4
- data.tar.gz: 43b0e0730c5f056b8c1e25cf374d990b4b48e79bea582c31343948bab9545a59
3
+ metadata.gz: 3d15f153b234a84d1a55dfcdabf0da072a54525b3f4e002264903886dffcbe0f
4
+ data.tar.gz: 5dfc62c1219a7eed867d36b08bf00e03c954ca4f505dd26dc1b64d4bee6998d9
5
5
  SHA512:
6
- metadata.gz: b995590f3feec9acc2bbc0b9ee1859882848d59c06fd0405eef380c39fe2b2caddf4b9a038137aa5c43d00ede5ece640e1d2354e169125ec3fb6e4428aafe4b5
7
- data.tar.gz: 8b51834c46976037dced1dee6840e3b4289cc3e1d5282346312bdf33820677ded09922bebf3975d87b0b7feae34486d93c3ee49d348973bc6f38bda78eae092c
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
- folder,
12
+ 'log', 'state_inspector',
14
13
  ['session', Time.now.to_i, 'log'].join('.')
15
14
  )
16
- FileUtils.mkdir_p folder
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.
@@ -1,3 +1,3 @@
1
1
  module StateInspector
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_inspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark