ambient_spec 0.13.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +5 -4
- data/README.md +7 -3
- data/ambient_spec.gemspec +3 -1
- data/lib/ambient_spec.rb +11 -2
- data/lib/ambient_spec/configure.rb +4 -2
- data/lib/ambient_spec/player.rb +1 -1
- data/lib/ambient_spec/version.rb +1 -1
- data/lib/minitest/ambient_plugin.rb +14 -0
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e97ba52e85c3d676bd65245feba45ca225270079
|
4
|
+
data.tar.gz: 98cc844901ef029cfe0bfb7927d39540e54907f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e09c821c91588b4abf4c24067c606d535d35fd10ac92bbbe04a46ca1b9faad1d40e076dedb3d8654b8fc5138bea9b8135c593987eefe4a3a66d29806d793a839
|
7
|
+
data.tar.gz: b3af02b58f749758a61d42d629721d0886bc7e76ea242da0ef6fb2769fcf879b7cc0bd935f0c7ca94b536a0ce83d5c70f9c15787d22f05667732066ef6006cb1
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
|
2
|
-
## Version 0.4
|
1
|
+
# Contributor Code of Conduct
|
3
2
|
|
4
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.
|
5
4
|
|
6
|
-
|
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.
|
6
|
+
|
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.
|
7
8
|
|
8
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.
|
9
10
|
|
10
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.
|
11
12
|
|
12
|
-
|
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/)
|
data/README.md
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
# AmbientSpec
|
2
2
|
|
3
|
-
AmbientSpec turns your long-running RSpec specs into ambient music. Sweet sounds come from
|
3
|
+
AmbientSpec turns your long-running RSpec or Minitest specs into ambient music. Sweet sounds come from
|
4
4
|
passing examples, and gongs signal failing tests.
|
5
5
|
|
6
6
|
(Note that you won't hear anything unless your test suite run is longer than 5 seconds. Silence is
|
7
7
|
the most pleasing sound of all.)
|
8
8
|
|
9
|
+
## Dependencies
|
10
|
+
|
11
|
+
Requires RSpec 3.x. or Minitest.
|
12
|
+
|
9
13
|
## Installation
|
10
14
|
|
11
15
|
Add this line to your application's Gemfile:
|
@@ -22,7 +26,7 @@ Or install it yourself as:
|
|
22
26
|
|
23
27
|
## Usage
|
24
28
|
|
25
|
-
Simply run
|
29
|
+
Simply run your tests as you normally would.
|
26
30
|
|
27
31
|
To disable AmbientSpec, set `ENV['AMBIENT_SPEC_DISABLED']=true`
|
28
32
|
|
@@ -34,4 +38,4 @@ Please note that this project is released with a [Contributor Code of Conduct](h
|
|
34
38
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
35
39
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
36
40
|
4. Push to the branch (`git push origin my-new-feature`)
|
37
|
-
5. Create a new Pull Request
|
41
|
+
5. Create a new Pull Request
|
data/ambient_spec.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["coraline@idolhands.com"]
|
11
11
|
spec.summary = %q{Creates an ambient soundscape for your test suite.}
|
12
12
|
spec.description = %q{}
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/CoralineAda/ambient_spec"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -22,4 +22,6 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_dependency "wavefile", "=0.6.0"
|
24
24
|
|
25
|
+
spec.add_dependency "minitest"
|
26
|
+
|
25
27
|
end
|
data/lib/ambient_spec.rb
CHANGED
@@ -1,10 +1,19 @@
|
|
1
|
-
|
1
|
+
if defined?(RSpec)
|
2
|
+
require "rspec/core"
|
3
|
+
end
|
4
|
+
|
2
5
|
require "ambient_spec/version"
|
3
6
|
require "ambient_spec/player"
|
4
7
|
require "ambient_spec/configure"
|
5
8
|
|
6
9
|
module AmbientSpec
|
10
|
+
|
7
11
|
unless ENV['AMBIENT_SPEC_DISABLED']
|
8
|
-
|
12
|
+
|
13
|
+
if defined?(RSpec)
|
14
|
+
AmbientSpec::Configure.new.rspec
|
15
|
+
end
|
16
|
+
|
9
17
|
end
|
18
|
+
|
10
19
|
end
|
data/lib/ambient_spec/player.rb
CHANGED
data/lib/ambient_spec/version.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
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
|
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: 0.
|
4
|
+
version: 1.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: 2015-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.6.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: ''
|
56
70
|
email:
|
57
71
|
- coraline@idolhands.com
|
@@ -99,7 +113,8 @@ files:
|
|
99
113
|
- lib/ambient_spec/sounds/rain_2/f.wav
|
100
114
|
- lib/ambient_spec/sounds/rain_2/g.wav
|
101
115
|
- lib/ambient_spec/version.rb
|
102
|
-
|
116
|
+
- lib/minitest/ambient_plugin.rb
|
117
|
+
homepage: https://github.com/CoralineAda/ambient_spec
|
103
118
|
licenses:
|
104
119
|
- MIT
|
105
120
|
metadata: {}
|