city-watch 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/city_watch/util/watchman.rb +1 -1
- data/lib/city_watch/watchmen.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
@@ -64,7 +64,7 @@ module Watchman
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def get_watchman_options
|
67
|
-
CityWatch.config[:watchmen] && CityWatch.config[:watchmen][self.name.to_sym] ? CityWatch.config[:watchmen][self.name.to_sym] : {}
|
67
|
+
CityWatch.config[:watchmen] && CityWatch.config[:watchmen][self.name.to_sym] && CityWatch.config[:watchmen][self.name.to_sym].is_a?(Hash) ? CityWatch.config[:watchmen][self.name.to_sym] : {}
|
68
68
|
end
|
69
69
|
|
70
70
|
end
|
data/lib/city_watch/watchmen.rb
CHANGED
@@ -10,7 +10,7 @@ module Watchmen
|
|
10
10
|
|
11
11
|
def self.data
|
12
12
|
@watchmen.inject({}) do |acc,watchman|
|
13
|
-
if !CityWatch.config[:watchmen] || CityWatch.config[:watchmen][watchman.name.to_sym]
|
13
|
+
if !CityWatch.config[:watchmen] || (CityWatch.config[:watchmen].is_a?(Array) ? CityWatch.config[:watchmen].include?(watchman.name.to_sym) : CityWatch.config[:watchmen][watchman.name.to_sym])
|
14
14
|
acc[watchman.name] = watchman.data
|
15
15
|
end
|
16
16
|
acc
|
data/lib/version.rb
CHANGED