ambient_spec 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +5 -5
  2. data/CODE_OF_CONDUCT.md +70 -7
  3. data/README.md +16 -18
  4. data/ambient_spec.gemspec +3 -5
  5. data/lib/ambient_spec.rb +3 -14
  6. data/lib/ambient_spec/ambient_documentation_formatter.rb +23 -0
  7. data/lib/ambient_spec/ambient_progress_formatter.rb +23 -0
  8. data/lib/ambient_spec/player.rb +5 -5
  9. data/lib/ambient_spec/sounds/breathy/a.wav +0 -0
  10. data/lib/ambient_spec/sounds/breathy/c.wav +0 -0
  11. data/lib/ambient_spec/sounds/breathy/d.wav +0 -0
  12. data/lib/ambient_spec/sounds/breathy/e.wav +0 -0
  13. data/lib/ambient_spec/sounds/breathy/f.wav +0 -0
  14. data/lib/ambient_spec/sounds/breathy/g.wav +0 -0
  15. data/lib/ambient_spec/sounds/dark/a.wav +0 -0
  16. data/lib/ambient_spec/sounds/dark/c.wav +0 -0
  17. data/lib/ambient_spec/sounds/dark/d.wav +0 -0
  18. data/lib/ambient_spec/sounds/dark/e.wav +0 -0
  19. data/lib/ambient_spec/sounds/dark/f.wav +0 -0
  20. data/lib/ambient_spec/sounds/dark/g.wav +0 -0
  21. data/lib/ambient_spec/sounds/failure/failure.wav +0 -0
  22. data/lib/ambient_spec/sounds/ghost/a.wav +0 -0
  23. data/lib/ambient_spec/sounds/ghost/c.wav +0 -0
  24. data/lib/ambient_spec/sounds/ghost/d.wav +0 -0
  25. data/lib/ambient_spec/sounds/ghost/e.wav +0 -0
  26. data/lib/ambient_spec/sounds/ghost/f.wav +0 -0
  27. data/lib/ambient_spec/sounds/ghost/g.wav +0 -0
  28. data/lib/ambient_spec/sounds/harp/a.wav +0 -0
  29. data/lib/ambient_spec/sounds/harp/c.wav +0 -0
  30. data/lib/ambient_spec/sounds/harp/d.wav +0 -0
  31. data/lib/ambient_spec/sounds/harp/e.wav +0 -0
  32. data/lib/ambient_spec/sounds/harp/f.wav +0 -0
  33. data/lib/ambient_spec/sounds/harp/g.wav +0 -0
  34. data/lib/ambient_spec/sounds/piano/a.wav +0 -0
  35. data/lib/ambient_spec/sounds/piano/c.wav +0 -0
  36. data/lib/ambient_spec/sounds/piano/d.wav +0 -0
  37. data/lib/ambient_spec/sounds/piano/e.wav +0 -0
  38. data/lib/ambient_spec/sounds/piano/f.wav +0 -0
  39. data/lib/ambient_spec/sounds/piano/g.wav +0 -0
  40. data/lib/ambient_spec/sounds/plasma/a.wav +0 -0
  41. data/lib/ambient_spec/sounds/plasma/c.wav +0 -0
  42. data/lib/ambient_spec/sounds/plasma/d.wav +0 -0
  43. data/lib/ambient_spec/sounds/plasma/e.wav +0 -0
  44. data/lib/ambient_spec/sounds/plasma/f.wav +0 -0
  45. data/lib/ambient_spec/sounds/plasma/g.wav +0 -0
  46. data/lib/ambient_spec/sounds/swirl/a.wav +0 -0
  47. data/lib/ambient_spec/sounds/swirl/c.wav +0 -0
  48. data/lib/ambient_spec/sounds/swirl/d.wav +0 -0
  49. data/lib/ambient_spec/sounds/swirl/e.wav +0 -0
  50. data/lib/ambient_spec/sounds/swirl/f.wav +0 -0
  51. data/lib/ambient_spec/sounds/swirl/g.wav +0 -0
  52. data/lib/ambient_spec/sounds/waves/a.wav +0 -0
  53. data/lib/ambient_spec/sounds/waves/c.wav +0 -0
  54. data/lib/ambient_spec/sounds/waves/d.wav +0 -0
  55. data/lib/ambient_spec/sounds/waves/e.wav +0 -0
  56. data/lib/ambient_spec/sounds/waves/f.wav +0 -0
  57. data/lib/ambient_spec/sounds/waves/g.wav +0 -0
  58. data/lib/ambient_spec/version.rb +1 -1
  59. metadata +64 -44
  60. data/lib/ambient_spec/configure.rb +0 -21
  61. data/lib/ambient_spec/sounds/drip/a.wav +0 -0
  62. data/lib/ambient_spec/sounds/drip/b.wav +0 -0
  63. data/lib/ambient_spec/sounds/drip/c.wav +0 -0
  64. data/lib/ambient_spec/sounds/drip/d.wav +0 -0
  65. data/lib/ambient_spec/sounds/drip/e.wav +0 -0
  66. data/lib/ambient_spec/sounds/drip/f.wav +0 -0
  67. data/lib/ambient_spec/sounds/drip/g.wav +0 -0
  68. data/lib/ambient_spec/sounds/gong/a.wav +0 -0
  69. data/lib/ambient_spec/sounds/gong/b.wav +0 -0
  70. data/lib/ambient_spec/sounds/gong/c.wav +0 -0
  71. data/lib/ambient_spec/sounds/gong/d.wav +0 -0
  72. data/lib/ambient_spec/sounds/gong/e.wav +0 -0
  73. data/lib/ambient_spec/sounds/gong/f.wav +0 -0
  74. data/lib/ambient_spec/sounds/gong/g.wav +0 -0
  75. data/lib/ambient_spec/sounds/rain/a.wav +0 -0
  76. data/lib/ambient_spec/sounds/rain/b.wav +0 -0
  77. data/lib/ambient_spec/sounds/rain/c.wav +0 -0
  78. data/lib/ambient_spec/sounds/rain/d.wav +0 -0
  79. data/lib/ambient_spec/sounds/rain/e.wav +0 -0
  80. data/lib/ambient_spec/sounds/rain/f.wav +0 -0
  81. data/lib/ambient_spec/sounds/rain/g.wav +0 -0
  82. data/lib/ambient_spec/sounds/rain_2/a.wav +0 -0
  83. data/lib/ambient_spec/sounds/rain_2/b.wav +0 -0
  84. data/lib/ambient_spec/sounds/rain_2/c.wav +0 -0
  85. data/lib/ambient_spec/sounds/rain_2/d.wav +0 -0
  86. data/lib/ambient_spec/sounds/rain_2/e.wav +0 -0
  87. data/lib/ambient_spec/sounds/rain_2/f.wav +0 -0
  88. data/lib/ambient_spec/sounds/rain_2/g.wav +0 -0
  89. data/lib/minitest/ambient_plugin.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e97ba52e85c3d676bd65245feba45ca225270079
