spicycode-beholder 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. data/Rakefile +1 -3
  2. data/lib/beholder.rb +7 -7
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'date'
5
5
  require 'micronaut/rake_task'
6
6
 
7
7
  GEM = "beholder"
8
- GEM_VERSION = "0.0.3"
8
+ GEM_VERSION = "0.0.4"
9
9
  AUTHOR = "Chad Humphries"
10
10
  EMAIL = "chad@spicycode.com"
11
11
  HOMEPAGE = "http://github.com/spicycode/beholder"
@@ -22,8 +22,6 @@ spec = Gem::Specification.new do |s|
22
22
  s.author = AUTHOR
23
23
  s.email = EMAIL
24
24
  s.homepage = HOMEPAGE
25
-
26
- # Uncomment this to add a dependency
27
25
  s.add_dependency "fsevents"
28
26
  s.bindir = 'bin'
29
27
  s.default_executable = 'beholder'
data/lib/beholder.rb CHANGED
@@ -7,7 +7,7 @@ class Beholder
7
7
  attr_reader :paths_to_watch, :sent_an_int, :mappings, :working_directory, :be_verbose, :the_eye
8
8
 
9
9
  def initialize
10
- @paths_to_watch = ['app', 'config', 'lib', 'examples']
10
+ @paths_to_watch = ['app', 'config', 'lib', 'examples', 'test', 'spec']
11
11
  @sent_an_int = false
12
12
  @mappings = {}
13
13
  @working_directory = Dir.pwd
@@ -15,9 +15,9 @@ class Beholder
15
15
  end
16
16
 
17
17
  def self.cast_thy_gaze
18
- @beholder = new
19
- @beholder.prepare_for_interlopers
20
- @beholder.open_your_eye
18
+ beholder = new
19
+ beholder.prepare_for_interlopers
20
+ beholder.open_your_eye
21
21
  end
22
22
 
23
23
  def open_your_eye
@@ -51,15 +51,15 @@ class Beholder
51
51
  /#{working_directory}\/config/
52
52
  "examples/**/*_example.rb"
53
53
  else
54
- say "Unknown file: #{treasure}"
54
+ puts "Unknown file: #{treasure}"
55
55
  ''
56
56
  end
57
57
  end
58
58
 
59
59
  def reclaim_stolen_treasure_at(coordinates)
60
60
  real_coordinates = coordinates.map { |f| Dir.glob(f) }
61
- return if coordinates.nil? || coordinates.empty? || real_coordinates.empty?
62
- puts "\nRunning #{coordinates.join(', ')}"
61
+ return if real_coordinates.empty?
62
+ puts "\nRunning #{real_coordinates.join(', ')}"
63
63
  system "ruby #{real_coordinates.join(' ')}"
64
64
  end
65
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spicycode-beholder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Humphries
@@ -9,7 +9,7 @@ autorequire: beholder
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-06 00:00:00 -08:00
12
+ date: 2009-01-13 00:00:00 -08:00
13
13
  default_executable: beholder
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency