ciclope 0.0.4 → 0.0.5

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.
@@ -13,16 +13,15 @@ module Ciclope
13
13
  options ||= {}
14
14
  connections = Array(args).flatten.compact.uniq
15
15
 
16
- raise NotEnoughConnections if connections.size < 2
17
-
18
16
  @hosts = []
19
17
 
20
18
  connections.each do |c|
21
19
  config = Rails.configuration.database_configuration[c.to_s]
22
- next unless config && config['adapter'] != 'mysql'
20
+ next unless config && config['adapter'] == 'mysql'
23
21
  @hosts << Host.new(ActiveRecord::Base.mysql_connection(config))
24
22
  end
25
23
 
24
+ raise NotEnoughConnections if connections.size < 2
26
25
  @hosts = @hosts.sort if options[:sort_hosts] && @hosts.count > 2
27
26
  end
28
27
 
@@ -1,3 +1,3 @@
1
1
  module Ciclope
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hugo Geronimo Diaz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-26 00:00:00 Z
18
+ date: 2011-12-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec