background_worker 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -0
- data/.travis.yml +2 -8
- data/CHANGELOG.md +3 -1
- data/gemfiles/{rails3.gemfile → rails5_2.gemfile} +1 -1
- data/lib/background_worker.rb +4 -6
- data/lib/background_worker/version.rb +1 -1
- data/spec/support/coverage_loader.rb +1 -1
- metadata +5 -10
- data/gemfiles/rails4_0.gemfile +0 -6
- data/gemfiles/rails4_1.gemfile +0 -6
- data/gemfiles/rails4_2.gemfile +0 -6
- data/gemfiles/rails5_0.gemfile +0 -6
- data/gemfiles/rails5_1.gemfile +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 92739c3cd6034d467914e25cacf4a240e38c046b6e388cec4f9af9679b97d9a6
|
4
|
+
data.tar.gz: 89f898f9989bcf29e5db58bf9bd23f189aa9e87702d145309c072a3a501ff2a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce83fb384503d92765da69f1daec6f11eeff92fc8c9792ed5e4a8e770aa67224e0fd63ad7783d02b692ba38c75b7623785e2df22457ab58b5ae5fa8d4ca3b78b
|
7
|
+
data.tar.gz: '091732c22801dc033d91957cba5a3d4a84776414ca4f09d5f09dd02205b8c54ef243d462f7e2092e3249554c4f58e6ff00996efaa1c6bf1a50794737fa5a00e0'
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.5
|
data/.travis.yml
CHANGED
@@ -1,15 +1,9 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.
|
4
|
-
- 2.3.0
|
3
|
+
- 2.6.5
|
5
4
|
script: bundle exec rake spec
|
6
5
|
gemfile:
|
7
|
-
- gemfiles/
|
8
|
-
- gemfiles/rails4_0.gemfile
|
9
|
-
- gemfiles/rails4_1.gemfile
|
10
|
-
- gemfiles/rails4_2.gemfile
|
11
|
-
- gemfiles/rails5_0.gemfile
|
12
|
-
- gemfiles/rails5_1.gemfile
|
6
|
+
- gemfiles/rails5_2.gemfile
|
13
7
|
notifications:
|
14
8
|
email:
|
15
9
|
- support@travellink.com.au
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,9 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
|
5
5
|
|
6
|
-
##
|
6
|
+
## 0.3.0
|
7
|
+
|
8
|
+
- [TT-6292] Support Rails 5.2 built-in redis cache, remove legacy supports
|
7
9
|
|
8
10
|
## 0.2.1
|
9
11
|
### Fixed
|
data/lib/background_worker.rb
CHANGED
@@ -24,16 +24,14 @@ module BackgroundWorker
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.verify_active_connections!
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
if defined?(Rails)
|
28
|
+
Rails.cache.reconnect if Rails.cache.respond_to?(:reconnect)
|
29
|
+
Rails.cache.redis.close if Rails.cache.respond_to?(:redis)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.release_connections!
|
34
|
-
|
35
|
-
ActiveRecord::Base.clear_all_connections!
|
36
|
-
end
|
34
|
+
ActiveRecord::Base.clear_all_connections!
|
37
35
|
end
|
38
36
|
|
39
37
|
def self.after_exception(e)
|
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.3.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:
|
13
|
+
date: 2019-11-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -163,6 +163,7 @@ extra_rdoc_files: []
|
|
163
163
|
files:
|
164
164
|
- ".gitignore"
|
165
165
|
- ".rubocop.yml"
|
166
|
+
- ".ruby-version"
|
166
167
|
- ".travis.yml"
|
167
168
|
- CHANGELOG.md
|
168
169
|
- Gemfile
|
@@ -170,12 +171,7 @@ files:
|
|
170
171
|
- README.md
|
171
172
|
- Rakefile
|
172
173
|
- background_worker.gemspec
|
173
|
-
- gemfiles/
|
174
|
-
- gemfiles/rails4_0.gemfile
|
175
|
-
- gemfiles/rails4_1.gemfile
|
176
|
-
- gemfiles/rails4_2.gemfile
|
177
|
-
- gemfiles/rails5_0.gemfile
|
178
|
-
- gemfiles/rails5_1.gemfile
|
174
|
+
- gemfiles/rails5_2.gemfile
|
179
175
|
- lib/background_worker.rb
|
180
176
|
- lib/background_worker/base.rb
|
181
177
|
- lib/background_worker/config.rb
|
@@ -207,8 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
203
|
- !ruby/object:Gem::Version
|
208
204
|
version: '0'
|
209
205
|
requirements: []
|
210
|
-
|
211
|
-
rubygems_version: 2.5.2
|
206
|
+
rubygems_version: 3.0.3
|
212
207
|
signing_key:
|
213
208
|
specification_version: 4
|
214
209
|
summary: Background worker abstraction with status updates
|
data/gemfiles/rails4_0.gemfile
DELETED
data/gemfiles/rails4_1.gemfile
DELETED
data/gemfiles/rails4_2.gemfile
DELETED
data/gemfiles/rails5_0.gemfile
DELETED