logtail-rails 0.2.6 → 0.2.7

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: 5832e8cb26c3fa1074500d631b899f379f5404decd1b6d2e1754412b84de1c2d
4
- data.tar.gz: 4ac40078b3e30df1e5c95fe6cb44fb2d9ebec95c2663fdc6ab15e38d9fabaaca
3
+ metadata.gz: 89dfbdb36a0a89b1fc0009815fdb21faa6cd2aa5fa378cebc3a898652f7a92b1
4
+ data.tar.gz: 1c7e0b8d2045838a74e53931689a12f07610a2d718ada2e277752191ee655137
5
5
  SHA512:
6
- metadata.gz: bd874966a740cb7c21e31c577481c28b611b0c3e25801480a29e2a754f1df20c0b3894dc44ae2e08f64ff98fa088364b4242e50e6fa408878c50824823301a89
7
- data.tar.gz: f6ed0342a87e51d35e9a1750b3397b72f32676836a620e8c524001fcf03efe8c8966b2cab008982075ccc17066023eca727e42a71c4e6fe0dff74cc9bf66e02f
6
+ metadata.gz: 29901f6d776bf339f5dd2bd348ee6d408beb19f19ff20227572cc3fe531acf26ed5aeb460e6a13edf1fa45e0f0ec62a34afadb36595229cdbf207fb3dccc82ac
7
+ data.tar.gz: 59c0317d0dd9e962cd0d90b4d8361e51e54293b0cc2eda59740ec8440b447c92971bbbed4a21ef5b1c23b4872bc0b229279c6e8580b358e77ae6fa9259c02c57
@@ -1,7 +1,9 @@
1
1
  name: build
2
2
 
3
3
  on:
4
+ pull_request:
4
5
  push:
6
+ branches: [main]
5
7
  schedule:
6
8
  - cron: '20 5 * * 1'
7
9
  workflow_dispatch:
@@ -15,91 +17,111 @@ jobs:
15
17
 
16
18
  matrix:
17
19
  ruby-version:
18
- - 3.2
19
- - 3.1
20
- - 3.0
21
- - 2.7
22
- - 2.6
23
- - 2.5
24
- - jruby-9.4.3.0
25
- - jruby-9.2.14.0
26
- - truffleruby-23.0.0
27
- - truffleruby-22.1.0
20
+ - "3"
21
+ - "3.3"
22
+ - "3.2"
23
+ - "3.1"
24
+ - "3.0"
25
+ - "2.7"
26
+ - "2.6"
27
+ - "2.5"
28
+ - "jruby-9.4.3.0"
29
+ - "jruby-9.2.14.0"
30
+ - "truffleruby-23.0.0"
31
+ - "truffleruby-22.1.0"
28
32
  gemfile:
29
- - rails-edge
30
- - rails-7.1
31
- - rails-7.0
32
- - rails-6.1
33
- - rails-6.0
34
- - rails-5.2
35
- - rails-5.1
36
- - rails-5.0
33
+ - "rails-edge"
34
+ - "rails-7.1"
35
+ - "rails-7.0"
36
+ - "rails-6.1"
37
+ - "rails-6.0"
38
+ - "rails-5.2"
39
+ - "rails-5.1"
40
+ - "rails-5.0"
37
41
  exclude:
38
- - gemfile: rails-edge
39
- ruby-version: 2.6
40
- - gemfile: rails-edge
41
- ruby-version: 2.5
42
- - gemfile: rails-edge
43
- ruby-version: jruby-9.4.3.0
44
- - gemfile: rails-edge
45
- ruby-version: jruby-9.2.14.0
46
- - gemfile: rails-edge
47
- ruby-version: truffleruby-23.0.0
42
+ - gemfile: "rails-edge"
43
+ ruby-version: "3.0"
44
+ - gemfile: "rails-edge"
45
+ ruby-version: "2.7"
46
+ - gemfile: "rails-edge"
47
+ ruby-version: "2.6"
48
+ - gemfile: "rails-edge"
49
+ ruby-version: "2.5"
50
+ - gemfile: "rails-edge"
51
+ ruby-version: "jruby-9.4.3.0"
52
+ - gemfile: "rails-edge"
53
+ ruby-version: "jruby-9.2.14.0"
54
+ - gemfile: "rails-edge"
55
+ ruby-version: "truffleruby-22.1.0"
56
+ - gemfile: "rails-edge"
57
+ ruby-version: "truffleruby-23.0.0"
48
58
 
49
- - gemfile: rails-7.1
50
- ruby-version: 2.6
51
- - gemfile: rails-7.1
52
- ruby-version: 2.5
53
- - gemfile: rails-7.1
54
- ruby-version: jruby-9.4.3.0
55
- - gemfile: rails-7.1
56
- ruby-version: jruby-9.2.14.0
59
+ - gemfile: "rails-7.1"
60
+ ruby-version: "2.6"
61
+ - gemfile: "rails-7.1"
62
+ ruby-version: "2.5"
63
+ - gemfile: "rails-7.1"
64
+ ruby-version: "jruby-9.4.3.0"
65
+ - gemfile: "rails-7.1"
66
+ ruby-version: "jruby-9.2.14.0"
57
67
 
