starting_blocks 0.4.0 → 0.5.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd15084e6c8d1923239d6ccf175770b85e1aa7fa
4
- data.tar.gz: 4674757c19aa0cec5f92a0f59e8871ef32b35894
3
+ metadata.gz: 2a2778ab02a059443d58355da2c904575739f248
4
+ data.tar.gz: f56b29341aca253e0f6122dc5d120280981684cf
5
5
  SHA512:
6
- metadata.gz: c80bca79a9e2b5e78e77fbb4e5b48662230031d91b1b26fc75e171a09b721b48039d248640ed8e28653ff87f41c93dffd8de8b1a1f1850f5515bcd1be2285a46
7
- data.tar.gz: 79e2f139ab809e3e33b0e9520827499ecc64ebba988473be71f5919a396e1ef1dccb4a2ed3d83b56903fbcf975b7ade7d5848e2dba5f2e2d67202d07bc4f6a54
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
- require 'starting_blocks-blinky' if ARGV.include? '--blinky'
11
- require 'starting_blocks-growl' if ARGV.include? '--growl'
12
- require 'starting_blocks-stopplicht' if ARGV.include? '--stopplicht'
10
+ arguments = ARGV
11
+ config_file = File.expand_path('~/.sb')
13
12
 
14
- options[:verbose] = ARGV.include? '--verbose'
15
- options[:no_vendor] = ARGV.include?('--vendor') == false
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 ARGV.include? '--watch'
36
+ if arguments.include? '--watch'
29
37
  StartingBlocks::Watcher.start_watching Dir, options
30
38
  sleep
31
- elsif ARGV.include? '--off'
39
+ elsif arguments.include? '--off'
32
40
  StartingBlocks::Extensions::BlinkyLighting.turn_off!
33
41
  else
34
42
  results = run_all_specs options
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
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.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Cauthon