log_sanity 0.2.5 → 1.0.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
2
  SHA256:
3
- metadata.gz: cf587be669e717c152dbdcc863726d68fc0a0de5cb56e07f53f61aa707059626
4
- data.tar.gz: 75fd9003f9812d20f5c73476368cff9388d9875e5a67865c4156ea948c62bf53
3
+ metadata.gz: 3cd638933608ceaeffa6e4ac4f9dff3650128a21e7afee0d31f003b6f381c6ff
4
+ data.tar.gz: c0753610f32d3828d8d667c06fd6c023c7ad08aed3b167d6851f99c579c446d6
5
5
  SHA512:
6
- metadata.gz: fcd3e322168ebd60856cccba40ac63d90152192323b25679c8c6dbca3f05e5b6d3a66ace7025ac817cdb21b008cf56aa04bf66a26dab7e9b579c48948066e030
7
- data.tar.gz: 0b7c2309c55819217d2424541d38da82b8138b0432e7b022b78f9e19476688c929cc5dfde4bdbd25114c674e2054c2fb665834d240544c7eab353b516a1ef376
6
+ metadata.gz: efbdfe624f62f7e5883cb4e7a10e0f32ad41dea981f8cad792c1b27c18cdd3452dbf8e2345601df786458a428f91fe2e5751979ffb2d318a0558f9352a98ddea
7
+ data.tar.gz: 74bf53856c0eabfd35f3d0b90893bba70b7a671579253f2b2dc4440ae4a7017de97cd8410b01a869d7091f975641464b52ab0d7021952eaf09a4b84d05836b2b
@@ -1,135 +1,138 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- log_sanity (0.2.5)
5
- rails (>= 5, < 6.1)
4
+ log_sanity (1.0.0)
5
+ rails (>= 5.2, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.2.1)
11
- actionpack (= 6.0.2.1)
10
+ actioncable (6.1.0)
11
+ actionpack (= 6.1.0)
12
+ activesupport (= 6.1.0)
12
13
  nio4r (~> 2.0)
13
14
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.2.1)
15
- actionpack (= 6.0.2.1)
16
- activejob (= 6.0.2.1)
17
- activerecord (= 6.0.2.1)
18
- activestorage (= 6.0.2.1)
19
- activesupport (= 6.0.2.1)
15
+ actionmailbox (6.1.0)
16
+ actionpack (= 6.1.0)
17
+ activejob (= 6.1.0)
18
+ activerecord (= 6.1.0)
19
+ activestorage (= 6.1.0)
20
+ activesupport (= 6.1.0)
20
21
  mail (>= 2.7.1)
21
- actionmailer (6.0.2.1)
22
- actionpack (= 6.0.2.1)
23
- actionview (= 6.0.2.1)
24
- activejob (= 6.0.2.1)
22
+ actionmailer (6.1.0)
23
+ actionpack (= 6.1.0)
24
+ actionview (= 6.1.0)
25
+ activejob (= 6.1.0)
26
+ activesupport (= 6.1.0)
25
27
  mail (~> 2.5, >= 2.5.4)
26
28
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.2.1)
28
- actionview (= 6.0.2.1)
29
- activesupport (= 6.0.2.1)
30
- rack (~> 2.0, >= 2.0.8)
29
+ actionpack (6.1.0)
30
+ actionview (= 6.1.0)
31
+ activesupport (= 6.1.0)
32
+ rack (~> 2.0, >= 2.0.9)
31
33
  rack-test (>= 0.6.3)
32
34
  rails-dom-testing (~> 2.0)
33
35
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.2.1)
35
- actionpack (= 6.0.2.1)
36
- activerecord (= 6.0.2.1)
37
- activestorage (= 6.0.2.1)
38
- activesupport (= 6.0.2.1)
36
+ actiontext (6.1.0)
37
+ actionpack (= 6.1.0)
38
+ activerecord (= 6.1.0)
39
+ activestorage (= 6.1.0)
40
+ activesupport (= 6.1.0)
39
41
  nokogiri (>= 1.8.5)
40
- actionview (6.0.2.1)
41
- activesupport (= 6.0.2.1)
42
+ actionview (6.1.0)
43
+ activesupport (= 6.1.0)
42
44
  builder (~> 3.1)
43
45
  erubi (~> 1.4)
44
46
  rails-dom-testing (~> 2.0)
