starting_blocks 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +6 -0
- data/README.md +50 -10
- data/Rakefile +9 -0
- data/lib/starting_blocks/version.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- data/starting_blocks.gemspec +3 -2
- metadata +34 -5
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,31 +1,71 @@
|
|
1
1
|
# Starting Blocks
|
2
2
|
|
3
|
-
|
3
|
+
[](https://travis-ci.org/darrencauthon/starting_blocks)
|
4
|
+
[](https://codeclimate.com/github/darrencauthon/starting_blocks)
|
5
|
+
[](https://coveralls.io/r/darrencauthon/starting_blocks)
|
4
6
|
|
5
|
-
|
7
|
+
## Why?
|
6
8
|
|
7
|
-
|
9
|
+
The purpose of this gem is to run my Minitest specs, with no hassle. No Rakefile updates, no Gemfile/gemspec installs, and no regex Guard files.
|
8
10
|
|
9
|
-
|
11
|
+
Just. Run. The. Tests.
|
10
12
|
|
11
|
-
|
13
|
+
Install the gem. Type "sb" in your command line. All of the tests in your current directory are run.
|
12
14
|
|
13
|
-
|
15
|
+
## What tests, though?
|
16
|
+
|
17
|
+
Starting Blocks runs all files that have a "test" or "spec" prefix or suffix. Like:
|
18
|
+
|
19
|
+
* spec_apple.rb
|
20
|
+
* apple_spec.rb
|
21
|
+
* test_orange.rb
|
22
|
+
* orange_test.rb
|
23
|
+
|
24
|
+
It also looks for matches between "non-test" files and spec files. So if "apple.rb" is updated and "apple_spec.rb" exists, Starting Blocks will run the "apple_spec.rb" tests.
|
14
25
|
|
15
|
-
$ gem install starting_blocks
|
16
26
|
|
17
27
|
## Usage
|
18
28
|
|
19
|
-
|
29
|
+
Run all of your Minitest tests and specs in your current directory and all child directories:
|
20
30
|
|
21
31
|
````
|
22
32
|
sb
|
23
33
|
````
|
24
34
|
|
25
|
-
Will run
|
35
|
+
Run the tests in any test or spec file after it is saved. Will also run the specs for any file that has a matching test or spec file:
|
26
36
|
|
27
37
|
````
|
28
38
|
sb --watch
|
29
39
|
````
|
30
40
|
|
31
|
-
|
41
|
+
Turn your [blinky light](https://github.com/perryn/blinky) red/yellow/green based on the results of your test run:
|
42
|
+
|
43
|
+
````
|
44
|
+
sb --blinky
|
45
|
+
````
|
46
|
+
|
47
|
+
Pop a growl message based on the test results:
|
48
|
+
|
49
|
+
````
|
50
|
+
sb --growl
|
51
|
+
````
|
52
|
+
|
53
|
+
Run the tests with all of the options listed above:
|
54
|
+
|
55
|
+
````
|
56
|
+
sb --growl --blinky --watch
|
57
|
+
````
|
58
|
+
|
59
|
+
## Installation
|
60
|
+
|
61
|
+
Install it yourself with:
|
62
|
+
|
63
|
+
$ gem install starting_blocks
|
64
|
+
|
65
|
+
If you would like to use a [blinky light](https://github.com/perryn/blinky) to show the results of your tests:
|
66
|
+
|
67
|
+
$ gem install starting_blocks-blinky
|
68
|
+
|
69
|
+
If you would like growl results of your tests:
|
70
|
+
|
71
|
+
$ gem install starting_blocks-growl
|
data/Rakefile
CHANGED
data/spec/spec_helper.rb
CHANGED
data/starting_blocks.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["darren@cauthon.com"]
|
11
11
|
spec.description = %q{Faster minitest TDD.}
|
12
12
|
spec.summary = %q{One command to run all tests, test watcher, etc.}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "http://www.github.com/darrencauthon/starting_blocks"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
@@ -23,5 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "contrast"
|
24
24
|
spec.add_development_dependency "subtle"
|
25
25
|
spec.add_development_dependency "mocha"
|
26
|
-
spec.
|
26
|
+
spec.add_development_dependency 'coveralls'
|
27
|
+
spec.add_runtime_dependency 'listen', '~> 1.3.1', '>= 1.0', '< 2.0'
|
27
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: starting_blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -91,22 +91,50 @@ dependencies:
|
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: coveralls
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
94
110
|
- !ruby/object:Gem::Dependency
|
95
111
|
name: listen
|
96
112
|
requirement: !ruby/object:Gem::Requirement
|
97
113
|
none: false
|
98
114
|
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.3.1
|
99
118
|
- - ! '>='
|
100
119
|
- !ruby/object:Gem::Version
|
101
120
|
version: '1.0'
|
121
|
+
- - <
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '2.0'
|
102
124
|
type: :runtime
|
103
125
|
prerelease: false
|
104
126
|
version_requirements: !ruby/object:Gem::Requirement
|
105
127
|
none: false
|
106
128
|
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.3.1
|
107
132
|
- - ! '>='
|
108
133
|
- !ruby/object:Gem::Version
|
109
134
|
version: '1.0'
|
135
|
+
- - <
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '2.0'
|
110
138
|
description: Faster minitest TDD.
|
111
139
|
email:
|
112
140
|
- darren@cauthon.com
|
@@ -116,6 +144,7 @@ extensions: []
|
|
116
144
|
extra_rdoc_files: []
|
117
145
|
files:
|
118
146
|
- .gitignore
|
147
|
+
- .travis.yml
|
119
148
|
- Gemfile
|
120
149
|
- LICENSE.txt
|
121
150
|
- README.md
|
@@ -133,7 +162,7 @@ files:
|
|
133
162
|
- spec/starting_blocks/result_parser_spec.rb
|
134
163
|
- spec/starting_blocks/runner_spec.rb
|
135
164
|
- starting_blocks.gemspec
|
136
|
-
homepage:
|
165
|
+
homepage: http://www.github.com/darrencauthon/starting_blocks
|
137
166
|
licenses:
|
138
167
|
- MIT
|
139
168
|
post_install_message:
|
@@ -148,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
177
|
version: '0'
|
149
178
|
segments:
|
150
179
|
- 0
|
151
|
-
hash: -
|
180
|
+
hash: -4181452778347655977
|
152
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
182
|
none: false
|
154
183
|
requirements:
|
@@ -157,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
186
|
version: '0'
|
158
187
|
segments:
|
159
188
|
- 0
|
160
|
-
hash: -
|
189
|
+
hash: -4181452778347655977
|
161
190
|
requirements: []
|
162
191
|
rubyforge_project:
|
163
192
|
rubygems_version: 1.8.24
|