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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14a83383c0f6d302190c9b2278802fce719bc7d3
4
- data.tar.gz: dc2c08e7a544cd090b75613878bbeb979ac8bd8b
3
+ metadata.gz: 369523911f59bbef19dcaaaba4691aa6c5f90ffc
4
+ data.tar.gz: 0cb98c2127720970f7f3dd7eee0e2bb7feec4c10
5
5
  SHA512:
6
- metadata.gz: 68f9b17faf5130a1f93e8d6e3a657d0f91bad1f98649a039aa857198908d6111d5241dea45fd53c13d6fe9858f21c3a5b0ca6c31ac3701db519ac52c15c17210
7
- data.tar.gz: 6e98b6cdd5a0776d937a6c11f9e66bd6f09bdfdfa7259be1f38c4bb123b6c0d0a3b69cc6061cfa5bfe9c1cbe4baec464a1086b9139193681d5025202927b1deb
6
+ metadata.gz: 21d1e4824007222350476d5b6b1a7f80a7c1295f240a224bf61cdf3bc7a6e01daab35eaa5c85b5444f6095975a5afae936aea454ca2a9efc5abe90c496d938c0
7
+ data.tar.gz: b82bc9b8d4d2c98f7de7070b735f15975189b08cb1e9cc0109e1eeb1c4991e256192a1cf2e2cc30bd6c0d15c74efe089ad345556c5efce643247038893ef0d83
data/README.md CHANGED
@@ -7,7 +7,7 @@ minitest-sound plays sound when test finished.
7
7
 
8
8
  ## Requirements
9
9
 
10
- * `mpg123`
10
+ * [`mpg123`](http://www.mpg123.de/)
11
11
  * `minitest ~> 5.0`
12
12
 
13
13
  ## Installation
@@ -19,15 +19,15 @@ module Minitest
19
19
  end
20
20
 
21
21
  def play_success_sound(sync = true)
22
- play(file: @success_sound, sync: sync)
22
+ play(file: success_sound, sync: sync)
23
23
  end
24
24
 
25
25
  def play_failure_sound(sync = true)
26
- play(file: @failure_sound, sync: sync)
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: @during_test_sound, sync: sync)
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
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Sound
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  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.7
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: 2015-01-01 00:00:00.000000000 Z
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