elected 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b5c89ac46abb1a6ea65b8920deceef50191c861
4
- data.tar.gz: 671056c5313758131924eb017b72c7c94755072f
3
+ metadata.gz: a5dc6e900af2721826b12eee64a192c8d99ad72c
4
+ data.tar.gz: eee1b4827086be7717aab4378c91d9752928fc13
5
5
  SHA512:
6
- metadata.gz: 3ec2c9051972ec2bbbfccc9d5fb8dca3e310dd610edaa3bdda0cc9668b039b0f73a8c522a5f92c8e01f4eabec1031c77a511dd10b90b6977af28ffc17ee06ccb
7
- data.tar.gz: 844371981fbede73461956dcd1c87e46c6b09a06fb45037e2d3a19dfab9feb14f0536b5736eeb072e245d1b373875d7966cc49e578f7108aa405638b0fce4979
6
+ metadata.gz: 4148d59cee205f8cb33c9347eaa433efb3d1cbc74e9920936868e6b9379ea4ddc5acb1957eafeb73341e7089a786c2e2c73187fe9097ed81640e83935453568e
7
+ data.tar.gz: 92f15065455697f2dc440e275973f7101943dc227f171415ba1e1172bf6b46837bd246d71567a9ea12838c0b42fb54630a99ad858de9babcaf17682a6a19f6b2
@@ -38,11 +38,12 @@ module Elected
38
38
  end
39
39
 
40
40
  def log_prefix(length = 60)
41
- prefixes = [name]
42
- label = log_prefix_labels.last
43
- prefixes << label.rjust(length, ' ')[-length, length]
44
- prefixes << ' | '
45
- prefixes.join('')
41
+ prefix = name
42
+ labels = log_prefix_labels
43
+ prefix += ".#{labels.last}" if labels
44
+ prefix = prefix.rjust(length, ' ')[-length, length]
45
+ prefix += ' |'
46
+ prefix
46
47
  end
47
48
 
48
49
  def run_thread_count
@@ -1,3 +1,3 @@
1
1
  module Elected
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elected
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Madrid