palbo-lijab 0.1.0 → 0.1.1
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/lib/lijab/contacts.rb +6 -2
- data/lib/lijab/out.rb +2 -2
- data/lib/lijab/version.rb +1 -1
- metadata +2 -2
data/lib/lijab/contacts.rb
CHANGED
@@ -198,8 +198,12 @@ module Contacts
|
|
198
198
|
if contact
|
199
199
|
self[jid] = contact
|
200
200
|
if @short.key?(jid.node)
|
201
|
-
|
202
|
-
|
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]
|
data/lib/lijab/out.rb
CHANGED
@@ -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}
|
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
|
data/lib/lijab/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2009-05-05 00:00:00 -07:00
|
13
13
|
default_executable: lijab
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|