city-watch 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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].is_a?(Array) ? CityWatch.config[:watchmen].include?(watchman.name.to_sym) : 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].is_a?(Hash) && CityWatch.config[:watchmen][watchman.name.to_sym])
14
14
  acc[watchman.name] = watchman.data
15
15
  end
16
16
  acc
@@ -1,3 +1,3 @@
1
1
  module CityWatch
2
- VERSION = "0.7.8"
2
+ VERSION = "0.7.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: city-watch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: