minitest-sound 0.0.3 → 0.0.4

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: 12934feb7561da5ee853702cec670eac8eed2863
4
- data.tar.gz: 754a1a61e92e9c0e48b8c66adcb0faecc6a3dd78
3
+ metadata.gz: 104d3dad7aeabd74e19300d38177d181e95f605b
4
+ data.tar.gz: 1945980d34b6d909cb81580b5ed6b7063b5fee0d
5
5
  SHA512:
6
- metadata.gz: d887b89c9576e28225885f59165a1a6bef230987ae350c8c170d2e7a7f06a1123e0d85eee2ea9abd442b3a76ebd50dd53b94754f8231d8518a84034cdb18d51a
7
- data.tar.gz: 094ed02443bc3c74d59c96c09305afc069ec1ccfef40d3c17731d3d8076590b8664a623cae2df7d2cf92c81b82ac33ca544241f3257ec78063f82a0a2087fecf
6
+ metadata.gz: 40a6e39e4e9174031f2263d5e9352e0546a437a5ed12d28f8fa96936b4fc90ef1b1732d5b8992ec4358793f3af7ae20e671767cd2e5bc437740ab18b8bb8940c
7
+ data.tar.gz: a536a50edfce35b0a0d5160b48dd177c1d8fee88aa21ce2631c1d16a7772eceb3ecdf3b8df99fdd67467757d706ea836bc0b66308735ae4561d31a1ceb2a8433
data/README.md CHANGED
@@ -22,9 +22,26 @@ And then execute:
22
22
  ```ruby
23
23
  require 'minitest/sound'
24
24
 
25
- Minitest::Sound.success = 'xxx.mp3' # Sound file which does play when a test succeeded.
26
- Minitest::Sound.failure = 'xxx.mp3' # Sound file which does play when a test failed.
27
- Minitest::Sound.during_test = 'xxx.mp3' # Sound file which does play during test.
25
+ Minitest::Sound.success = '/aaa/bbb/xxx.mp3' # Sound file which does play when a test succeeded.
26
+ Minitest::Sound.failure = '/aaa/bbb/xxx.mp3' # Sound file which does play when a test failed.
27
+ Minitest::Sound.during_test = '/aaa/bbb/xxx.mp3' # Sound file which does play during test.
28
+ ```
29
+
30
+ ### When use with `minitest-reporters`
31
+
32
+ When use it with `minitest-reporters`, it is necessary to set `Minitest::Sound::Reporter` in `Minitest::Reporters.use!`
33
+
34
+ Example:
35
+
36
+ ```ruby
37
+ require 'minitest/sound/reporter'
38
+
39
+
40
+ Minitest::Sound.success = '/aaa/bbb/xxx.mp3'
41
+ Minitest::Sound.failure = '/aaa/bbb/xxx.mp3'
42
+ Minitest::Sound.during_test = '/aaa/bbb/xxx.mp3'
43
+
44
+ Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new, Minitest::Sound::Reporter.new]
28
45
  ```
29
46
 
30
47
  ## Contributing
@@ -21,6 +21,14 @@ module Minitest
21
21
  @player.stop_during_test_sound
22
22
  (errors == 0 && failures == 0) ? @player.play_success_sound : @player.play_failure_sound
23
23
  end
24
+
25
+
26
+ # When using the following methods together with xxx, they are required.
27
+ def add_defaults(defaults); end
28
+
29
+ def before_test(test); end
30
+
31
+ def after_test(test); end
24
32
  end
25
33
  end
26
34
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Sound
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Yaginuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-27 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest