starting_blocks-rspec 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/starting_blocks-rspec.rb +1 -1
- data/lib/text_parser_override.rb +11 -0
- metadata +3 -3
- data/lib/result_builder.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f32bc1da9196807769b06f88d6d2cc25574b9efe
|
4
|
+
data.tar.gz: f3ea385d3a1468ce827609e330aebe5ab4d087ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac9683cd71ac155d4d59a34dcecfe221721f0fc32c4e52a2541162506464071d07a64a94d9c81c5a6584b7de93deb39d921989ff8392bfa0afdb1a0e26931104
|
7
|
+
data.tar.gz: a93b69d515a1fd7090a7bad98718959db1fe51df3b60b2c61dcf4fe127303b7c749342b6e4ef1c0981c9cb2f412bf030b9e0147f520574e1e035a05752eb826c
|
data/README.md
CHANGED
@@ -6,10 +6,10 @@ As you edit files in your ruby app, starting_blocks will run the tests automatic
|
|
6
6
|
|
7
7
|
## Usage
|
8
8
|
|
9
|
-
Include "
|
9
|
+
Include "rspec" when running starting blocks.
|
10
10
|
|
11
11
|
```
|
12
|
-
sb
|
12
|
+
sb rspec
|
13
13
|
```
|
14
14
|
|
15
15
|
Now when you update a test file or you edit a file with a similar name to a test file, the tests will be run.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: starting_blocks-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Fuhrman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,9 +74,9 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- README.md
|
77
|
-
- lib/result_builder.rb
|
78
77
|
- lib/rspec_contract.rb
|
79
78
|
- lib/starting_blocks-rspec.rb
|
79
|
+
- lib/text_parser_override.rb
|
80
80
|
homepage: http://www.github.com/rossfuhrman/starting_blocks-rspec
|
81
81
|
licenses:
|
82
82
|
- MIT
|
data/lib/result_builder.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
module StartingBlocks
|
2
|
-
|
3
|
-
class ResultBuilder
|
4
|
-
|
5
|
-
def build_from run_result
|
6
|
-
@run_result = run_result
|
7
|
-
{
|
8
|
-
color: color,
|
9
|
-
text: @run_result[:text],
|
10
|
-
exit_code: @run_result[:exit_code],
|
11
|
-
success: @run_result[:success]
|
12
|
-
}
|
13
|
-
end
|
14
|
-
|
15
|
-
private
|
16
|
-
|
17
|
-
def color
|
18
|
-
return :red unless successful_exit_code?
|
19
|
-
return :red unless success?
|
20
|
-
:green
|
21
|
-
end
|
22
|
-
|
23
|
-
def successful_exit_code?
|
24
|
-
@run_result[:exit_code] == 0
|
25
|
-
end
|
26
|
-
|
27
|
-
def success?
|
28
|
-
@run_result[:success]
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|