4
- data.tar.gz: 98cc844901ef029cfe0bfb7927d39540e54907f1
2
+ SHA256:
3
+ metadata.gz: 117ede017b3a0e4d104161091ba7176b73a47a1b9af079a368f76f753ee240f1
4
+ data.tar.gz: d6d03ec86aa6ca2a354f3896aaad551a2d1800aeacda1a884b10e3b689c0e1bd
5
5
  SHA512:
6
- metadata.gz: e09c821c91588b4abf4c24067c606d535d35fd10ac92bbbe04a46ca1b9faad1d40e076dedb3d8654b8fc5138bea9b8135c593987eefe4a3a66d29806d793a839
7
- data.tar.gz: b3af02b58f749758a61d42d629721d0886bc7e76ea242da0ef6fb2769fcf879b7cc0bd935f0c7ca94b536a0ce83d5c70f9c15787d22f05667732066ef6006cb1
6
+ metadata.gz: 832f2a558f66e0ee21257daf5ff746050c759c247e4e2e85b1984fe049e993001a2c75d4b27eb778cbcd7759c4bbeaef6ebf020cf7a74bb34efb4e09d0cafaae
7
+ data.tar.gz: 6b97aaec1e434b83363ca9f8adda758e5014ed4ce0250f30f2fb4dd060cebc6255b94f3ef5155b12db193b9491854137a70886ec81ae501014183ee4b6c56e83
@@ -1,13 +1,76 @@
1
- # Contributor Code of Conduct
1
+ # Contributor Covenant Code of Conduct
2
2
 
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
3
+ ## Our Pledge
4
4
 
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
6
11
 
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
12
+ ## Our Standards
8
13
 
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
10
16
 
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
12
22
 
13
- This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies within all project spaces, and it also applies when
49
+ an individual is representing the project or its community in public spaces.
50
+ Examples of representing a project or community include using an official
51
+ project e-mail address, posting via an official social media account, or acting
52
+ as an appointed representative at an online or offline event. Representation of
53
+ a project may be further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the maintainer at coraline@idolhands.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
data/README.md CHANGED
@@ -1,14 +1,10 @@
1
1
  # AmbientSpec
