lib/xmpp4r/connection.rb | 5 +---- lib/xmpp4r/pubsub/helper/nodebrowser.rb | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/xmpp4r/connection.rb b/lib/xmpp4r/connection.rb index 9889b2e..1bb3391 100644 --- a/lib/xmpp4r/connection.rb +++ b/lib/xmpp4r/connection.rb @@ -2,10 +2,7 @@ # License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option. # Website::http://home.gna.org/xmpp4r/ -begin - require 'openssl' -rescue LoadError -end +require 'openssl' require 'xmpp4r/stream' module Jabber diff --git a/lib/xmpp4r/pubsub/helper/nodebrowser.rb b/lib/xmpp4r/pubsub/helper/nodebrowser.rb index 4d13eea..a7ffaa4 100644 --- a/lib/xmpp4r/pubsub/helper/nodebrowser.rb +++ b/lib/xmpp4r/pubsub/helper/nodebrowser.rb @@ -48,8 +48,8 @@ module Jabber @stream.send_with_id(iq) { |answer| answer.query.each_element('item') do |item| nodes.push( {'node' => item.node,'name' => item.iname } ) - } - end + end + } nodes end