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 +4 -4
- data/.github/workflows/main.yml +116 -78
- data/.rspec +1 -0
- data/Gemfile +2 -0
- data/example-project/Gemfile +1 -1
- data/gemfiles/rails-5.0.gemfile +1 -0
- data/gemfiles/rails-5.1.gemfile +1 -0
- data/gemfiles/rails-5.2.gemfile +1 -0
- data/gemfiles/rails-6.0.gemfile +1 -0
- data/gemfiles/rails-6.1.gemfile +1 -0
- data/gemfiles/rails-7.0.gemfile +1 -0
- data/gemfiles/rails-7.1.gemfile +1 -0
- data/gemfiles/rails-7.2.gemfile +9 -0
- data/gemfiles/rails-edge.gemfile +2 -0
- data/lib/logtail-rails/logger.rb +3 -1
- data/lib/logtail-rails/sidekiq.rb +1 -0
- data/lib/logtail-rails/version.rb +1 -1
- data/lib/logtail-rails.rb +0 -1
- data/logtail-rails.gemspec +6 -6
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dd638e3cb5c1fa429eb73207b637f8779e061a97a6da92b15ca2c106b432185
|
4
|
+
data.tar.gz: 5524d230ca79275f29616363a6b226ed9d0f7c0e990aafaea102c08a760ab30d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea0d01dd2f385c758fdf340159f2e22492c52659712908955908bd34a0d2a773e519ad61534959bfea5b2c5e3ebef72bf4bda841519f60ebe02b02944dd8d769
|
7
|
+
data.tar.gz: f6e33c20d7faeafc703eab7abfb4678092ef888caf761584bde34ebf6075eac840df3ff1b8e371a6ea8e27345501bed14a53044d799c0194db1e8ad27e05e262
|
data/.github/workflows/main.yml
CHANGED
@@ -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
|
19
|
-
- 3.
|
20
|
-
- 3.
|
21
|
-
-
|
22
|
-
-
|
23
|
-
- 2.
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
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.
|
31
|
-
- rails-7.
|
32
|
-
- rails-
|
33
|
-
- rails-6.
|
34
|
-
- rails-
|
35
|
-
- rails-5.
|
36
|
-
- rails-5.
|
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:
|
40
|
-
- gemfile: rails-edge
|
41
|
-
ruby-version: 2.
|
42
|
-
- gemfile: rails-edge
|
43
|
-
ruby-version:
|
44
|
-
- gemfile: rails-edge
|
45
|
-
ruby-version:
|
46
|
-
- gemfile: rails-edge
|
47
|
-
ruby-version:
|
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.
|
50
|
-
ruby-version:
|
51
|
-
- gemfile: rails-7.
|
52
|
-
ruby-version: 2.
|
53
|
-
- gemfile: rails-7.
|
54
|
-
ruby-version:
|
55
|
-
- gemfile: rails-7.
|
56
|
-
ruby-version:
|
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
|
67
|
-
- gemfile: rails-5.2
|
68
|
-
ruby-version: 3.
|
69
|
-
- gemfile: rails-5.2
|
70
|
-
ruby-version: 3.
|
71
|
-
- gemfile: rails-5.2
|
72
|
-
ruby-version:
|
73
|
-
- gemfile: rails-5.2
|
74
|
-
ruby-version:
|
75
|
-
- gemfile: rails-5.2
|
76
|
-
ruby-version:
|
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
|
80
|
-
- gemfile: rails-5.1
|
81
|
-
ruby-version: 3.
|
82
|
-
- gemfile: rails-5.1
|
83
|
-
ruby-version: 3.
|
84
|
-
- gemfile: rails-5.1
|
85
|
-
ruby-version:
|
86
|
-
- gemfile: rails-5.1
|
87
|
-
ruby-version:
|
88
|
-
- gemfile: rails-5.1
|
89
|
-
ruby-version:
|
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
|
93
|
-
- gemfile: rails-5.0
|
94
|
-
ruby-version: 3.
|
95
|
-
- gemfile: rails-5.0
|
96
|
-
ruby-version: 3.
|
97
|
-
- gemfile: rails-5.0
|
98
|
-
ruby-version:
|
99
|
-
- gemfile: rails-5.0
|
100
|
-
ruby-version:
|
101
|
-
- gemfile: rails-5.0
|
102
|
-
ruby-version:
|
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
data/Gemfile
CHANGED
data/example-project/Gemfile
CHANGED
data/gemfiles/rails-5.0.gemfile
CHANGED
data/gemfiles/rails-5.1.gemfile
CHANGED
data/gemfiles/rails-5.2.gemfile
CHANGED
data/gemfiles/rails-6.0.gemfile
CHANGED
data/gemfiles/rails-6.1.gemfile
CHANGED
data/gemfiles/rails-7.0.gemfile
CHANGED
data/gemfiles/rails-7.1.gemfile
CHANGED
data/gemfiles/rails-edge.gemfile
CHANGED
@@ -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'
|
data/lib/logtail-rails/logger.rb
CHANGED
@@ -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(
|
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
|
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"
|
data/logtail-rails.gemspec
CHANGED
@@ -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
|
43
|
-
spec.add_development_dependency
|
44
|
-
spec.add_development_dependency
|
45
|
-
spec.add_development_dependency
|
46
|
-
spec.add_development_dependency
|
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.
|
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.
|
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:
|
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.
|
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.
|
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
|