ciclope 0.0.3 → 0.0.4

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.
@@ -19,8 +19,8 @@ module Ciclope
19
19
 
20
20
  connections.each do |c|
21
21
  config = Rails.configuration.database_configuration[c.to_s]
22
- next if config['adapter'] != 'mysql'
23
- @hosts << Host.new(ActiveRecord::Base.mysql_connection(config)) if config
22
+ next unless config && config['adapter'] != 'mysql'
23
+ @hosts << Host.new(ActiveRecord::Base.mysql_connection(config))
24
24
  end
25
25
 
26
26
  @hosts = @hosts.sort if options[:sort_hosts] && @hosts.count > 2
@@ -1,3 +1,3 @@
1
1
  module Ciclope
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ciclope
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hugo Geronimo Diaz