palbo-lijab 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -198,8 +198,12 @@ module Contacts
198
198
  if contact
199
199
  self[jid] = contact
200
200
  if @short.key?(jid.node)
201
- self[@short[jid.node].jid].simple_name = jid.strip.to_s
202
- @short[@short[jid.node].jid.strip.to_s] = @short.delete(jid.node)
201
+ prev = @short[jid.node]
202
+
203
+ self[jid].simple_name = jid.strip.to_s
204
+ self[prev.jid].simple_name = prev.jid.strip.to_s
205
+
206
+ @short[prev.jid.strip.to_s] = @short.delete(jid.node)
203
207
  @short[jid.strip.to_s] = self[jid]
204
208
  else
205
209
  @short[jid.node] = self[jid]
@@ -38,12 +38,12 @@ module Out
38
38
  end
39
39
 
40
40
  def format_message_in(from, text, colors, time)
41
- "#{ANSI.clearline}#{time}#{from} <- ".colored(*colors) + text
41
+ "#{ANSI.clearline}#{time}#{from} -> ".colored(*colors) + text
42
42
  end
43
43
 
44
44
  def format_message_out(to, text, colors, time)
45
45
 
46
- prefix = "#{time}#{to} -> "
46
+ prefix = "#{time}#{to} <- "
47
47
  indent = " " * prefix.length
48
48
 
49
49
  lines = text.to_a
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Lijab
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: palbo-lijab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Flouret
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-04 00:00:00 -07:00
12
+ date: 2009-05-05 00:00:00 -07:00
13
13
  default_executable: lijab
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency