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.
- checksums.yaml +5 -5
- data/CODE_OF_CONDUCT.md +70 -7
- data/README.md +16 -18
- data/ambient_spec.gemspec +3 -5
- data/lib/ambient_spec.rb +3 -14
- data/lib/ambient_spec/ambient_documentation_formatter.rb +23 -0
- data/lib/ambient_spec/ambient_progress_formatter.rb +23 -0
- data/lib/ambient_spec/player.rb +5 -5
- data/lib/ambient_spec/sounds/breathy/a.wav +0 -0
- data/lib/ambient_spec/sounds/breathy/c.wav +0 -0
- data/lib/ambient_spec/sounds/breathy/d.wav +0 -0
- data/lib/ambient_spec/sounds/breathy/e.wav +0 -0
- data/lib/ambient_spec/sounds/breathy/f.wav +0 -0
- data/lib/ambient_spec/sounds/breathy/g.wav +0 -0
- data/lib/ambient_spec/sounds/dark/a.wav +0 -0
- data/lib/ambient_spec/sounds/dark/c.wav +0 -0
- data/lib/ambient_spec/sounds/dark/d.wav +0 -0
- data/lib/ambient_spec/sounds/dark/e.wav +0 -0
- data/lib/ambient_spec/sounds/dark/f.wav +0 -0
- data/lib/ambient_spec/sounds/dark/g.wav +0 -0
- data/lib/ambient_spec/sounds/failure/failure.wav +0 -0
- data/lib/ambient_spec/sounds/ghost/a.wav +0 -0
- data/lib/ambient_spec/sounds/ghost/c.wav +0 -0
- data/lib/ambient_spec/sounds/ghost/d.wav +0 -0
- data/lib/ambient_spec/sounds/ghost/e.wav +0 -0
- data/lib/ambient_spec/sounds/ghost/f.wav +0 -0
- data/lib/ambient_spec/sounds/ghost/g.wav +0 -0
- data/lib/ambient_spec/sounds/harp/a.wav +0 -0
- data/lib/ambient_spec/sounds/harp/c.wav +0 -0
- data/lib/ambient_spec/sounds/harp/d.wav +0 -0
- data/lib/ambient_spec/sounds/harp/e.wav +0 -0
- data/lib/ambient_spec/sounds/harp/f.wav +0 -0
- data/lib/ambient_spec/sounds/harp/g.wav +0 -0
- data/lib/ambient_spec/sounds/piano/a.wav +0 -0
- data/lib/ambient_spec/sounds/piano/c.wav +0 -0
- data/lib/ambient_spec/sounds/piano/d.wav +0 -0
- data/lib/ambient_spec/sounds/piano/e.wav +0 -0
- data/lib/ambient_spec/sounds/piano/f.wav +0 -0
- data/lib/ambient_spec/sounds/piano/g.wav +0 -0
- data/lib/ambient_spec/sounds/plasma/a.wav +0 -0
- data/lib/ambient_spec/sounds/plasma/c.wav +0 -0
- data/lib/ambient_spec/sounds/plasma/d.wav +0 -0
- data/lib/ambient_spec/sounds/plasma/e.wav +0 -0
- data/lib/ambient_spec/sounds/plasma/f.wav +0 -0
- data/lib/ambient_spec/sounds/plasma/g.wav +0 -0
- data/lib/ambient_spec/sounds/swirl/a.wav +0 -0
- data/lib/ambient_spec/sounds/swirl/c.wav +0 -0
- data/lib/ambient_spec/sounds/swirl/d.wav +0 -0
- data/lib/ambient_spec/sounds/swirl/e.wav +0 -0
- data/lib/ambient_spec/sounds/swirl/f.wav +0 -0
- data/lib/ambient_spec/sounds/swirl/g.wav +0 -0
- data/lib/ambient_spec/sounds/waves/a.wav +0 -0
- data/lib/ambient_spec/sounds/waves/c.wav +0 -0
- data/lib/ambient_spec/sounds/waves/d.wav +0 -0
- data/lib/ambient_spec/sounds/waves/e.wav +0 -0
- data/lib/ambient_spec/sounds/waves/f.wav +0 -0
- data/lib/ambient_spec/sounds/waves/g.wav +0 -0
- data/lib/ambient_spec/version.rb +1 -1
- metadata +64 -44
- data/lib/ambient_spec/configure.rb +0 -21
- data/lib/ambient_spec/sounds/drip/a.wav +0 -0
- data/lib/ambient_spec/sounds/drip/b.wav +0 -0
- data/lib/ambient_spec/sounds/drip/c.wav +0 -0
- data/lib/ambient_spec/sounds/drip/d.wav +0 -0
- data/lib/ambient_spec/sounds/drip/e.wav +0 -0
- data/lib/ambient_spec/sounds/drip/f.wav +0 -0
- data/lib/ambient_spec/sounds/drip/g.wav +0 -0
- data/lib/ambient_spec/sounds/gong/a.wav +0 -0
- data/lib/ambient_spec/sounds/gong/b.wav +0 -0
- data/lib/ambient_spec/sounds/gong/c.wav +0 -0
- data/lib/ambient_spec/sounds/gong/d.wav +0 -0
- data/lib/ambient_spec/sounds/gong/e.wav +0 -0
- data/lib/ambient_spec/sounds/gong/f.wav +0 -0
- data/lib/ambient_spec/sounds/gong/g.wav +0 -0
- data/lib/ambient_spec/sounds/rain/a.wav +0 -0
- data/lib/ambient_spec/sounds/rain/b.wav +0 -0
- data/lib/ambient_spec/sounds/rain/c.wav +0 -0
- data/lib/ambient_spec/sounds/rain/d.wav +0 -0
- data/lib/ambient_spec/sounds/rain/e.wav +0 -0
- data/lib/ambient_spec/sounds/rain/f.wav +0 -0
- data/lib/ambient_spec/sounds/rain/g.wav +0 -0
- data/lib/ambient_spec/sounds/rain_2/a.wav +0 -0
- data/lib/ambient_spec/sounds/rain_2/b.wav +0 -0
- data/lib/ambient_spec/sounds/rain_2/c.wav +0 -0
- data/lib/ambient_spec/sounds/rain_2/d.wav +0 -0
- data/lib/ambient_spec/sounds/rain_2/e.wav +0 -0
- data/lib/ambient_spec/sounds/rain_2/f.wav +0 -0
- data/lib/ambient_spec/sounds/rain_2/g.wav +0 -0
- data/lib/minitest/ambient_plugin.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 117ede017b3a0e4d104161091ba7176b73a47a1b9af079a368f76f753ee240f1
|
4
|
+
data.tar.gz: d6d03ec86aa6ca2a354f3896aaad551a2d1800aeacda1a884b10e3b689c0e1bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 832f2a558f66e0ee21257daf5ff746050c759c247e4e2e85b1984fe049e993001a2c75d4b27eb778cbcd7759c4bbeaef6ebf020cf7a74bb34efb4e09d0cafaae
|
7
|
+
data.tar.gz: 6b97aaec1e434b83363ca9f8adda758e5014ed4ce0250f30f2fb4dd060cebc6255b94f3ef5155b12db193b9491854137a70886ec81ae501014183ee4b6c56e83
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,13 +1,76 @@
|
|
1
|
-
# Contributor Code of Conduct
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
2
|
|
3
|
-
|
3
|
+
## Our Pledge
|
4
4
|
|
5
|
-
|
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
|
-
|
12
|
+
## Our Standards
|
8
13
|
|
9
|
-
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
10
16
|
|
11
|
-
|
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
|
-
|
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
|
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
|
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
|
-
|
19
|
+
## Command-line Usage
|
24
20
|
|
25
|
-
|
21
|
+
For documentation-style formatting:
|
26
22
|
|
27
|
-
|
23
|
+
rspec -r ambient_spec -f AmbientDocumentationFormatter spec/
|
28
24
|
|
29
|
-
|
25
|
+
For progress-style formatting:
|
30
26
|
|
31
|
-
|
27
|
+
rspec -r ambient_spec -f AmbientProgressFormatter spec/
|
32
28
|
|
33
|
-
|
29
|
+
Or best of all, in your `.rspec` file in your project root:
|
34
30
|
|
35
|
-
|
31
|
+
```
|
32
|
+
--require spec_helper
|
33
|
+
--require ambient_spec
|
34
|
+
--format AmbientDocumentationFormatter
|
35
|
+
```
|
36
|
+
|
37
|
+
## Contributing
|
36
38
|
|
37
|
-
|
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.
|
data/ambient_spec.gemspec
CHANGED
@@ -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", "~>
|
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
|
data/lib/ambient_spec.rb
CHANGED
@@ -1,19 +1,8 @@
|
|
1
|
-
|
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/
|
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
|
data/lib/ambient_spec/player.rb
CHANGED
@@ -12,14 +12,14 @@ module AmbientSpec
|
|
12
12
|
|
13
13
|
def sing(status=:pass)
|
14
14
|
increment_counter
|
15
|
-
return unless counter %
|
15
|
+
# return unless counter % 3 == 1 || status == :fail
|
16
16
|
if status == :pass
|
17
|
-
folder =
|
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
|
-
|
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/ambient_spec/version.rb
CHANGED
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:
|
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:
|
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: '
|
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: '
|
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:
|
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/
|
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/
|
87
|
-
- lib/ambient_spec/sounds/
|
88
|
-
- lib/ambient_spec/sounds/
|
89
|
-
- lib/ambient_spec/sounds/
|
90
|
-
- lib/ambient_spec/sounds/
|
91
|
-
- lib/ambient_spec/sounds/
|
92
|
-
- lib/ambient_spec/sounds/
|
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/
|
95
|
-
- lib/ambient_spec/sounds/
|
96
|
-
- lib/ambient_spec/sounds/
|
97
|
-
- lib/ambient_spec/sounds/
|
98
|
-
- lib/ambient_spec/sounds/
|
99
|
-
- lib/ambient_spec/sounds/
|
100
|
-
- lib/ambient_spec/sounds/
|
101
|
-
- lib/ambient_spec/sounds/
|
102
|
-
- lib/ambient_spec/sounds/
|
103
|
-
- lib/ambient_spec/sounds/
|
104
|
-
- lib/ambient_spec/sounds/
|
105
|
-
- lib/ambient_spec/sounds/
|
106
|
-
- lib/ambient_spec/sounds/
|
107
|
-
- lib/ambient_spec/sounds/
|
108
|
-
- lib/ambient_spec/sounds/
|
109
|
-
- lib/ambient_spec/sounds/
|
110
|
-
- lib/ambient_spec/sounds/
|
111
|
-
- lib/ambient_spec/sounds/
|
112
|
-
- lib/ambient_spec/sounds/
|
113
|
-
- lib/ambient_spec/sounds/
|
114
|
-
- lib/ambient_spec/sounds/
|
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.
|
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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
|