starting_blocks 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/sb CHANGED
@@ -11,6 +11,10 @@ if ARGV.include? '--verbose'
11
11
  options[:verbose] = true
12
12
  end
13
13
 
14
+ if ARGV.include? '--bundler'
15
+ options[:bundler] = true
16
+ end
17
+
14
18
  def run_all_specs options
15
19
  files = ['**/*_spec.rb*', '**/*_test.rb*', '**/test_*.rb*'].map do |d|
16
20
  Dir[d].
@@ -5,6 +5,7 @@ module StartingBlocks
5
5
 
6
6
  def initialize options
7
7
  @verbose = options[:verbose]
8
+ @use_bundler = options[:use_bundler]
8
9
  end
9
10
 
10
11
  def run_files files
@@ -20,7 +21,11 @@ module StartingBlocks
20
21
 
21
22
  def execute_these_files files
22
23
  requires = files.map { |x| "require '#{x}'" }.join("\n")
23
- `ruby -e "#{requires}"`
24
+ if @use_bundler
25
+ `bundle exec ruby -e "#{requires}"`
26
+ else
27
+ `ruby -e "#{requires}"`
28
+ end
24
29
  end
25
30
  end
26
31
  end
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
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.22
4
+ version: 0.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: -1399351932341596499
167
+ hash: 750877468494968190
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements:
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -1399351932341596499
176
+ hash: 750877468494968190
177
177
  requirements: []
178
178
  rubyforge_project:
179
179
  rubygems_version: 1.8.24