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.
- data/Rakefile +1 -1
- data/lib/beholder.rb +2 -10
- metadata +1 -1
data/Rakefile
CHANGED
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 '
|
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
|