starting_blocks 0.0.31 → 0.0.32

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - jruby-19mode
6
+ - jruby-head
data/README.md CHANGED
@@ -1,31 +1,71 @@
1
1
  # Starting Blocks
2
2
 
3
- ## Installation
3
+ [![Build Status](https://travis-ci.org/darrencauthon/starting_blocks.png?branch=master)](https://travis-ci.org/darrencauthon/starting_blocks)
4
+ [![Code Climate](https://codeclimate.com/github/darrencauthon/starting_blocks.png)](https://codeclimate.com/github/darrencauthon/starting_blocks)
5
+ [![Coverage Status](https://coveralls.io/repos/darrencauthon/subtle/badge.png?branch=master)](https://coveralls.io/r/darrencauthon/starting_blocks)
4
6
 
5
- Add this line to your application's Gemfile:
7
+ ## Why?
6
8
 
7
- gem 'starting_blocks'
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
- And then execute:
11
+ Just. Run. The. Tests.
10
12
 
11
- $ bundle
13
+ Install the gem. Type "sb" in your command line. All of the tests in your current directory are run.
12
14
 
13
- Or install it yourself as:
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
- Current command-line options:
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 all MiniTest specs in your current directory and all child directories.
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
- Will run all MiniTest specs if they or similarly named files are edited.
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
@@ -1 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ task :default => [:test]
5
+
6
+ Rake::TestTask.new do |t|
7
+ t.libs.push "lib"
8
+ t.test_files = FileList['spec/starting_blocks/*_spec.rb']
9
+ t.verbose = true
10
+ end
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "0.0.31"
2
+ VERSION = "0.0.32"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require File.expand_path(File.dirname(__FILE__) + '/../lib/starting_blocks')
2
5
  require 'minitest/autorun'
3
6
  require 'minitest/spec'
@@ -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.add_runtime_dependency 'listen', ">= 1.0"
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.31
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-07-27 00:00:00.000000000 Z
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: -3379760059722669527
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: -3379760059722669527
189
+ hash: -4181452778347655977
161
190
  requirements: []
162
191
  rubyforge_project:
163
192
  rubygems_version: 1.8.24