spicycode-beholder 0.0.2 → 0.0.3

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 -1
  2. data/lib/beholder.rb +3 -2
  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.2"
8
+ GEM_VERSION = "0.0.3"
9
9
  AUTHOR = "Chad Humphries"
10
10
  EMAIL = "chad@spicycode.com"
11
11
  HOMEPAGE = "http://github.com/spicycode/beholder"
data/lib/beholder.rb CHANGED
@@ -57,9 +57,10 @@ class Beholder
57
57
  end
58
58
 
59
59
  def reclaim_stolen_treasure_at(coordinates)
60
- return if coordinates.nil? || coordinates.empty?
60
+ real_coordinates = coordinates.map { |f| Dir.glob(f) }
61
+ return if coordinates.nil? || coordinates.empty? || real_coordinates.empty?
61
62
  puts "\nRunning #{coordinates.join(', ')}"
62
- system "ruby #{coordinates.map { |f| Dir.glob(f) }.join(' ')}"
63
+ system "ruby #{real_coordinates.join(' ')}"
63
64
  end
64
65
 
65
66
  def notice_thief_taking(treasure)
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.2
4
+ version: 0.0.3
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-05 00:00:00 -08:00
12
+ date: 2009-01-06 00:00:00 -08:00
13
13
  default_executable: beholder
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency