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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a570ce0b87dc0e06bba355362104f156bf390b81
4
- data.tar.gz: 188d784ae83e06de86ee644d84552830f859e2ea
3
+ metadata.gz: 852d6060d741f594da0ff7521e8f3ce433a64a74
4
+ data.tar.gz: 01a6787294230df7531fe691ef7a4de8a7225a78
5
5
  SHA512:
6
- metadata.gz: 4b3bd0160e74595d7e0d571c1a97b180d0133f69e2d9ff03781842185b18fbd9dfe303d3dd42ae2aaeb8db13133f0f9a63ac58e7e6a2be47af4c3419f630e45d
7
- data.tar.gz: 7d6a5de4b19b44baca1cc64947045e7b82962551c9406dd83dd31b333bcd46276695ee67a97e29abfa65eebace058d193d201cc7fc75a9f9e439037edf23a031
6
+ metadata.gz: c54d4043b0786908bb178424250cd55104f666c3c5db6f2362b3700d228be7a8c7574274ca257dbdab7768caf5f404d002918f34aaa90084d619176f3ae8d86f
7
+ data.tar.gz: 88507d45aa5032e12f9847481453cfde482fd066616d41d54437e0f851da08887a77a56420000d66b7471d84a47a6bb87064231386209a94a78c35b5022fcc81
data/bin/sb CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'starting_blocks'
3
+ #require 'starting_blocks'
4
+ require_relative '../lib/starting_blocks'
4
5
 
5
6
  StartingBlocks::Cli.run ARGV
@@ -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
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -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.0
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.0.14
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