minitest-flash 0.2.0 → 0.2.2
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 +10 -0
- data/README.md +28 -22
- data/lib/minitest/flash/version.rb +1 -1
- metadata +3 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85eaa839f65e6f7fc2fe4517f6940016d4088779020a775429de4236812c4422
|
|
4
|
+
data.tar.gz: 9ed786be7541300b9aeefb83ebd9c0a8ea20389022f55e5fb19356680e4da2b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 170145feff7baa4f0e7a8af941fb85fcfd0d684d4898e83fab43cb045ba9cb5635954d94ec08908db7bbd244242831de0281b86470b1569cf0b46747ed3d3e99
|
|
7
|
+
data.tar.gz: 2f9c18e76b795fa025f2a219d80dea51e84077d2e1c0c3ec22beaa381c8f9f72da8ab961dab6026dcda0044077e4e040a7148a6d84711b605a0af108651dabcb
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
# Minitest::Flash
|
|
7
7
|
|
|
8
|
-
Simple Minitest reporter to indicate the result of test runs in as fancy a way you like. Here's how I like it: Flash the
|
|
8
|
+
Simple Minitest reporter to indicate the result of test runs in as fancy a way you like. Here's how I like it: Flash the screen in green or red and play a short sound effect.
|
|
9
9
|
|
|
10
10
|
* [Homepage](https://github.com/svoop/minitest-flash)
|
|
11
11
|
* Author: [Sven Schwyn - Bitcetera](https://bitcetera.com)
|
|
@@ -45,53 +45,59 @@ Other people might work on the same code and prefer not use `minitest-flash`. Th
|
|
|
45
45
|
|
|
46
46
|
## Example
|
|
47
47
|
|
|
48
|
-
I'm on macOS and like things to be as obvious and unobtrusive as possible: Flash the
|
|
48
|
+
I'm on macOS and like things to be as obvious and unobtrusive as possible: Flash the screen border either in green or red and optionally play a sound effect.
|
|
49
49
|
|
|
50
|
-

|
|
51
51
|
|
|
52
52
|
Here's what my `/usr/local/bin/minitest-flash` executable looks like:
|
|
53
53
|
|
|
54
54
|
```zsh
|
|
55
55
|
#!/bin/zsh
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
typeset -A flash_args
|
|
58
|
+
flash_args=(
|
|
59
|
+
[green]="0 200 0 8 2"
|
|
60
|
+
[red]="200 0 0 8 2"
|
|
61
|
+
)
|
|
60
62
|
|
|
61
|
-
if [ -z "$
|
|
62
|
-
|
|
63
|
+
if [ -z "$MINITEST_NO_FLASH" ]; then
|
|
64
|
+
border-flash ${=flash_args[$1]} &
|
|
63
65
|
fi
|
|
64
66
|
|
|
65
|
-
|
|
66
|
-
$0.d
|
|
67
|
-
|
|
68
|
-
done
|
|
67
|
+
if [ -z "$MINITEST_NO_SOUND" ]; then
|
|
68
|
+
mpg123 $0.d/$1.mp3 2>/dev/null &
|
|
69
|
+
fi
|
|
69
70
|
```
|
|
70
71
|
|
|
71
|
-
As you see, the sound effects can easily be muted with:
|
|
72
|
+
As you see, the sound or flash effects can easily be muted with:
|
|
72
73
|
|
|
73
74
|
```zsh
|
|
74
|
-
export
|
|
75
|
+
export MINITEST_NO_FLASH=1
|
|
76
|
+
export MINITEST_NO_SOUND=1
|
|
75
77
|
```
|
|
76
78
|
|
|
77
|
-
For the above to work, you have to install
|
|
79
|
+
For the above to work, you have to install the following additional tools and files.
|
|
80
|
+
|
|
81
|
+
### border-flash
|
|
82
|
+
|
|
83
|
+
Follow the simple install instructions of [border-flash](https://github.com/svoop/border-flash).
|
|
84
|
+
|
|
85
|
+
### mpg123
|
|
86
|
+
|
|
87
|
+
This is easiest installed through [Homebrew](https://brew.sh/):
|
|
78
88
|
|
|
79
89
|
```zsh
|
|
80
90
|
brew install mpg123
|
|
81
91
|
```
|
|
82
92
|
|
|
83
|
-
|
|
93
|
+
The sound files are also necessary:
|
|
84
94
|
|
|
85
95
|
```zsh
|
|
86
96
|
sudo mkdir /usr/local/bin/minitest-flash.d
|
|
97
|
+
sudo wget -P /usr/local/bin/minitest-flash.d/green.mp3 https://github.com/svoop/minitest-flash/raw/main/doc/green.mp3
|
|
98
|
+
sudo wget -O /usr/local/bin/minitest-flash.d/red.mp3 https://github.com/svoop/minitest-flash/raw/main/doc/red.mp3
|
|
87
99
|
```
|
|
88
100
|
|
|
89
|
-
In there you have to put three files:
|
|
90
|
-
|
|
91
|
-
* the latest binary release of [ChangeMenuBarColor](https://github.com/igorkulman/ChangeMenuBarColor)
|
|
92
|
-
* a [sound file `green.mp3`](https://github.com/svoop/minitest-flash/raw/main/doc/green.mp3) for successful runs
|
|
93
|
-
* a [sound file `red.mp3`](https://github.com/svoop/minitest-flash/raw/main/doc/red.mp3) for failed or errored runs
|
|
94
|
-
|
|
95
101
|
## Development
|
|
96
102
|
|
|
97
103
|
To install the development dependencies and then run the test suite:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitest-flash
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sven Schwyn
|
|
@@ -65,20 +65,6 @@ dependencies:
|
|
|
65
65
|
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '0'
|
|
68
|
-
- !ruby/object:Gem::Dependency
|
|
69
|
-
name: minitest-focus
|
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
|
71
|
-
requirements:
|
|
72
|
-
- - ">="
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
version: '0'
|
|
75
|
-
type: :development
|
|
76
|
-
prerelease: false
|
|
77
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - ">="
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '0'
|
|
82
68
|
- !ruby/object:Gem::Dependency
|
|
83
69
|
name: guard
|
|
84
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -151,6 +137,7 @@ metadata:
|
|
|
151
137
|
source_code_uri: https://github.com/svoop/minitest-flash
|
|
152
138
|
documentation_uri: https://www.rubydoc.info/gems/minitest-flash
|
|
153
139
|
bug_tracker_uri: https://github.com/svoop/minitest-flash/issues
|
|
140
|
+
rubygems_mfa_required: 'true'
|
|
154
141
|
rdoc_options:
|
|
155
142
|
- "--title"
|
|
156
143
|
- Minitest::Flash
|
|
@@ -172,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
172
159
|
- !ruby/object:Gem::Version
|
|
173
160
|
version: '0'
|
|
174
161
|
requirements: []
|
|
175
|
-
rubygems_version:
|
|
162
|
+
rubygems_version: 4.0.6
|
|
176
163
|
specification_version: 4
|
|
177
164
|
summary: Simple Minitest reporter to indicate the result of test runs in as fancy
|
|
178
165
|
a way you like
|