logtail-rails 0.2.6 → 0.2.8

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: 6dd638e3cb5c1fa429eb73207b637f8779e061a97a6da92b15ca2c106b432185
4
+ data.tar.gz: 5524d230ca79275f29616363a6b226ed9d0f7c0e990aafaea102c08a760ab30d
5
5
  SHA512:
6
- metadata.gz: bd874966a740cb7c21e31c577481c28b611b0c3e25801480a29e2a754f1df20c0b3894dc44ae2e08f64ff98fa088364b4242e50e6fa408878c50824823301a89
7
- data.tar.gz: f6ed0342a87e51d35e9a1750b3397b72f32676836a620e8c524001fcf03efe8c8966b2cab008982075ccc17066023eca727e42a71c4e6fe0dff74cc9bf66e02f
6
+ metadata.gz: ea0d01dd2f385c758fdf340159f2e22492c52659712908955908bd34a0d2a773e519ad61534959bfea5b2c5e3ebef72bf4bda841519f60ebe02b02944dd8d769
7
+ data.tar.gz: f6e33c20d7faeafc703eab7abfb4678092ef888caf761584bde34ebf6075eac840df3ff1b8e371a6ea8e27345501bed14a53044d799c0194db1e8ad27e05e262
@@ -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,127 @@ 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.2"
35
+ - "rails-7.1"
36
+ - "rails-7.0"
37
+ - "rails-6.1"
38
+ - "rails-6.0"
39
+ - "rails-5.2"
40
+ - "rails-5.1"
41
+ - "rails-5.0"
37
42
  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
43
+ - gemfile: "rails-edge"
44
+ ruby-version: "3.0"
45
+ - gemfile: "rails-edge"
46
+ ruby-version: "2.7"
47
+ - gemfile: "rails-edge"
48
+ ruby-version: "2.6"
49
+ - gemfile: "rails-edge"
50
+ ruby-version: "2.5"
51
+ - gemfile: "rails-edge"
52
+ ruby-version: "jruby-9.4.3.0"
53
+ - gemfile: "rails-edge"
54
+ ruby-version: "jruby-9.2.14.0"
55
+ - gemfile: "rails-edge"
56
+ ruby-version: "truffleruby-22.1.0"
57
+ - gemfile: "rails-edge"
58
+ ruby-version: "truffleruby-23.0.0"
48
59
 
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
60
+ - gemfile: "rails-7.2"
61
+ ruby-version: "3.0"
62
+ - gemfile: "rails-7.2"
63
+ ruby-version: "2.7"
64
+ - gemfile: "rails-7.2"
65
+ ruby-version: "2.6"
66
+ - gemfile: "rails-7.2"
67
+ ruby-version: "2.5"
68
+ - gemfile: "rails-7.2"
69
+ ruby-version: "jruby-9.4.3.0"
70
+ - gemfile: "rails-7.2"
71
+ ruby-version: "jruby-9.2.14.0"
72
+ - gemfile: "rails-7.2"
73
+ ruby-version: "truffleruby-22.1.0"
74
+
75
+ - gemfile: "rails-7.1"
76
+ ruby-version: "2.6"
77
+ - gemfile: "rails-7.1"
78
+ ruby-version: "2.5"
79
+ - gemfile: "rails-7.1"
80
+ ruby-version: "jruby-9.4.3.0"
81
+ - gemfile: "rails-7.1"
82
+ ruby-version: "jruby-9.2.14.0"
57
83
 
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
84
+ - gemfile: "rails-7.0"
85
+ ruby-version: "2.6"
86
+ - gemfile: "rails-7.0"
87
+ ruby-version: "2.5"
88
+ - gemfile: "rails-7.0"
89
+ ruby-version: "jruby-9.2.14.0"
64
90
 
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
91
+ - gemfile: "rails-5.2"
92
+ ruby-version: "3"
93
+ - gemfile: "rails-5.2"
94
+ ruby-version: "3.3"
95
+ - gemfile: "rails-5.2"
96
+ ruby-version: "3.2"
97
+ - gemfile: "rails-5.2"
98
+ ruby-version: "3.1"
99
+ - gemfile: "rails-5.2"
100
+ ruby-version: "3.0"
101
+ - gemfile: "rails-5.2"
102
+ ruby-version: "jruby-9.4.3.0"
103
+ - gemfile: "rails-5.2"
104
+ ruby-version: "truffleruby-22.1.0"
105
+ - gemfile: "rails-5.2"
106
+ ruby-version: "truffleruby-23.0.0"
77
107
 
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
108
+ - gemfile: "rails-5.1"
109
+ ruby-version: "3"
110
+ - gemfile: "rails-5.1"
111
+ ruby-version: "3.3"
112
+ - gemfile: "rails-5.1"
113
+ ruby-version: "3.2"
114
+ - gemfile: "rails-5.1"
115
+ ruby-version: "3.1"
116
+ - gemfile: "rails-5.1"
117
+ ruby-version: "3.0"
118
+ - gemfile: "rails-5.1"
119
+ ruby-version: "jruby-9.4.3.0"
120
+ - gemfile: "rails-5.1"
121
+ ruby-version: "truffleruby-23.0.0"
122
+ - gemfile: "rails-5.1"
123
+ ruby-version: "truffleruby-22.1.0"
90
124
 
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
125
+ - gemfile: "rails-5.0"
126
+ ruby-version: "3"
127
+ - gemfile: "rails-5.0"
128
+ ruby-version: "3.3"
129
+ - gemfile: "rails-5.0"
130
+ ruby-version: "3.2"
131
+ - gemfile: "rails-5.0"
132
+ ruby-version: "3.1"
133
+ - gemfile: "rails-5.0"
134
+ ruby-version: "3.0"
135
+ - gemfile: "rails-5.0"
136
+ ruby-version: "jruby-9.4.3.0"
137
+ - gemfile: "rails-5.0"
138
+ ruby-version: "truffleruby-23.0.0"
139
+ - gemfile: "rails-5.0"
140
+ ruby-version: "truffleruby-22.1.0"
103
141
 
104
142
  env:
105
143
  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'
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rails', '~> 7.2.0'
4
+ gem 'sidekiq', '>= 7.3.0', require: false
5
+
6
+ gem 'logtail'
7
+ gem 'logtail-rack'
8
+
9
+ gemspec :path => '../'
@@ -1,9 +1,11 @@
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'
8
+ gem "sqlite3", ">= 2.0"
7
9
 
8
10
  if RUBY_PLATFORM == "java"
9
11
  gem 'mime-types', '2.6.2'
@@ -38,7 +38,7 @@ module Logtail
38
38
 
39
39
  def stop_broadcasting_to(io_device_or_logger)
40
40
  if is_a_logger?(io_device_or_logger)
41
- @extra_loggers.delete(logger)
41
+ @extra_loggers.delete(io_device_or_logger)
42
42
 
43
43
  return
44
44
  end
@@ -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.8"
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.8
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-09-11 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
@@ -307,6 +307,7 @@ files:
307
307
  - gemfiles/rails-6.1.gemfile
308
308
  - gemfiles/rails-7.0.gemfile
309
309
  - gemfiles/rails-7.1.gemfile
310
+ - gemfiles/rails-7.2.gemfile
310
311
  - gemfiles/rails-edge.gemfile
311
312
  - lib/logtail-rails.rb
312
313
  - lib/logtail-rails/action_controller.rb