dumper 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,9 +69,11 @@ module Dumper
69
69
  if json[:status] == 'ok'
70
70
  # Promoted or demoted?
71
71
  if json[:token]
72
- @token = json[:token] # promote
72
+ log 'promoted to primary' if @token.nil?
73
+ @token = json[:token]
73
74
  else
74
- @token = nil # demote
75
+ log 'demoted to secondary' if @token
76
+ @token = nil
75
77
  end
76
78
 
77
79
  if json[:job]
@@ -1,3 +1,3 @@
1
1
  module Dumper
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: