minitest-sound 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/minitest/sound/player.rb +17 -3
- data/lib/minitest/sound/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 369523911f59bbef19dcaaaba4691aa6c5f90ffc
|
4
|
+
data.tar.gz: 0cb98c2127720970f7f3dd7eee0e2bb7feec4c10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21d1e4824007222350476d5b6b1a7f80a7c1295f240a224bf61cdf3bc7a6e01daab35eaa5c85b5444f6095975a5afae936aea454ca2a9efc5abe90c496d938c0
|
7
|
+
data.tar.gz: b82bc9b8d4d2c98f7de7070b735f15975189b08cb1e9cc0109e1eeb1c4991e256192a1cf2e2cc30bd6c0d15c74efe089ad345556c5efce643247038893ef0d83
|
data/README.md
CHANGED
@@ -19,15 +19,15 @@ module Minitest
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def play_success_sound(sync = true)
|
22
|
-
play(file:
|
22
|
+
play(file: success_sound, sync: sync)
|
23
23
|
end
|
24
24
|
|
25
25
|
def play_failure_sound(sync = true)
|
26
|
-
play(file:
|
26
|
+
play(file: failure_sound, sync: sync)
|
27
27
|
end
|
28
28
|
|
29
29
|
def play_during_test_sound(sync = false)
|
30
|
-
@during_test_pid = play(file:
|
30
|
+
@during_test_pid = play(file: during_test_sound, sync: sync)
|
31
31
|
end
|
32
32
|
|
33
33
|
def stop_during_test_sound
|
@@ -38,6 +38,20 @@ module Minitest
|
|
38
38
|
def message
|
39
39
|
'warning: minitest-sound use "mpg123". Please install "mpg123".'
|
40
40
|
end
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
def success_sound
|
45
|
+
@success_sound || Minitest::Sound.success
|
46
|
+
end
|
47
|
+
|
48
|
+
def failure_sound
|
49
|
+
@failure_sound || Minitest::Sound.failure
|
50
|
+
end
|
51
|
+
|
52
|
+
def during_test_sound
|
53
|
+
@during_test_sound || Minitest::Sound.during_test
|
54
|
+
end
|
41
55
|
end
|
42
56
|
end
|
43
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-sound
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Yaginuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.4.5
|
104
|
+
rubygems_version: 2.4.5.1
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Play a sound when test finished
|