starting_blocks 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/sb +3 -3
- data/lib/starting_blocks/version.rb +1 -1
- metadata +4 -4
data/bin/sb
CHANGED
@@ -12,7 +12,7 @@ if ARGV.include? '--verbose'
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def run_all_specs
|
15
|
-
specs = Dir['**/*_spec*'].select { |f| File.file?(f) }.map do |x|
|
15
|
+
specs = Dir['**/*_spec.rb*'].select { |f| File.file?(f) }.map do |x|
|
16
16
|
File.expand_path(x)
|
17
17
|
end
|
18
18
|
|
@@ -36,7 +36,7 @@ def run_it(file, files)
|
|
36
36
|
filename = file.downcase.split('/')[-1].gsub('_spec', '')
|
37
37
|
display "File to run is: #{file}"
|
38
38
|
display "Filename: #{filename}"
|
39
|
-
matches = files.select { |x| x.gsub('_spec', '').include?(filename) && x != file }
|
39
|
+
matches = files.select { |x| x.gsub('_spec.rb', '.rb').include?(filename) && x != file }
|
40
40
|
matches << file
|
41
41
|
specs = matches.select! { |x| x.include?('_spec') }.map { |x| File.expand_path x }
|
42
42
|
display "Matches: #{specs.inspect}"
|
@@ -51,7 +51,7 @@ end
|
|
51
51
|
|
52
52
|
if ARGV.include? '--watch'
|
53
53
|
files = Dir['**/*']
|
54
|
-
location = File.expand_path(File.dirname(Dir['**/*_spec*'].first))
|
54
|
+
location = File.expand_path(File.dirname(Dir['**/*_spec.rb*'].first))
|
55
55
|
FSSM.monitor(location, '**/*') do
|
56
56
|
update {|base, relative| run_it relative, files }
|
57
57
|
delete {|base, relative| delete_it relative, files }
|
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.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
segments:
|
93
93
|
- 0
|
94
|
-
hash:
|
94
|
+
hash: 68443475665184648
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
@@ -100,10 +100,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
segments:
|
102
102
|
- 0
|
103
|
-
hash:
|
103
|
+
hash: 68443475665184648
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 1.8.
|
106
|
+
rubygems_version: 1.8.25
|
107
107
|
signing_key:
|
108
108
|
specification_version: 3
|
109
109
|
summary: One command to run all tests, test watcher, etc.
|