45
47
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.2.1)
47
- activesupport (= 6.0.2.1)
48
+ activejob (6.1.0)
49
+ activesupport (= 6.1.0)
48
50
  globalid (>= 0.3.6)
49
- activemodel (6.0.2.1)
50
- activesupport (= 6.0.2.1)
51
- activerecord (6.0.2.1)
52
- activemodel (= 6.0.2.1)
53
- activesupport (= 6.0.2.1)
54
- activestorage (6.0.2.1)
55
- actionpack (= 6.0.2.1)
56
- activejob (= 6.0.2.1)
57
- activerecord (= 6.0.2.1)
51
+ activemodel (6.1.0)
52
+ activesupport (= 6.1.0)
53
+ activerecord (6.1.0)
54
+ activemodel (= 6.1.0)
55
+ activesupport (= 6.1.0)
56
+ activestorage (6.1.0)
57
+ actionpack (= 6.1.0)
58
+ activejob (= 6.1.0)
59
+ activerecord (= 6.1.0)
60
+ activesupport (= 6.1.0)
58
61
  marcel (~> 0.3.1)
59
- activesupport (6.0.2.1)
62
+ mimemagic (~> 0.3.2)
63
+ activesupport (6.1.0)
60
64
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
- i18n (>= 0.7, < 2)
62
- minitest (~> 5.1)
63
- tzinfo (~> 1.1)
64
- zeitwerk (~> 2.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
65
69
  builder (3.2.4)
66
- concurrent-ruby (1.1.6)
70
+ concurrent-ruby (1.1.7)
67
71
  crass (1.0.6)
68
- erubi (1.9.0)
72
+ erubi (1.10.0)
69
73
  globalid (0.4.2)
70
74
  activesupport (>= 4.2.0)
71
- i18n (1.8.2)
75
+ i18n (1.8.5)
72
76
  concurrent-ruby (~> 1.0)
73
- loofah (2.4.0)
77
+ loofah (2.8.0)
74
78
  crass (~> 1.0.2)
75
79
  nokogiri (>= 1.5.9)
76
80
  mail (2.7.1)
77
81
  mini_mime (>= 0.1.1)
78
82
  marcel (0.3.3)
79
83
  mimemagic (~> 0.3.2)
80
- method_source (0.9.2)
81
- mimemagic (0.3.4)
84
+ method_source (1.0.0)
85
+ mimemagic (0.3.5)
82
86
  mini_mime (1.0.2)
83
87
  mini_portile2 (2.4.0)
84
- minitest (5.14.0)
85
- nio4r (2.5.2)
86
- nokogiri (1.10.8)
88
+ minitest (5.14.2)
89
+ nio4r (2.5.4)
90
+ nokogiri (1.10.10)
87
91
  mini_portile2 (~> 2.4.0)
88
- rack (2.2.2)
92
+ rack (2.2.3)
89
93
  rack-test (1.1.0)
90
94
  rack (>= 1.0, < 3)
91
- rails (6.0.2.1)
92
- actioncable (= 6.0.2.1)
93
- actionmailbox (= 6.0.2.1)
94
- actionmailer (= 6.0.2.1)
95
- actionpack (= 6.0.2.1)
96
- actiontext (= 6.0.2.1)
97
- actionview (= 6.0.2.1)
98
- activejob (= 6.0.2.1)
99
- activemodel (= 6.0.2.1)
100
- activerecord (= 6.0.2.1)
101
- activestorage (= 6.0.2.1)
102
- activesupport (= 6.0.2.1)
103
- bundler (>= 1.3.0)
104
- railties (= 6.0.2.1)
95
+ rails (6.1.0)
96
+ actioncable (= 6.1.0)
97
+ actionmailbox (= 6.1.0)
98
+ actionmailer (= 6.1.0)
99
+ actionpack (= 6.1.0)
100
+ actiontext (= 6.1.0)
101
+ actionview (= 6.1.0)
102
+ activejob (= 6.1.0)
103
+ activemodel (= 6.1.0)
104
+ activerecord (= 6.1.0)
105
+ activestorage (= 6.1.0)
106
+ activesupport (= 6.1.0)
107
+ bundler (>= 1.15.0)
108
+ railties (= 6.1.0)
105
109
  sprockets-rails (>= 2.0.0)
106
110
  rails-dom-testing (2.0.3)
107
111
  activesupport (>= 4.2.0)
108
112
  nokogiri (>= 1.6)
109
113
  rails-html-sanitizer (1.3.0)
110
114
  loofah (~> 2.3)
111
- railties (6.0.2.1)
112
- actionpack (= 6.0.2.1)
113
- activesupport (= 6.0.2.1)
115
+ railties (6.1.0)
116
+ actionpack (= 6.1.0)
117
+ activesupport (= 6.1.0)
114
118
  method_source
115
119
  rake (>= 0.8.7)
116
- thor (>= 0.20.3, < 2.0)
117
- rake (13.0.1)
118
- sprockets (4.0.0)
120
+ thor (~> 1.0)
121
+ rake (13.0.3)
122
+ sprockets (4.0.2)
119
123
  concurrent-ruby (~> 1.0)
120
124
  rack (> 1, < 3)
121
- sprockets-rails (3.2.1)
125
+ sprockets-rails (3.2.2)
122
126
  actionpack (>= 4.0)
123
127
  activesupport (>= 4.0)
124
128
  sprockets (>= 3.0.0)
125
129
  thor (1.0.1)
126
- thread_safe (0.3.6)
127
- tzinfo (1.2.6)
128
- thread_safe (~> 0.1)
129
- websocket-driver (0.7.1)
130
+ tzinfo (2.0.4)
131
+ concurrent-ruby (~> 1.0)
132
+ websocket-driver (0.7.3)
130
133
  websocket-extensions (>= 0.1.0)
131
- websocket-extensions (0.1.4)
132
- zeitwerk (2.2.2)
134
+ websocket-extensions (0.1.5)
135
+ zeitwerk (2.4.2)
133
136
 
134
137
  PLATFORMS
135
138
  ruby
data/README.md CHANGED
@@ -70,7 +70,7 @@ LogSanity.fields['user'] ||= {}
70
70
  LogSanity.fields['user']['id'] = current_user.id
71
71
  ```
72
72
 
73
- It's also possible to add attributes via Rails existing `log_tags` facility, which is documented more below.
73
+ It's also possible to add attributes via Rails' existing `log_tags` facility, which is documented more below.
74
74
 
75
75
 
76
76
  ##### Logging complete entries
@@ -172,7 +172,7 @@ There are still some things that could be handled better (such as multi-line str
172
172
 
173
173
  Pull requests are welcomed and encouraged. The only goal is to avoid making things unnecessarily complex.
174
174
 
175
- Tested on Rails 5.2 and up. Anything older is untested. Small patches for older compatibility will be considered.
175
+ Tested on Rails 5.2 through 6.1 (or later). Anything older is untested. Small patches for older compatibility will be considered.
176
176
 
177
177
  License: MIT
178
178
 
@@ -26,7 +26,15 @@ module LogSanity
26
26
  end
27
27
  if defined?(ActiveJob)
28
28
  require 'active_job/logging'
29
- ActiveJob::Logging::LogSubscriber.detach_from :active_job
29
+ begin
30
+ require 'active_job/log_subscriber' # >= 6.1
31
+ rescue LoadError
32
+ end
33
+ if defined?(ActiveJob::LogSubscriber) # >= 6.1
34
+ ActiveJob::LogSubscriber.detach_from :active_job
35
+ else # < 6.1
36
+ ActiveJob::Logging::LogSubscriber.detach_from :active_job
37
+ end
30
38
  end
31
39
  if defined?(ActiveRecord)
32
40
  if ActiveRecord::Base.logger.debug?
@@ -1,3 +1,3 @@
1
1
  module LogSanity
2
- VERSION = '0.2.5'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_dependency 'rails', '>= 5', '< 6.1'
20
+ s.add_dependency 'rails', '>= 5.2', '< 6.2'
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_sanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-29 00:00:00.000000000 Z
11
+ date: 2020-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5'
19
+ version: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '6.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '5'
29
+ version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '6.2'
33
33
  description: LogSanity - Bring sanity to Rails logs by reducing verbosity, using json
34
34
  output, and more.
35
35
  email:
@@ -106,7 +106,7 @@ homepage: https://github.com/zarqman/log_sanity
106
106
  licenses:
107
107
  - MIT
108
108
  metadata: {}
109
- post_install_message:
109
+ post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib
@@ -121,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.0.6
125
- signing_key:
124
+ rubygems_version: 3.0.9
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: LogSanity - Bring sanity to Rails logs
128
128
  test_files: