ciclope 0.0.2 → 0.0.3

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/README.markdown CHANGED
@@ -10,20 +10,20 @@ Configuration
10
10
 
11
11
  Only has to specify a array of two or more Rails database config names:
12
12
 
13
- Ciclope.connections = [:production, :production\_in\_aws, :production\_in\_other_location]
13
+ Ciclope.connections = [:production, :production_in_aws, :production_in_other_location]
14
14
 
15
15
  The ring will be auto-sorted guessing the master host for each connection, you could bypass this feature setting:
16
16
 
17
- Ciclope.auto\_sort\_connections = false
17
+ Ciclope.auto_sort_connections = false
18
18
 
19
19
  Use
20
20
  ---
21
21
 
22
22
  Actually there is one class methods to inspect replication data and one to show seconds behind master:
23
23
 
24
- Ciclope.replication\_status \# => returns a array of hashes with replication data
24
+ Ciclope.replication_status # => returns a array of hashes with replication data
25
25
 
26
- Ciclope.replication\_seconds\_behind\_master # => returns a simple string with the host status like:
26
+ Ciclope.replication_seconds_behind_master # => returns a simple string with the host status like:
27
27
 
28
28
  host1 ––– 0 seconds –––> host2 ––– 0 seconds –––> host3 ––– 0 seconds –––> host1
29
29
 
data/lib/ciclope/host.rb CHANGED
@@ -37,9 +37,9 @@ module Ciclope
37
37
  # TODO: find the right sort
38
38
  def <=>(other)
39
39
  if log_file == other._master_log_file
40
- 1
41
- elsif other.log_file == _master_log_file
42
40
  -1
41
+ elsif other.log_file == _master_log_file
42
+ 1
43
43
  else
44
44
  0
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module Ciclope
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hugo Geronimo Diaz