spicycode-beholder 0.5.0 → 0.5.2

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 +2 -10
  3. metadata +1 -1
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.5.0"
8
+ GEM_VERSION = "0.5.2"
9
9
  AUTHOR = "Chad Humphries"
10
10
  EMAIL = "chad@spicycode.com"
11
11
  HOMEPAGE = "http://github.com/spicycode/beholder"
data/lib/beholder.rb CHANGED
@@ -60,12 +60,8 @@ class Beholder
60
60
  def read_all_the_maps
61
61
  map_for(:default_dungeon) do |wizard|
62
62
 
63
- wizard.keep_a_watchful_eye_for 'app', 'config', 'lib', 'examples'
63
+ wizard.keep_a_watchful_eye_for 'lib', 'examples'
64
64
 
65
- wizard.prepare_spell_for /\/app\/(.*)\.rb/ do |spell_component|
66
- ["examples/#{spell_component[1]}.rb"]
67
- end
68
-
69
65
  wizard.prepare_spell_for /\/lib\/(.*)\.rb/ do |spell_component|
70
66
  ["examples/lib/#{spell_component[1]}_example.rb"]
71
67
  end
@@ -77,10 +73,6 @@ class Beholder
77
73
  wizard.prepare_spell_for /\/examples\/example_helper\.rb/ do |spell_component|
78
74
  Dir["examples/**/*_example.rb"]
79
75
  end
80
-
81
- wizard.prepare_spell_for /\/config/ do
82
- Dir["examples/**/*_example.rb"]
83
- end
84
76
 
85
77
  end
86
78
 
@@ -140,7 +132,7 @@ class Beholder
140
132
  end
141
133
 
142
134
  def notice_thief_taking(treasure)
143
- say "#{treasure} changed"
135
+ say "#{treasure} changed" unless treasure.empty?
144
136
  coordinates = treasure.map { |t| identify_stolen_treasure(t) }.uniq.compact
145
137
  reclaim_stolen_treasure_at coordinates
146
138
  end
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.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Humphries