58
- - gemfile: rails-7.0
59
- ruby-version: 2.6
60
- - gemfile: rails-7.0
61
- ruby-version: 2.5
62
- - gemfile: rails-7.0
63
- ruby-version: jruby-9.2.14.0
68
+ - gemfile: "rails-7.0"
69
+ ruby-version: "2.6"
70
+ - gemfile: "rails-7.0"
71
+ ruby-version: "2.5"
72
+ - gemfile: "rails-7.0"
73
+ ruby-version: "jruby-9.2.14.0"
64
74
 
65
- - gemfile: rails-5.2
66
- ruby-version: 3.2
67
- - gemfile: rails-5.2
68
- ruby-version: 3.1
69
- - gemfile: rails-5.2
70
- ruby-version: 3.0
71
- - gemfile: rails-5.2
72
- ruby-version: jruby-9.4.3.0
73
- - gemfile: rails-5.2
74
- ruby-version: truffleruby-22.1.0
75
- - gemfile: rails-5.2
76
- ruby-version: truffleruby-23.0.0
75
+ - gemfile: "rails-5.2"
76
+ ruby-version: "3"
77
+ - gemfile: "rails-5.2"
78
+ ruby-version: "3.3"
79
+ - gemfile: "rails-5.2"
80
+ ruby-version: "3.2"
81
+ - gemfile: "rails-5.2"
82
+ ruby-version: "3.1"
83
+ - gemfile: "rails-5.2"
84
+ ruby-version: "3.0"
85
+ - gemfile: "rails-5.2"
86
+ ruby-version: "jruby-9.4.3.0"
87
+ - gemfile: "rails-5.2"
88
+ ruby-version: "truffleruby-22.1.0"
89
+ - gemfile: "rails-5.2"
90
+ ruby-version: "truffleruby-23.0.0"
77
91
 
78
- - gemfile: rails-5.1
79
- ruby-version: 3.2
80
- - gemfile: rails-5.1
81
- ruby-version: 3.1
82
- - gemfile: rails-5.1
83
- ruby-version: 3.0
84
- - gemfile: rails-5.1
85
- ruby-version: jruby-9.4.3.0
86
- - gemfile: rails-5.1
87
- ruby-version: truffleruby-23.0.0
88
- - gemfile: rails-5.1
89
- ruby-version: truffleruby-22.1.0
92
+ - gemfile: "rails-5.1"
93
+ ruby-version: "3"
94
+ - gemfile: "rails-5.1"
95
+ ruby-version: "3.3"
96
+ - gemfile: "rails-5.1"
97
+ ruby-version: "3.2"
98
+ - gemfile: "rails-5.1"
99
+ ruby-version: "3.1"
100
+ - gemfile: "rails-5.1"
101
+ ruby-version: "3.0"
102
+ - gemfile: "rails-5.1"
103
+ ruby-version: "jruby-9.4.3.0"
104
+ - gemfile: "rails-5.1"
105
+ ruby-version: "truffleruby-23.0.0"
106
+ - gemfile: "rails-5.1"
107
+ ruby-version: "truffleruby-22.1.0"
90
108
 
91
- - gemfile: rails-5.0
92
- ruby-version: 3.2
93
- - gemfile: rails-5.0
94
- ruby-version: 3.1
95
- - gemfile: rails-5.0
96
- ruby-version: 3.0
97
- - gemfile: rails-5.0
98
- ruby-version: jruby-9.4.3.0
99
- - gemfile: rails-5.0
100
- ruby-version: truffleruby-23.0.0
101
- - gemfile: rails-5.0
102
- ruby-version: truffleruby-22.1.0
109
+ - gemfile: "rails-5.0"
110
+ ruby-version: "3"
111
+ - gemfile: "rails-5.0"
112
+ ruby-version: "3.3"
113
+ - gemfile: "rails-5.0"
114
+ ruby-version: "3.2"
115
+ - gemfile: "rails-5.0"
116
+ ruby-version: "3.1"
117
+ - gemfile: "rails-5.0"
118
+ ruby-version: "3.0"
119
+ - gemfile: "rails-5.0"
120
+ ruby-version: "jruby-9.4.3.0"
121
+ - gemfile: "rails-5.0"
122
+ ruby-version: "truffleruby-23.0.0"
123
+ - gemfile: "rails-5.0"
124
+ ruby-version: "truffleruby-22.1.0"
103
125
 
104
126
  env:
105
127
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
data/.rspec CHANGED
@@ -1,3 +1,4 @@
1
1
  --format documentation
2
2
  --color
3
3
  --require spec_helper
4
+ --order defined
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
+ gem 'sidekiq', '>= 7.3.0', require: false, group: :test if RUBY_VERSION >= '2.7.0'
4
+
3
5
  gemspec
