sg/xmppbridge

xmpp4r-simple syntax error

sammcj opened this issue · 0 comments

root@dev-samm:~/xmppbridge  # ./xmppbridge.rb bridge
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- xmpp4r-simple (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from ./xmppbridge.rb:13:in `<main>'

hmm ok, so maybe it needs the xmpp4r-simple gem as well?

root@dev-samm:~/xmppbridge 1 # gem install xmpp4r-simple
Fetching: xmpp4r-simple-0.8.8.gem (100%)
Successfully installed xmpp4r-simple-0.8.8
1 gem installed
Installing ri documentation for xmpp4r-simple-0.8.8...
Installing RDoc documentation for xmpp4r-simple-0.8.8...

root@dev-samm:~/xmppbridge  # ./xmppbridge.rb bridge
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require': /var/lib/gems/1.9.1/gems/xmpp4r-simple-0.8.8/lib/xmpp4r-simple.rb:441: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
                   when nil: new_presence.show || :online
                            ^
/var/lib/gems/1.9.1/gems/xmpp4r-simple-0.8.8/lib/xmpp4r-simple.rb:442: syntax error, unexpected keyword_when, expecting keyword_end
                   when :unavailable: :unavailable
                       ^
/var/lib/gems/1.9.1/gems/xmpp4r-simple-0.8.8/lib/xmpp4r-simple.rb:443: syntax error, unexpected keyword_else, expecting keyword_end
/var/lib/gems/1.9.1/gems/xmpp4r-simple-0.8.8/lib/xmpp4r-simple.rb:490: syntax error, unexpected keyword_end, expecting $end
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from ./xmppbridge.rb:13:in `<main>'

boom!