libis-workflow-mongoid 2.0.15 → 2.0.16

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: b3ff5f51a5e475651b8d8ad4c994ba59a6cd2e92
4
- data.tar.gz: 5ec123c0adb36feeef0772b0a577565b81093c3a
3
+ metadata.gz: fc886c4a1a8abb4255e9b9028be2e1095e93c36a
4
+ data.tar.gz: ba0d915839897f34e79ae25568046a37d9544be8
5
5
  SHA512:
6
- metadata.gz: 77b1a1f1d3c860ccf8682f369e528b404a5a6faef9309cafe92ad8ddd0f95e28780a3dfce6bdbca9c257426230d111e396c950fe0ac5750e2b1d7bc4eb931f71
7
- data.tar.gz: 4b8ed290d124e27db2676c62bda5a324e4a1ccd744275a05720ec3492ad40755f6afa0a5fb0e17e815662d42cd42e1cf3b0d4739b6f3111f5de9a21f8151a1ff
6
+ metadata.gz: f3bf1c91c046cac7dd6bb1682cdcc4fdf5bbe7246a3189d4bf5a392cfe6fa9277d460a52efaa48ee38c0ed9eac864a6b98962a2ad6da79d8d0ee99b866404621
7
+ data.tar.gz: f8fdb0b0592b8541f5bd562a6881eb800301202cfb89f54257663c2f8d57ea4e07d645eb8ef8acbaa4ac290100c782b815c8d4d5007f17b5fa75c7c9413e26f6
@@ -32,6 +32,7 @@ module Libis
32
32
  def run(action = :run)
33
33
  self.tasks = []
34
34
  super action
35
+ close_logger
35
36
  end
36
37
 
37
38
  def logger
@@ -55,6 +56,13 @@ module Libis
55
56
  logger
56
57
  end
57
58
 
59
+ def close_logger
60
+ return unless self.log_to_file
61
+ ::Logging::Appenders[self.name].close
62
+ ::Logging::Appenders.remove(self.name)
63
+ ::Logging::Repository.instance.delete(self.name)
64
+ end
65
+
58
66
  end
59
67
 
60
68
  end
@@ -1,7 +1,7 @@
1
1
  module Libis
2
2
  module Workflow
3
3
  module Mongoid
4
- VERSION = '2.0.15' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
4
+ VERSION = '2.0.16' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-workflow-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.15
4
+ version: 2.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libis-workflow