2
2
 
3
- AmbientSpec turns your long-running RSpec or Minitest specs into ambient music. Sweet sounds come from
4
- passing examples, and gongs signal failing tests.
5
-
6
- (Note that you won't hear anything unless your test suite run is longer than 5 seconds. Silence is
7
- the most pleasing sound of all.)
3
+ AmbientSpec turns your RSpec specs into ambient music. Sweet sounds come from passing examples, and a gong signals a failing spec.
8
4
 
9
5
  ## Dependencies
10
6
 
11
- Requires RSpec 3.x. or Minitest.
7
+ Requires RSpec 3.x and only runs on Mac OS (sorry!)
12
8
 
13
9
  ## Installation
14
10
 
@@ -20,22 +16,24 @@ And then execute:
20
16
 
21
17
  $ bundle
22
18
 
23
- Or install it yourself as:
19
+ ## Command-line Usage
24
20
 
25
- $ gem install ambient_spec
21
+ For documentation-style formatting:
26
22
 
27
- ## Usage
23
+ rspec -r ambient_spec -f AmbientDocumentationFormatter spec/
28
24
 
29
- Simply run your tests as you normally would.
25
+ For progress-style formatting:
30
26
 
31
- To disable AmbientSpec, set `ENV['AMBIENT_SPEC_DISABLED']=true`
27
+ rspec -r ambient_spec -f AmbientProgressFormatter spec/
32
28
 
33
- ## Contributing
29
+ Or best of all, in your `.rspec` file in your project root:
34
30
 