@@ -71,4 +71,4 @@ group :test do
71
71
  gem "webdrivers"
72
72
  end
73
73
 
74
- gem "logtail-rails", "~> 0.2.6"
74
+ gem "logtail-rails", "~> 0.2.7"
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rails', '~> 5.0.0'
4
+ gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0'
4
5
 
5
6
  gem 'logtail'
6
7
  gem 'logtail-rack'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rails', '~> 5.1.0'
4
+ gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0'
4
5
 
5
6
  gem 'logtail'
6
7
  gem 'logtail-rack'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rails', '~> 5.2.0'
4
+ gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0'
4
5
 
5
6
  gem 'logtail'
6
7
  gem 'logtail-rack'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rails', '~> 6.0.0'
4
+ gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0'
4
5
 
5
6
  gem 'logtail'
6
7
  gem 'logtail-rack'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rails', '~> 6.1.0'
4
+ gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0'
4
5
 
5
6
  gem 'logtail'
6
7
  gem 'logtail-rack'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rails', '~> 7.0.0'
4
+ gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0'
4
5
 
5
6
  gem 'logtail'
6
7
  gem 'logtail-rack'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rails', '~> 7.1.0'
4
+ gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0'
4
5
 
5
6
  gem 'logtail'
6
7
  gem 'logtail-rack'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rails', github: 'rails/rails', branch: 'main'
4
+ gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0'
4
5
 
5
6
  gem 'logtail'
6
7
  gem 'logtail-rack'
@@ -65,6 +65,8 @@ module Logtail
65
65
  logger = self.create_logger(io_device)
66
66
 
67
67
  if defined?(Sidekiq)
68
+ require "logtail-rails/sidekiq"
69
+
68
70
  Sidekiq.configure_server do |config|
69
71
  logger = self.create_logger(io_device, config.logger) if config.logger.class == Sidekiq::Logger
70
72
  config.logger = logger
@@ -1,6 +1,7 @@
1
1
  # integrates Logtail::CurrentContext with Sidekiq::Context if installed
2
2
 
3
3
  begin
4
+ require 'sidekiq/component'
4
5
  require 'sidekiq/job_logger'
5
6
 
6
7
  class Sidekiq::JobLogger
@@ -1,7 +1,7 @@
1
1
  module Logtail
2
2
  module Integrations
3
3
  module Rails
4
- VERSION = "0.2.6"
4
+ VERSION = "0.2.7"
5
5
  end
6
6
  end
7
7
  end
data/lib/logtail-rails.rb CHANGED
@@ -21,7 +21,6 @@ require "logtail-rails/action_controller"
21
21
  require "logtail-rails/action_dispatch"
22
22
  require "logtail-rails/action_view"
23
23
  require "logtail-rails/active_record"
24
- require "logtail-rails/sidekiq"
25
24
 
26
25
  require "logtail-rails/log_entry"
27
26
  require "logtail-rails/logger"
@@ -39,11 +39,11 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "rake", ">= 0.8"
40
40
  spec.add_development_dependency "rspec", "~> 3.0"
41
41
 
42
- spec.add_development_dependency("bundler-audit", ">= 0")
43
- spec.add_development_dependency("rails_stdout_logging", ">= 0")
44
- spec.add_development_dependency("rspec-its", ">= 0")
45
- spec.add_development_dependency("timecop", ">= 0")
46
- spec.add_development_dependency('webmock', '~> 2.3')
42
+ spec.add_development_dependency "bundler-audit", ">= 0"
43
+ spec.add_development_dependency "rails_stdout_logging", ">= 0"
44
+ spec.add_development_dependency "rspec-its", ">= 0"
45
+ spec.add_development_dependency "timecop", ">= 0"
46
+ spec.add_development_dependency "webmock", "~> 2.3"
47
47
 
48
48
  rails_version = 0
49
49
  if ENV.key?('RAILS_VERSION')
@@ -58,6 +58,6 @@ Gem::Specification.new do |spec|
58
58
  elsif rails_version >= 3 && rails_version < 6
59
59
  spec.add_development_dependency('sqlite3', '1.3.13')
60
60
  else
61
- spec.add_development_dependency('sqlite3', '~> 1.4.0')
61
+ spec.add_development_dependency('sqlite3', '~> 1.5.0')
62
62
  end
63
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtail-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Better Stack
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-27 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logtail
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 1.4.0
201
+ version: 1.5.0
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 1.4.0
208
+ version: 1.5.0
209
209
  description:
210
210
  email:
211
211
  - hello@betterstack.com
@@ -361,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
361
361
  - !ruby/object:Gem::Version
362
362
  version: '0'
363
363
  requirements: []
364
- rubygems_version: 3.4.10
364
+ rubygems_version: 3.3.7
365
365
  signing_key:
366
366
  specification_version: 4
367
367
  summary: Better Stack Rails integration