background_worker 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/background_worker.rb +6 -0
- data/lib/background_worker/base.rb +2 -0
- data/lib/background_worker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e545bf8b33b749d412dcaabec85001174bc787a
|
4
|
+
data.tar.gz: 85b78869946fa35bc82a64d321ee2d49c3497ef6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 230234c58f0cc42411c99e097832e509cd9085ac70f3170fc66e3f99f046793adfee09bfad01a1fb077ef0c0edac57d516cdbb7f213d6f80764bdd974eb706b3
|
7
|
+
data.tar.gz: e619104b7a7e7824e067be824aa90db4aeb0fd726520dd3898bb179c9c670fb83ddfce726cce6d345191ad97adb964c200ff18b697457cb45292ae894d8f0d59
|
data/CHANGELOG.md
CHANGED
data/lib/background_worker.rb
CHANGED
@@ -30,6 +30,12 @@ module BackgroundWorker
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
def self.release_connections!
|
34
|
+
if defined?(ActiveRecord) && ActiveRecord::VERSION::MAJOR >= 4
|
35
|
+
ActiveRecord::Base.clear_all_connections!
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
33
39
|
def self.after_exception(e)
|
34
40
|
config.after_exception(e)
|
35
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: background_worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-07-
|
13
|
+
date: 2017-07-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|