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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: adc5011226295995d19e4fac5920ec5507921e1b
4
- data.tar.gz: 358a861e8f41d6a66ffdebf64d561521cf766608
2
+ SHA256:
3
+ metadata.gz: 92739c3cd6034d467914e25cacf4a240e38c046b6e388cec4f9af9679b97d9a6
4
+ data.tar.gz: 89f898f9989bcf29e5db58bf9bd23f189aa9e87702d145309c072a3a501ff2a1
5
5
  SHA512:
6
- metadata.gz: 56cc930cc991e58352cda3fe9cf687d92dc7d5e1dcc3d8e5c6af088d6aab4b27d36bba7cca9efb7615a501cbf408a6db117ebc49de3d93ea7b2f2c0ffee89c4d
7
- data.tar.gz: 8bf4c992d2233f2224c6a2a7595014f628ab9bea24c392bcb6d4207bfd801140ed42c9dd4947fa69c2196647e51d41448cfd6987b44f8081557bf27cd95f55a2
6
+ metadata.gz: ce83fb384503d92765da69f1daec6f11eeff92fc8c9792ed5e4a8e770aa67224e0fd63ad7783d02b692ba38c75b7623785e2df22457ab58b5ae5fa8d4ca3b78b
7
+ data.tar.gz: '091732c22801dc033d91957cba5a3d4a84776414ca4f09d5f09dd02205b8c54ef243d462f7e2092e3249554c4f58e6ff00996efaa1c6bf1a50794737fa5a00e0'
@@ -0,0 +1 @@
1
+ 2.6.5
@@ -1,15 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
4
- - 2.3.0
3
+ - 2.6.5
5
4
  script: bundle exec rake spec
6
5
  gemfile:
7
- - gemfiles/rails3.gemfile
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
@@ -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
- ## Unreleased
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
@@ -2,5 +2,5 @@ source 'https://rubygems.org'
2
2
  gemspec :path => '../'
3
3
 
4
4
  group :development, :test do
5
- gem 'activerecord', '~> 3.2.0'
5
+ gem 'activerecord', '~> 5.2.0'
6
6
  end
@@ -24,16 +24,14 @@ module BackgroundWorker
24
24
  end
25
25
 
26
26
  def self.verify_active_connections!
27
- Rails.cache.reconnect if defined?(Rails)
28
- if defined?(ActiveRecord) && ActiveRecord::VERSION::MAJOR == 3
29
- ActiveRecord::Base.verify_active_connections!
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
- if defined?(ActiveRecord) && ActiveRecord::VERSION::MAJOR >= 4
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)
@@ -1,3 +1,3 @@
1
1
  module BackgroundWorker
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -1,4 +1,4 @@
1
1
  require 'simplecov-rcov'
2
2
  require 'coveralls'
3
3
  require 'coverage/kit'
4
- Coverage::Kit.setup(minimum_coverage: 82.1)
4
+ Coverage::Kit.setup(minimum_coverage: 82.75)
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.2.1
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: 2017-09-14 00:00:00.000000000 Z
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/rails3.gemfile
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
- rubyforge_project:
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
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec :path => '../'
3
-
4
- group :development, :test do
5
- gem 'activerecord', '~> 4.0.0'
6
- end
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec :path => '../'
3
-
4
- group :development, :test do
5
- gem 'activerecord', '~> 4.1.0'
6
- end
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec :path => '../'
3
-
4
- group :development, :test do
5
- gem 'activerecord', '~> 4.2.0'
6
- end
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec :path => '../'
3
-
4
- group :development, :test do
5
- gem 'activerecord', '~> 5.0.0'
6
- end
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec :path => '../'
3
-
4
- group :development, :test do
5
- gem 'activerecord', '~> 5.1.0'
6
- end