minitest-flash 0.2.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 879e07e61886a359d88b83f626edc9fbb5e1549a3f72d2e0283ca92a943a8727
4
- data.tar.gz: 5dd990421f8036f399abb4fb300fc020a37aa97b1d275db4fb03bb49fa56d77d
3
+ metadata.gz: 85eaa839f65e6f7fc2fe4517f6940016d4088779020a775429de4236812c4422
4
+ data.tar.gz: 9ed786be7541300b9aeefb83ebd9c0a8ea20389022f55e5fb19356680e4da2b0
5
5
  SHA512:
6
- metadata.gz: a14219060222041e019cc373fde4bb33325532fc1936726cf848aa3bca74a24318bed32e0a64717aa5c9701d6a7aaa232dd43b94120bf07460587c1407c9a99d
7
- data.tar.gz: d25e6cb3bed947b0e393f3fd391101496b751567074bf170fbb02d3ce76b55f8ef5f3473e507814b704a4a67fd9408ebc646723ba3fbabe6dd4e700701666010
6
+ metadata.gz: 170145feff7baa4f0e7a8af941fb85fcfd0d684d4898e83fab43cb045ba9cb5635954d94ec08908db7bbd244242831de0281b86470b1569cf0b46747ed3d3e99
7
+ data.tar.gz: 2f9c18e76b795fa025f2a219d80dea51e84077d2e1c0c3ec22beaa381c8f9f72da8ab961dab6026dcda0044077e4e040a7148a6d84711b605a0af108651dabcb
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 0.2.2
6
+
7
+ ### Improvements
8
+ * Enforce MFA for future gem releases
9
+
5
10
  ## 0.2.1
6
11
 
7
12
  ### Changes
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 macOS menu bar in green or red and play a short and mutable sound effect.
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 menu bar either in green or red and optionally play a sound effect.
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
- ![Screenshot](https://github.com/svoop/minitest-flash/raw/main/doc/screenshot.gif)
50
+ ![example](https://github.com/svoop/minitest-flash/raw/main/doc/example.gif)
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
- declare -A colors
58
- colors[red]=bb0000
59
- colors[green]=00bb00
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 "$MINITEST_FLASH_NO_SOUND" ]; then
62
- mpg123 $0.d/$1.mp3 2>/dev/null &
63
+ if [ -z "$MINITEST_NO_FLASH" ]; then
64
+ border-flash ${=flash_args[$1]} &
63
65
  fi
64
66
 
65
- for i in {1..2}; do
66
- $0.d/ChangeMenuBarColor SolidColor "$colors[$1]" >/dev/null
67
- $0.d/ChangeMenuBarColor SolidColor "000000" >/dev/null
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 MINITEST_FLASH_NO_SOUND=1
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 `mpg123` easiest through [Homebrew](https://brew.sh/):
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
- A few support files are also necessary, let's create the directory for them:
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:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minitest
4
4
  module Flash
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
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.1
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: 4.0.3
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