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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8cbe8c4c6e26b183f6b6dc06996d0df5adf98cc
4
- data.tar.gz: 53607161d68445ed54502da7d204203f4cca5f37
3
+ metadata.gz: f32bc1da9196807769b06f88d6d2cc25574b9efe
4
+ data.tar.gz: f3ea385d3a1468ce827609e330aebe5ab4d087ad
5
5
  SHA512:
6
- metadata.gz: 8f47dc61a50f7bfc210ab20b4112e4d9faef44b1840690a77519dc2bd64ea6f83d51a20ecc260469141c41b9966d689fb0fb64ffe3e816f703c4ff81bb70db0f
7
- data.tar.gz: 1a2a05a2a0121e09e31f0c1d294188aade46027fdd8e01eccef9aa26d8c169cbd5eaf0bd6c45e2692ea7299650c7201c75c4c3dbe91ce2f3a5e673f7488f0c10
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 "--rspec" when running starting blocks.
9
+ Include "rspec" when running starting blocks.
10
10
 
11
11
  ```
12
- sb --rspec
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.
@@ -1,3 +1,3 @@
1
1
  require 'starting_blocks'
2
2
  require_relative 'rspec_contract'
3
- require_relative 'result_builder'
3
+ require_relative 'text_parser_override'
@@ -0,0 +1,11 @@
1
+ StartingBlocks::TextParser.class_eval do
2
+
3
+ def assertions
4
+ examples
5
+ end
6
+
7
+ def tests
8
+ examples
9
+ end
10
+
11
+ end
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.3
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 00:00:00.000000000 Z
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
@@ -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
-