35
- Please note that this project is released with a [Contributor Code of Conduct](https://raw.githubusercontent.com/Bantik/ambient_spec/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
31
+ ```
32
+ --require spec_helper
33
+ --require ambient_spec
34
+ --format AmbientDocumentationFormatter
35
+ ```
36
+
37
+ ## Contributing
36
38
 
37
- 1. Fork it
38
- 2. Create your feature branch (`git checkout -b my-new-feature`)
39
- 3. Commit your changes (`git commit -am 'Add some feature'`)
40
- 4. Push to the branch (`git push origin my-new-feature`)
41
- 5. Create a new Pull Request
39
+ Please note that this project adheres to the [Contributor Covenant Code of Conduct](https://raw.githubusercontent.com/CoralineAda/ambient_spec/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
@@ -18,10 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.6"
22
- spec.add_development_dependency "rake"
21
+ spec.add_development_dependency "bundler", "~> 2.0"
22
+ spec.add_development_dependency "rake", "~> 12.0"
23
23
  spec.add_dependency "wavefile", "=0.6.0"
24
-
25
- spec.add_dependency "minitest"
26
-
24
+ spec.add_dependency "rspec-core", "~> 3.0"
27
25
  end
@@ -1,19 +1,8 @@
1
- if defined?(RSpec)
2
- require "rspec/core"
3
- end
4
-
1
+ require "rspec/core"
5
2
  require "ambient_spec/version"
6
3
  require "ambient_spec/player"
7
- require "ambient_spec/configure"
4
+ require "ambient_spec/ambient_progress_formatter"
5
+ require "ambient_spec/ambient_documentation_formatter"
8
6
 
9
7
  module AmbientSpec
10
-
11
- unless ENV['AMBIENT_SPEC_DISABLED']
12
-
13
- if defined?(RSpec)
14
- AmbientSpec::Configure.new.rspec
15
- end
16
-
17
- end
18
-
19
8
  end
@@ -0,0 +1,23 @@
1
+ require "rspec/core/formatters/base_text_formatter"
2
+
3
+ class AmbientDocumentationFormatter < RSpec::Core::Formatters::DocumentationFormatter
4
+
5
+ RSpec::Core::Formatters.register self, :example_passed, :example_failed
6
+
7
+ def example_passed(_)
8
+ player.sing(:pass)
9
+ super
10
+ end
11
+
12
+ def example_failed(_)
13
+ player.sing(:fail)
14
+ super
15
+ end
16
+
17
+ private
18
+
19
+ def player
20
+ @player ||= AmbientSpec::Player.new
21
+ end
22
+
23
+ end
@@ -0,0 +1,23 @@
1
+ require "rspec/core/formatters/base_text_formatter"
2
+
3
+ class AmbientProgressFormatter < RSpec::Core::Formatters::ProgressFormatter
4
+
5
+ RSpec::Core::Formatters.register self, :example_passed, :example_failed
6
+
7
+ def example_passed(_)
8
+ player.sing(:pass)
9
+ super
10
+ end
11
+
12
+ def example_failed(_)
13
+ player.sing(:fail)
14
+ super
15
+ end
16
+
17
+ private
18
+
19
+ def player
20
+ @player ||= AmbientSpec::Player.new
21
+ end
22
+
23
+ end
@@ -12,14 +12,14 @@ module AmbientSpec
12
12
 
13
13
  def sing(status=:pass)
14
14
  increment_counter
15
- return unless counter % 10 == 1 || status == :fail
15
+ # return unless counter % 3 == 1 || status == :fail
16
16
  if status == :pass
17
- folder = ["rain", "rain", "rain_2", "drip"].sample
17
+ folder = %w{breathy dark ghost harp piano plasma swirl waves}.sample
18
+ filename = fifths.sample
19
+ system("afplay #{path_to_files}/#{folder}/#{filename}.wav &>/dev/null &")
18
20
  else
19
- folder = "gong"
21
+ system("afplay #{path_to_files}/failure/failure.wav &>/dev/null &")
20
22
  end
21
- filename = fifths.sample
22
- system("afplay #{path_to_files}/#{folder}/#{filename}.wav &")
23
23
  end
24
24
 
25
25
  def increment_counter
@@ -1,3 +1,3 @@
1
1
  module AmbientSpec
2
- VERSION = "1.0.0"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ambient_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coraline Ada Ehmke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-08 00:00:00.000000000 Z
11
+ date: 2019-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '12.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '12.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: wavefile
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.6.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest
56
+ name: rspec-core
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '3.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '3.0'
69
69
  description: ''
70
70
  email:
71
71
  - coraline@idolhands.com
@@ -81,39 +81,59 @@ files:
81
81
  - Rakefile
82
82
  - ambient_spec.gemspec
83
83
  - lib/ambient_spec.rb
84
- - lib/ambient_spec/configure.rb
84
+ - lib/ambient_spec/ambient_documentation_formatter.rb
85
+ - lib/ambient_spec/ambient_progress_formatter.rb
85
86
  - lib/ambient_spec/player.rb
86
- - lib/ambient_spec/sounds/drip/a.wav
87
- - lib/ambient_spec/sounds/drip/b.wav
88
- - lib/ambient_spec/sounds/drip/c.wav
89
- - lib/ambient_spec/sounds/drip/d.wav
90
- - lib/ambient_spec/sounds/drip/e.wav
91
- - lib/ambient_spec/sounds/drip/f.wav
92
- - lib/ambient_spec/sounds/drip/g.wav
87
+ - lib/ambient_spec/sounds/breathy/a.wav
88
+ - lib/ambient_spec/sounds/breathy/c.wav
89
+ - lib/ambient_spec/sounds/breathy/d.wav
90
+ - lib/ambient_spec/sounds/breathy/e.wav
91
+ - lib/ambient_spec/sounds/breathy/f.wav
92
+ - lib/ambient_spec/sounds/breathy/g.wav
93
+ - lib/ambient_spec/sounds/dark/a.wav
94
+ - lib/ambient_spec/sounds/dark/c.wav
95
+ - lib/ambient_spec/sounds/dark/d.wav
96
+ - lib/ambient_spec/sounds/dark/e.wav
97
+ - lib/ambient_spec/sounds/dark/f.wav
98
+ - lib/ambient_spec/sounds/dark/g.wav
93
99
  - lib/ambient_spec/sounds/failure/failure.wav
94
- - lib/ambient_spec/sounds/gong/a.wav
95
- - lib/ambient_spec/sounds/gong/b.wav
96
- - lib/ambient_spec/sounds/gong/c.wav
97
- - lib/ambient_spec/sounds/gong/d.wav
98
- - lib/ambient_spec/sounds/gong/e.wav
99
- - lib/ambient_spec/sounds/gong/f.wav
100
- - lib/ambient_spec/sounds/gong/g.wav
101
- - lib/ambient_spec/sounds/rain/a.wav
102
- - lib/ambient_spec/sounds/rain/b.wav
103
- - lib/ambient_spec/sounds/rain/c.wav
104
- - lib/ambient_spec/sounds/rain/d.wav
105
- - lib/ambient_spec/sounds/rain/e.wav
106
- - lib/ambient_spec/sounds/rain/f.wav
107
- - lib/ambient_spec/sounds/rain/g.wav
108
- - lib/ambient_spec/sounds/rain_2/a.wav
109
- - lib/ambient_spec/sounds/rain_2/b.wav
110
- - lib/ambient_spec/sounds/rain_2/c.wav
111
- - lib/ambient_spec/sounds/rain_2/d.wav
112
- - lib/ambient_spec/sounds/rain_2/e.wav
113
- - lib/ambient_spec/sounds/rain_2/f.wav
114
- - lib/ambient_spec/sounds/rain_2/g.wav
100
+ - lib/ambient_spec/sounds/ghost/a.wav
101
+ - lib/ambient_spec/sounds/ghost/c.wav
102
+ - lib/ambient_spec/sounds/ghost/d.wav
103
+ - lib/ambient_spec/sounds/ghost/e.wav
104
+ - lib/ambient_spec/sounds/ghost/f.wav
105
+ - lib/ambient_spec/sounds/ghost/g.wav
106
+ - lib/ambient_spec/sounds/harp/a.wav
107
+ - lib/ambient_spec/sounds/harp/c.wav
108
+ - lib/ambient_spec/sounds/harp/d.wav
109
+ - lib/ambient_spec/sounds/harp/e.wav
110
+ - lib/ambient_spec/sounds/harp/f.wav
111
+ - lib/ambient_spec/sounds/harp/g.wav
112
+ - lib/ambient_spec/sounds/piano/a.wav
113
+ - lib/ambient_spec/sounds/piano/c.wav
114
+ - lib/ambient_spec/sounds/piano/d.wav
115
+ - lib/ambient_spec/sounds/piano/e.wav
116
+ - lib/ambient_spec/sounds/piano/f.wav
117
+ - lib/ambient_spec/sounds/piano/g.wav
118
+ - lib/ambient_spec/sounds/plasma/a.wav
119
+ - lib/ambient_spec/sounds/plasma/c.wav
120
+ - lib/ambient_spec/sounds/plasma/d.wav
121
+ - lib/ambient_spec/sounds/plasma/e.wav
122
+ - lib/ambient_spec/sounds/plasma/f.wav
123
+ - lib/ambient_spec/sounds/plasma/g.wav
124
+ - lib/ambient_spec/sounds/swirl/a.wav
125
+ - lib/ambient_spec/sounds/swirl/c.wav
126
+ - lib/ambient_spec/sounds/swirl/d.wav
127
+ - lib/ambient_spec/sounds/swirl/e.wav
128
+ - lib/ambient_spec/sounds/swirl/f.wav
129
+ - lib/ambient_spec/sounds/swirl/g.wav
130
+ - lib/ambient_spec/sounds/waves/a.wav
131
+ - lib/ambient_spec/sounds/waves/c.wav
132
+ - lib/ambient_spec/sounds/waves/d.wav
133
+ - lib/ambient_spec/sounds/waves/e.wav
134
+ - lib/ambient_spec/sounds/waves/f.wav
135
+ - lib/ambient_spec/sounds/waves/g.wav
115
136
  - lib/ambient_spec/version.rb
116
- - lib/minitest/ambient_plugin.rb
117
137
  homepage: https://github.com/CoralineAda/ambient_spec
118
138
  licenses:
119
139
  - MIT
@@ -134,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
154
  version: '0'
135
155
  requirements: []
136
156
  rubyforge_project:
137
- rubygems_version: 2.2.2
157
+ rubygems_version: 2.7.8
138
158
  signing_key:
139
159
  specification_version: 4
140
160
  summary: Creates an ambient soundscape for your test suite.
@@ -1,21 +0,0 @@
1
- if defined?(RSpec)
2
- require "rspec/core"
3
- end
4
-
5
- module AmbientSpec
6
-
7
- class Configure
8
-
9
- def rspec
10
- ::RSpec.configure do |config|
11
- player = AmbientSpec::Player.new
12
- config.after(:each) do |example|
13
- flag = example.exception ? :fail : :pass
14
- player.sing(flag)
15
- end
16
- end
17
- end
18
-
19
- end
20
-
21
- end
@@ -1,14 +0,0 @@
1
- module Minitest
2
- def self.plugin_ambient_init options
3
- self.reporter << AmbientReporter.new
4
- end
5
- end
6
-
7
- class AmbientReporter < Minitest::Reporter
8
- def record result
9
- player = AmbientSpec::Player.new
10
- unless ENV['AMBIENT_SPEC_DISABLED']
11
- player.sing(result)
12
- end
13
- end
14
- end