lita-hipchat 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/adapters/hipchat/connector.rb +6 -2
- data/lita-hipchat.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c7f6bd52728f09dc4baf260b1ea0ead6baf1b36
|
4
|
+
data.tar.gz: 958d81d4a11aa21d455bbbc3ae8d91ff7fd5607c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05ece0c9f643fd09bdd0d22e7597ad1176501f15d189538a028e6d497b80f183e9705292b262316861c21b911657c8298de34f21cca9806251fd9d134fc07ed8
|
7
|
+
data.tar.gz: 8a487c201a060fbc0ac8e728762af373aa23faeb6385aa4634097c6a45e142d052de3c3fbef2a6645d8ea152c224de18f4a2de10ba37525d6aa2e5a1cbf9076a
|
@@ -63,7 +63,7 @@ module Lita
|
|
63
63
|
def message_jid(user_jid, strings)
|
64
64
|
strings.each do |s|
|
65
65
|
Lita.logger.debug("Sending message to JID #{user_jid}: #{s}")
|
66
|
-
message = Jabber::Message.new(user_jid, s)
|
66
|
+
message = Jabber::Message.new(user_jid, encode_string(s))
|
67
67
|
message.type = :chat
|
68
68
|
client.send(message)
|
69
69
|
end
|
@@ -73,7 +73,7 @@ module Lita
|
|
73
73
|
muc = mucs[room_jid]
|
74
74
|
strings.each do |s|
|
75
75
|
Lita.logger.debug("Sending message to MUC #{room_jid}: #{s}")
|
76
|
-
muc.say(s)
|
76
|
+
muc.say(encode_string(s))
|
77
77
|
end if muc
|
78
78
|
end
|
79
79
|
|
@@ -140,6 +140,10 @@ module Lita
|
|
140
140
|
end
|
141
141
|
jid
|
142
142
|
end
|
143
|
+
|
144
|
+
def encode_string(s)
|
145
|
+
s.encode('UTF-8', :invalid => :replace, :undef => :replace)
|
146
|
+
end
|
143
147
|
end
|
144
148
|
end
|
145
149
|
end
|
data/lita-hipchat.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-hipchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Cuadra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -160,3 +160,4 @@ test_files:
|
|
160
160
|
- spec/lita/adapters/hipchat/connector_spec.rb
|
161
161
|
- spec/lita/adapters/hipchat_spec.rb
|
162
162
|
- spec/spec_helper.rb
|
163
|
+
has_rdoc:
|