starting_blocks 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/sb +4 -0
- data/lib/starting_blocks/runner.rb +6 -1
- data/lib/starting_blocks/version.rb +1 -1
- metadata +3 -3
data/bin/sb
CHANGED
@@ -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
|
-
|
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
|
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.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:
|
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:
|
176
|
+
hash: 750877468494968190
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project:
|
179
179
|
rubygems_version: 1.8.24
|