starting_blocks 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sb +15 -7
- data/lib/starting_blocks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a2778ab02a059443d58355da2c904575739f248
|
4
|
+
data.tar.gz: f56b29341aca253e0f6122dc5d120280981684cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf82de67e892e243bde77a85071e8c094fd1713756fe4fa982702c78a17ce2f23786d2eefd6eddd76f6f1843f697cd4a6343a315cd79988f677056f007b259ab
|
7
|
+
data.tar.gz: 6e40472e47332b3254abf1f5d253c7114fa80c11aa5d262eb49621f8ad60bf2c1cde2301786c3655ac52c6a2ca136a1bdbe6b6141449b8d2e09ed5446acd0456
|
data/bin/sb
CHANGED
@@ -7,12 +7,20 @@ options = {}
|
|
7
7
|
def display value
|
8
8
|
end
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
require 'starting_blocks-stopplicht' if ARGV.include? '--stopplicht'
|
10
|
+
arguments = ARGV
|
11
|
+
config_file = File.expand_path('~/.sb')
|
13
12
|
|
14
|
-
|
15
|
-
|
13
|
+
if File.exists?(config_file)
|
14
|
+
additional_arguments = File.read(config_file).split(' ')
|
15
|
+
arguments += additional_arguments
|
16
|
+
end
|
17
|
+
|
18
|
+
require 'starting_blocks-blinky' if arguments.include? '--blinky'
|
19
|
+
require 'starting_blocks-growl' if arguments.include? '--growl'
|
20
|
+
require 'starting_blocks-stopplicht' if arguments.include? '--stopplicht'
|
21
|
+
|
22
|
+
options[:verbose] = arguments.include? '--verbose'
|
23
|
+
options[:no_vendor] = arguments.include?('--vendor') == false
|
16
24
|
options[:use_bundler] = Dir['Gemfile'].count > 0
|
17
25
|
|
18
26
|
def run_all_specs options
|
@@ -25,10 +33,10 @@ def run_all_specs options
|
|
25
33
|
StartingBlocks::Runner.new(options).run_files files
|
26
34
|
end
|
27
35
|
|
28
|
-
if
|
36
|
+
if arguments.include? '--watch'
|
29
37
|
StartingBlocks::Watcher.start_watching Dir, options
|
30
38
|
sleep
|
31
|
-
elsif
|
39
|
+
elsif arguments.include? '--off'
|
32
40
|
StartingBlocks::Extensions::BlinkyLighting.turn_off!
|
33
41
|
else
|
34
42
|
results = run_all_specs options
|