sclemmer-robut 0.5.3 → 0.5.4

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: 5e28ec51937cbd52677eecece7d703f42563d8c6
4
- data.tar.gz: 162653bd99b466b458e31b1efb7dbdb3cf3b962a
3
+ metadata.gz: 18fbc5af5659289e45ccb6201b7224dc28ac2080
4
+ data.tar.gz: b0f718ca1281610ae47a511698945962363a4e2c
5
5
  SHA512:
6
- metadata.gz: eff29ef4c4a66fbad7da81796bfb78c2e577abf056560973c40b47ebfcd00f5b4029ff2916472f7c6297faff3a9a6b51fd91e6dc1d68ae81696c7cd33b714586
7
- data.tar.gz: 61ad64286affc06d4165b68b16702eb43371bbe8098d5d22b88497a985e2f3d94525ab7a32a6265f0c8def79d9012c956a360c3b036f3c7eb360a5f725451d51
6
+ metadata.gz: 46a77111afb343a466168d43da2998918b57ded1c3c3c4628645b974ecd5927e9a7cce39c99958758e95b745af31e49336cd09dec686a90ae1c10fdc07565b61
7
+ data.tar.gz: a459c72e1b42cb800d3d6f6e2ce66321a7301d6152a8e5981a15939f43aef12bbc51b51348f38f9e8f5995ddc88d3ac6f5fdf8503936a935e79b4fc506a94302
data/lib/robut/room.rb CHANGED
@@ -26,7 +26,14 @@ class Robut::Room < Robut::Presence
26
26
  # Send +message+ to the room we're currently connected to
27
27
  def reply(message, to)
28
28
  msg = Jabber::Message.new(muc.room)
29
- msg.set_xhtml_body(message)
29
+ if message =~ /</
30
+ msg.xhtml_body = message
31
+ else
32
+ msg.body = message
33
+ end
34
+ $stderr.puts 'msg: %s' % msg.inspect
35
+ $stderr.puts 'msg.body: %s' % msg.body.inspect
36
+ $stderr.puts 'msg.xhtml_body: %s' % msg.xhtml_body.inspect
30
37
  muc.send(msg)
31
38
  end
32
39
  end
data/lib/robut/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Robut # :nodoc:
2
2
  # Robut's version number.
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sclemmer-robut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Weiss