slack_webhook_logger 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -5
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +50 -50
- data/lib/slack_webhook_logger/formatter.rb +3 -3
- data/lib/slack_webhook_logger/version.rb +1 -1
- data/slack_webhook_logger.gemspec +6 -3
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b2ea7a93a3ddc68d86ffdfa85b7b9f9694484fc88962f514e36e2319019043c
|
4
|
+
data.tar.gz: df61448759a8f085ae5693c30f1a5c45e5c6a44a872a8eaf984f6390d11c071c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7464c0106b86d2029d5075cf1220f53cf4f8d0d7d71a55716f20b84388332ff1497d609d2e72ab0fb493609378bf88e34057e40a5ea2b9517b0faa5994e74fa4
|
7
|
+
data.tar.gz: 90918593ee010f3547f39f6de174739f42ccef225c2435270579473b653bfb5f5d549e19efe6f274c82d057685d14d54f52d2c2713213c90b4b52b1f54ffc506
|
data/.github/workflows/ci.yml
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
name: Ruby CI
|
2
2
|
|
3
3
|
on:
|
4
|
-
pull_request:
|
5
|
-
types: [opened, synchronize, reopened]
|
6
4
|
push:
|
7
|
-
branches:
|
8
|
-
- main
|
9
5
|
|
10
6
|
jobs:
|
11
7
|
test:
|
@@ -14,7 +10,7 @@ jobs:
|
|
14
10
|
strategy:
|
15
11
|
fail-fast: false
|
16
12
|
matrix:
|
17
|
-
ruby-version: [
|
13
|
+
ruby-version: [3.0.2]
|
18
14
|
|
19
15
|
steps:
|
20
16
|
- uses: actions/checkout@v2
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
slack_webhook_logger (0.
|
5
|
-
activesupport (>= 5.0, <
|
6
|
-
railties (>= 5.0, <
|
4
|
+
slack_webhook_logger (0.3.1)
|
5
|
+
activesupport (>= 5.0, < 8.0)
|
6
|
+
railties (>= 5.0, < 8.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (
|
12
|
-
actionview (=
|
13
|
-
activesupport (=
|
14
|
-
rack (~> 2.0, >= 2.0
|
11
|
+
actionpack (7.0.0)
|
12
|
+
actionview (= 7.0.0)
|
13
|
+
activesupport (= 7.0.0)
|
14
|
+
rack (~> 2.0, >= 2.2.0)
|
15
15
|
rack-test (>= 0.6.3)
|
16
16
|
rails-dom-testing (~> 2.0)
|
17
17
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
18
|
-
actionview (
|
19
|
-
activesupport (=
|
18
|
+
actionview (7.0.0)
|
19
|
+
activesupport (= 7.0.0)
|
20
20
|
builder (~> 3.1)
|
21
21
|
erubi (~> 1.4)
|
22
22
|
rails-dom-testing (~> 2.0)
|
23
23
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
24
|
-
activesupport (
|
24
|
+
activesupport (7.0.0)
|
25
25
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
26
26
|
i18n (>= 1.6, < 2)
|
27
27
|
minitest (>= 5.1)
|
28
28
|
tzinfo (~> 2.0)
|
29
|
-
|
30
|
-
addressable (2.7.0)
|
29
|
+
addressable (2.8.0)
|
31
30
|
public_suffix (>= 2.0.2, < 5.0)
|
32
|
-
ast (2.4.
|
33
|
-
awesome_print (1.
|
31
|
+
ast (2.4.2)
|
32
|
+
awesome_print (1.9.2)
|
34
33
|
builder (3.2.4)
|
35
|
-
concurrent-ruby (1.1.
|
34
|
+
concurrent-ruby (1.1.9)
|
36
35
|
crack (0.4.5)
|
37
36
|
rexml
|
38
37
|
crass (1.0.6)
|
39
38
|
erubi (1.10.0)
|
40
39
|
hashdiff (1.0.1)
|
41
|
-
i18n (1.8.
|
40
|
+
i18n (1.8.11)
|
42
41
|
concurrent-ruby (~> 1.0)
|
43
|
-
loofah (2.
|
42
|
+
loofah (2.13.0)
|
44
43
|
crass (~> 1.0.2)
|
45
44
|
nokogiri (>= 1.5.9)
|
46
45
|
method_source (1.0.0)
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
parser (3.0.0.0)
|
46
|
+
minitest (5.15.0)
|
47
|
+
nokogiri (1.12.5-arm64-darwin)
|
48
|
+
racc (~> 1.4)
|
49
|
+
parallel (1.21.0)
|
50
|
+
parser (3.0.3.2)
|
53
51
|
ast (~> 2.4.1)
|
54
52
|
public_suffix (4.0.6)
|
53
|
+
racc (1.6.0)
|
55
54
|
rack (2.2.3)
|
56
55
|
rack-test (1.1.0)
|
57
56
|
rack (>= 1.0, < 3)
|
58
57
|
rails-dom-testing (2.0.3)
|
59
58
|
activesupport (>= 4.2.0)
|
60
59
|
nokogiri (>= 1.6)
|
61
|
-
rails-html-sanitizer (1.
|
60
|
+
rails-html-sanitizer (1.4.2)
|
62
61
|
loofah (~> 2.3)
|
63
|
-
railties (
|
64
|
-
actionpack (=
|
65
|
-
activesupport (=
|
62
|
+
railties (7.0.0)
|
63
|
+
actionpack (= 7.0.0)
|
64
|
+
activesupport (= 7.0.0)
|
66
65
|
method_source
|
67
|
-
rake (>=
|
66
|
+
rake (>= 12.2)
|
68
67
|
thor (~> 1.0)
|
68
|
+
zeitwerk (~> 2.5)
|
69
69
|
rainbow (3.0.0)
|
70
70
|
rake (12.3.3)
|
71
|
-
regexp_parser (2.0
|
72
|
-
rexml (3.2.
|
73
|
-
rubocop (1.
|
71
|
+
regexp_parser (2.2.0)
|
72
|
+
rexml (3.2.5)
|
73
|
+
rubocop (1.23.0)
|
74
74
|
parallel (~> 1.10)
|
75
|
-
parser (>=
|
75
|
+
parser (>= 3.0.0.0)
|
76
76
|
rainbow (>= 2.2.2, < 4.0)
|
77
77
|
regexp_parser (>= 1.8, < 3.0)
|
78
78
|
rexml
|
79
|
-
rubocop-ast (>= 1.
|
79
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
80
80
|
ruby-progressbar (~> 1.7)
|
81
|
-
unicode-display_width (>= 1.4.0, <
|
82
|
-
rubocop-ast (1.
|
83
|
-
parser (>=
|
84
|
-
rubocop-minitest (0.
|
85
|
-
rubocop (>= 0.
|
86
|
-
rubocop-performance (1.
|
87
|
-
rubocop (>=
|
81
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
82
|
+
rubocop-ast (1.15.0)
|
83
|
+
parser (>= 3.0.1.1)
|
84
|
+
rubocop-minitest (0.17.0)
|
85
|
+
rubocop (>= 0.90, < 2.0)
|
86
|
+
rubocop-performance (1.12.0)
|
87
|
+
rubocop (>= 1.7.0, < 2.0)
|
88
88
|
rubocop-ast (>= 0.4.0)
|
89
|
-
rubocop-rails (2.
|
89
|
+
rubocop-rails (2.12.4)
|
90
90
|
activesupport (>= 4.2.0)
|
91
91
|
rack (>= 1.1)
|
92
|
-
rubocop (>=
|
93
|
-
rubocop-rake (0.
|
94
|
-
rubocop
|
92
|
+
rubocop (>= 1.7.0, < 2.0)
|
93
|
+
rubocop-rake (0.6.0)
|
94
|
+
rubocop (~> 1.0)
|
95
95
|
rubocop-standard (5.1.2)
|
96
96
|
rubocop
|
97
97
|
rubocop-minitest
|
@@ -99,15 +99,15 @@ GEM
|
|
99
99
|
rubocop-rails
|
100
100
|
rubocop-rake
|
101
101
|
ruby-progressbar (1.11.0)
|
102
|
-
thor (1.0
|
102
|
+
thor (1.1.0)
|
103
103
|
tzinfo (2.0.4)
|
104
104
|
concurrent-ruby (~> 1.0)
|
105
|
-
unicode-display_width (1.
|
106
|
-
webmock (3.
|
107
|
-
addressable (>= 2.
|
105
|
+
unicode-display_width (2.1.0)
|
106
|
+
webmock (3.14.0)
|
107
|
+
addressable (>= 2.8.0)
|
108
108
|
crack (>= 0.3.2)
|
109
109
|
hashdiff (>= 0.4.0, < 2.0.0)
|
110
|
-
zeitwerk (2.
|
110
|
+
zeitwerk (2.5.1)
|
111
111
|
|
112
112
|
PLATFORMS
|
113
113
|
ruby
|
@@ -123,4 +123,4 @@ DEPENDENCIES
|
|
123
123
|
webmock (~> 3.11)
|
124
124
|
|
125
125
|
BUNDLED WITH
|
126
|
-
2.
|
126
|
+
2.2.33
|
@@ -21,7 +21,7 @@ module SlackWebhookLogger
|
|
21
21
|
'🪵 *Logger*'
|
22
22
|
end
|
23
23
|
|
24
|
-
title = "#{heading} (#{time})"
|
24
|
+
title = "#{heading} (#{time}) [#{ENV['RAILS_ENV']}]"
|
25
25
|
|
26
26
|
text = <<~MSG
|
27
27
|
#{msg2str(msg)}
|
@@ -52,8 +52,8 @@ module SlackWebhookLogger
|
|
52
52
|
{
|
53
53
|
type: 'section',
|
54
54
|
text: {
|
55
|
-
|
56
|
-
|
55
|
+
type: 'plain_text',
|
56
|
+
text: text
|
57
57
|
}
|
58
58
|
}
|
59
59
|
]
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'A slim wrapper for posting to Rails logs to Slack'
|
12
12
|
spec.homepage = 'https://github.com/gjtorikian/slack_webhook_logger'
|
13
13
|
spec.license = 'MIT'
|
14
|
-
spec.required_ruby_version = Gem::Requirement.new('~>
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new('~> 3.0')
|
15
15
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
17
|
spec.metadata['source_code_uri'] = spec.homepage
|
@@ -24,6 +24,9 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
|
-
spec.add_dependency 'activesupport', '>= 5.0', '<
|
28
|
-
spec.add_dependency 'railties', '>= 5.0', '<
|
27
|
+
spec.add_dependency 'activesupport', '>= 5.0', '< 8.0'
|
28
|
+
spec.add_dependency 'railties', '>= 5.0', '< 8.0' # for the generators
|
29
|
+
spec.metadata = {
|
30
|
+
'rubygems_mfa_required' => 'true'
|
31
|
+
}
|
29
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack_webhook_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: railties
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '5.0'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '8.0'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '5.0'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '8.0'
|
53
53
|
description:
|
54
54
|
email:
|
55
55
|
- gjtorikian@gmail.com
|
@@ -82,8 +82,7 @@ homepage: https://github.com/gjtorikian/slack_webhook_logger
|
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
84
|
metadata:
|
85
|
-
|
86
|
-
source_code_uri: https://github.com/gjtorikian/slack_webhook_logger
|
85
|
+
rubygems_mfa_required: 'true'
|
87
86
|
post_install_message:
|
88
87
|
rdoc_options: []
|
89
88
|
require_paths:
|
@@ -92,14 +91,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
91
|
requirements:
|
93
92
|
- - "~>"
|
94
93
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
94
|
+
version: '3.0'
|
96
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
96
|
requirements:
|
98
97
|
- - ">="
|
99
98
|
- !ruby/object:Gem::Version
|
100
99
|
version: '0'
|
101
100
|
requirements: []
|
102
|
-
rubygems_version: 3.
|
101
|
+
rubygems_version: 3.2.33
|
103
102
|
signing_key:
|
104
103
|
specification_version: 4
|
105
104
|
summary: A slim wrapper for posting to Rails logs to Slack
|