chat_notifier 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -14
- data/README.md +12 -0
- data/lib/chat_notifier/version.rb +1 -1
- data/lib/chat_notifier.rb +2 -2
- data/lib/minitest/chat_notifier_plugin.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb939785ca31e416e1256cd820a7609e116a9d681497a1a559f91e1e074ee158
|
4
|
+
data.tar.gz: 721d078e8cc48fa014ab9d7e3672e01a2c9917eb143d0657505cc948a505d332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59f2cf12159dc31f6ce11a66ac9dee633a072bc97b89c58c954b2ca169de6cec3959042ec77dd1b57a3991d1caf275f8f69b3917b6957bb9afda2720cf92ff48
|
7
|
+
data.tar.gz: b7190b1bf16eacaaa70dbb0c1d694335e12756097e447d06599bb87f65a37a7b25174c9ddf7363be73a44030c2db9239706caecb285ff5125dadf3ef0ab7fb8e
|
data/CHANGELOG.md
CHANGED
@@ -5,24 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
-
## [0.2.
|
8
|
+
## [0.2.3] - 2024-09-21
|
9
9
|
|
10
|
-
###
|
11
|
-
|
12
|
-
- Version and release management with reissue gem.
|
13
|
-
|
14
|
-
### Changed
|
10
|
+
### Fixed
|
15
11
|
|
16
|
-
-
|
12
|
+
- Incorrect configuration of the logger
|
17
13
|
|
18
|
-
## [0.2.
|
14
|
+
## [0.2.2] - 2024-09-05
|
19
15
|
|
20
|
-
###
|
21
|
-
|
22
|
-
- Renamed ENV variables to prefix `NOTIFY_`
|
16
|
+
### Added
|
23
17
|
|
24
|
-
|
18
|
+
- Test on ruby 3.3
|
25
19
|
|
26
|
-
###
|
20
|
+
### Fixed
|
27
21
|
|
28
|
-
-
|
22
|
+
- Load "chat_notifier" from the minitest plugin
|
data/README.md
CHANGED
@@ -76,3 +76,15 @@ namespace :chat_notifier do
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
```
|
79
|
+
|
80
|
+
## Contributing
|
81
|
+
|
82
|
+
This gem is managed with [Reissue](https://github.com/SOFware/reissue).
|
83
|
+
|
84
|
+
Releasing a new version:
|
85
|
+
|
86
|
+
```sh
|
87
|
+
rake build:checksum
|
88
|
+
rake release
|
89
|
+
git push
|
90
|
+
```
|
data/lib/chat_notifier.rb
CHANGED
@@ -11,9 +11,9 @@ module ChatNotifier
|
|
11
11
|
DebugExceptionLocation = Data.define(:location)
|
12
12
|
DebugSummary = Data.define(:failed_examples)
|
13
13
|
|
14
|
+
require "logger"
|
15
|
+
@logger = Logger.new($stdout)
|
14
16
|
class << self
|
15
|
-
require "logger"
|
16
|
-
@logger = Logger.new($stdout)
|
17
17
|
attr_accessor :logger
|
18
18
|
|
19
19
|
def app
|
@@ -1,5 +1,6 @@
|
|
1
1
|
module Minitest
|
2
2
|
def self.plugin_chat_notifier_init(options)
|
3
|
+
require "chat_notifier"
|
3
4
|
Minitest.reporter << ChatNotifierPlugin.new(options[:io], options)
|
4
5
|
end
|
5
6
|
|
@@ -8,7 +9,7 @@ module Minitest
|
|
8
9
|
Summary = Data.define(:failed_examples)
|
9
10
|
def report
|
10
11
|
summary = Summary[(results.map{ |result| ExceptionLocation[result.source_location] })]
|
11
|
-
ChatNotifier.call(summary:)
|
12
|
+
::ChatNotifier.call(summary:)
|
12
13
|
end
|
13
14
|
end
|
14
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chat_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Gay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Send test results to chat
|
15
15
|
email:
|