starting_blocks 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/sb +8 -5
  2. data/lib/starting_blocks/version.rb +1 -1
  3. metadata +4 -4
data/bin/sb CHANGED
@@ -21,28 +21,31 @@ end
21
21
 
22
22
  def run_these_specs specs
23
23
  requires = specs.map { |x| "require '#{x}'" }.join("\n")
24
- display specs.inspect
24
+ display "Specs to run: #{specs.inspect}"
25
25
  puts `ruby -e "#{requires}"`
26
26
  end
27
27
 
28
28
 
29
29
  def add_it(file, files)
30
- return if relative.index('.git') == 0
30
+ return if file.index('.git') == 0
31
+ display "Adding: #{file}"
31
32
  files << file
32
33
  end
33
34
 
34
35
  def run_it(file, files)
35
36
  filename = file.downcase.split('/')[-1].gsub('_spec', '')
36
- display file.inspect
37
- display filename.inspect
37
+ display "File to run is: #{file}"
38
+ display "Filename: #{filename}"
38
39
  matches = files.select { |x| x.gsub('_spec', '').include?(filename) && x != file }
39
40
  matches << file
40
41
  specs = matches.select! { |x| x.include?('_spec') }.map { |x| File.expand_path x }
41
- display specs.inspect
42
+ display "Matches: #{specs.inspect}"
42
43
  run_these_specs specs
43
44
  end
44
45
 
45
46
  def delete_it(file, files)
47
+ return if file.index('.git') == 0
48
+ display "Deleting: #{file}"
46
49
  files.delete(file)
47
50
  end
48
51
 
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-26 00:00:00.000000000 Z
12
+ date: 2013-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: -4543985825431956199
94
+ hash: 1028364888030213182
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -4543985825431956199
103
+ hash: 1028364888030213182
104
104
  requirements: []
105
105
  rubyforge_project:
106
106
  rubygems_version: 1.8.24