starting_blocks 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sb +2 -1
- data/lib/starting_blocks/minitest_contract.rb +35 -0
- data/lib/starting_blocks/version.rb +1 -1
- data/lib/starting_blocks.rb +0 -1
- metadata +2 -3
- data/lib/starting_blocks/contract.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 852d6060d741f594da0ff7521e8f3ce433a64a74
|
4
|
+
data.tar.gz: 01a6787294230df7531fe691ef7a4de8a7225a78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c54d4043b0786908bb178424250cd55104f666c3c5db6f2362b3700d228be7a8c7574274ca257dbdab7768caf5f404d002918f34aaa90084d619176f3ae8d86f
|
7
|
+
data.tar.gz: 88507d45aa5032e12f9847481453cfde482fd066616d41d54437e0f851da08887a77a56420000d66b7471d84a47a6bb87064231386209a94a78c35b5022fcc81
|
data/bin/sb
CHANGED
@@ -1,5 +1,40 @@
|
|
1
1
|
module StartingBlocks
|
2
2
|
|
3
|
+
class Contract
|
4
|
+
|
5
|
+
attr_reader :options
|
6
|
+
|
7
|
+
def initialize options
|
8
|
+
@options = options
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.inherited klass
|
12
|
+
@contract_types ||= []
|
13
|
+
@contract_types << klass
|
14
|
+
end
|
15
|
+
|
16
|
+
def file_clues
|
17
|
+
["test", "spec"]
|
18
|
+
end
|
19
|
+
|
20
|
+
def extensions
|
21
|
+
[]
|
22
|
+
end
|
23
|
+
|
24
|
+
def filter_these_files files
|
25
|
+
files
|
26
|
+
end
|
27
|
+
|
28
|
+
def execute_these_files files
|
29
|
+
raise 'You have to define how to execute these files.'
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.for options
|
33
|
+
@contract_types.last.new options
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
3
38
|
class MinitestContract < Contract
|
4
39
|
|
5
40
|
def file_clues
|
data/lib/starting_blocks.rb
CHANGED
@@ -5,7 +5,6 @@ require_relative 'starting_blocks/result_parser'
|
|
5
5
|
require_relative 'starting_blocks/result_text_parser'
|
6
6
|
require_relative 'starting_blocks/publisher'
|
7
7
|
require_relative 'starting_blocks/cli'
|
8
|
-
require_relative 'starting_blocks/contract'
|
9
8
|
require_relative 'starting_blocks/minitest_contract'
|
10
9
|
|
11
10
|
module StartingBlocks
|
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: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darren Cauthon
|
@@ -111,7 +111,6 @@ files:
|
|
111
111
|
- bin/sb
|
112
112
|
- lib/starting_blocks.rb
|
113
113
|
- lib/starting_blocks/cli.rb
|
114
|
-
- lib/starting_blocks/contract.rb
|
115
114
|
- lib/starting_blocks/minitest_contract.rb
|
116
115
|
- lib/starting_blocks/publisher.rb
|
117
116
|
- lib/starting_blocks/result_parser.rb
|
@@ -145,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
144
|
version: '0'
|
146
145
|
requirements: []
|
147
146
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.2.2
|
149
148
|
signing_key:
|
150
149
|
specification_version: 4
|
151
150
|
summary: One command to run all tests, test watcher, etc.
|
@@ -1,38 +0,0 @@
|
|
1
|
-
module StartingBlocks
|
2
|
-
|
3
|
-
class Contract
|
4
|
-
|
5
|
-
attr_reader :options
|
6
|
-
|
7
|
-
def initialize options
|
8
|
-
@options = options
|
9
|
-
end
|
10
|
-
|
11
|
-
def self.inherited klass
|
12
|
-
@contract_types ||= []
|
13
|
-
@contract_types << klass
|
14
|
-
end
|
15
|
-
|
16
|
-
def file_clues
|
17
|
-
["test", "spec"]
|
18
|
-
end
|
19
|
-
|
20
|
-
def extensions
|
21
|
-
[]
|
22
|
-
end
|
23
|
-
|
24
|
-
def filter_these_files files
|
25
|
-
files
|
26
|
-
end
|
27
|
-
|
28
|
-
def execute_these_files files
|
29
|
-
raise 'You have to define how to execute these files.'
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.for options
|
33
|
-
@contract_types.last.new options
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|