loga 2.5.1 → 2.5.2

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
  SHA256:
3
- metadata.gz: 2edeb506c587fc55a4a3569aa4fa50af23c0080d0409da3de8aaf4f8f9df60f1
4
- data.tar.gz: 98ef790dd9c26f71d3a5f6c656d1a1663db56a90da28fa49f03da239bbc57d80
3
+ metadata.gz: 346f092fca3d84834d02408f3307462e0ec017f9634bf08396355e46a1681ec2
4
+ data.tar.gz: 93949c198f5a4a697ca261bc6d13eabdbd3349c2ab2d57e845abbd5289279095
5
5
  SHA512:
6
- metadata.gz: 62a82d5f31b3b4a1d29464d51e15ef1346ee9a7cc0fddc8047703fbdd0d041c089fc9423ed02fcdf81f0a5be6f329893d5081003ef347fbf5c8f032bd4f7dabe
7
- data.tar.gz: a70770e9de89a0357a25c1290bafff87b0422efc1b9dd7a6861004bacceb6acc9db67f10bd9c41e1bc5ff0178a63b1142ab5efe3cca4cb18745808deb550b1d4
6
+ metadata.gz: c64276706dd59404d3dc19370dc5b85a8390b60d80f6c781826d6417db086c445051b28ce9b85511da071da4d1c5172f7c4703e2782298f09a2e271399ee7a3f
7
+ data.tar.gz: 19c9919c468fd33bcabf84877b429e631ffdffa1fe3e8b2cbf3319d8b894ffdf3e3db830549f5fa39a57b8745aa9d37d6f691fd9feeb0f4cc2a0a2538f6b5d24
data/Appraisals CHANGED
@@ -28,6 +28,10 @@ if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('2.5.0')
28
28
  appraise 'rails60' do
29
29
  gem 'rails', '~> 6.0.0'
30
30
  end
31
+
32
+ appraise 'sidekiq6' do
33
+ gem 'sidekiq', '~> 6.0'
34
+ end
31
35
  end
32
36
 
33
37
  appraise 'sidekiq51' do
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [2.5.2] - 2020-10-21
8
+ ### Fixed
9
+ - Support for sidekiq 6
10
+
7
11
  ## [2.5.1] - 2020-01-02
8
12
  ### Fixed
9
13
  - Fixed a long standing bug that would mask exceptions raised by the host application when serving requests. The original exception would be replaced with a `TypeError` one due to a HTTP status code not being available within `Loga::Rack::Logger`.
data/Gemfile CHANGED
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  group :test do
7
- gem 'simplecov'
7
+ gem 'simplecov', '~> 0.17.0'
8
8
  end
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "sidekiq", "~> 6.0"
6
+
7
+ group :test do
8
+ gem "simplecov"
9
+ end
10
+
11
+ gemspec path: "../"
@@ -10,7 +10,7 @@ module Loga
10
10
  config.options[:job_logger] = Loga::Sidekiq::JobLogger
11
11
  end
12
12
 
13
- ::Sidekiq::Logging.logger = Loga.configuration.logger
13
+ ::Sidekiq.logger = Loga.configuration.logger
14
14
  end
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Loga
2
- VERSION = '2.5.1'.freeze
2
+ VERSION = '2.5.2'.freeze
3
3
  end
@@ -45,10 +45,6 @@ describe 'Sidekiq client logger' do
45
45
  expect(Sidekiq.options[:job_logger]).to eq job_logger
46
46
  end
47
47
 
48
- it 'has the proper logger Sidekiq::Logging.logger' do
49
- expect(Sidekiq::Logging.logger).to eq Loga.logger
50
- end
51
-
52
48
  it 'has the proper logger for Sidekiq.logger' do
53
49
  expect(Sidekiq.logger).to eq Loga.logger
54
50
  end
@@ -67,6 +63,10 @@ describe 'Sidekiq client logger' do
67
63
  end
68
64
 
69
65
  if ENV['BUNDLE_GEMFILE'] =~ /sidekiq51/
66
+ it 'has the proper logger Sidekiq::Logging.logger' do
67
+ expect(Sidekiq::Logging.logger).to eq Loga.logger
68
+ end
69
+
70
70
  # https://github.com/mperham/sidekiq/blob/97363210b47a4f8a1d8c1233aaa059d6643f5040/test/test_actors.rb#L57-L79
71
71
  let(:mgr) do
72
72
  Class.new do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loga
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Funding Circle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-02 00:00:00.000000000 Z
11
+ date: 2020-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -261,6 +261,7 @@ files:
261
261
  - gemfiles/rails52.gemfile
262
262
  - gemfiles/rails60.gemfile
263
263
  - gemfiles/sidekiq51.gemfile
264
+ - gemfiles/sidekiq6.gemfile
264
265
  - gemfiles/sinatra14.gemfile
265
266
  - gemfiles/unit.gemfile
266
267
  - lib/loga.rb