ougai 1.4.0 → 1.4.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: ebde39051085cb7a4b15a0d010903592a6e05bad
4
- data.tar.gz: 47c033c11627e440dfc666577178593fb59666d0
3
+ metadata.gz: 8386aa7b0737156ca211cfdb4cc7c4030751dc2a
4
+ data.tar.gz: 9fde65ba8e677511d6ad7061e65dc5816c52bced
5
5
  SHA512:
6
- metadata.gz: 50775ba920ffba4c4f01f2aef35c274c5c916ab9fa46d6265a878a43bcd5e492af09e552aae082d9efeec7296ce651a285d48f6acd8027c8412a50f8aec0d93c
7
- data.tar.gz: 39a73244485976896f2987cee6a2c39311f50799669c3e7f9deda7b96267e18e47bc4d53e9f1b75fba047b05c45f217e1f11a2c07c97cafb7e617c8f0459f004
6
+ metadata.gz: b75ed0bd57138091a7990179072355120bd81fd4f22314154c0c86878ad9372937550c1a2e3dede39858bc8f0c564a8ad13589dcb3284aa67f205625ad7df82d
7
+ data.tar.gz: dcd961d585d741efd7134bb94ccfca3e981429073b03eac0e6ccfad8e9bdd5c906c2e1f27a68f9467abcdf8407a4d91f20cabaccb0305e0963ef227c0e41ebc3
@@ -27,6 +27,11 @@ module Ougai
27
27
  logger.level = level
28
28
  super(level)
29
29
  end
30
+
31
+ define_method(:close) do
32
+ logger.close
33
+ super()
34
+ end
30
35
  end
31
36
  end
32
37
 
@@ -1,3 +1,3 @@
1
1
  module Ougai
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -613,5 +613,11 @@ describe Ougai::Logger do
613
613
  expect(another_item).to be_log_message(log_msg, 40)
614
614
  end
615
615
  end
616
+
617
+ it 'close both loogers' do
618
+ logger.close
619
+ expect(io.closed?).to be_truthy
620
+ expect(another_io.closed?).to be_truthy
621
+ end
616
622
  end
617
623
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ougai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshimitsu Takahashi