<img src=“https://travis-ci.org/ChattyCrow/xmpp2s.svg” alt=“Build Status” /> <img src=“https://gemnasium.com/ChattyCrow/xmpp2s.svg” alt=“Dependency Status” /> <img src=“http://inch-ci.org/github/chattycrow/xmpp2s.svg?branch=master” alt=“Inline docs” /> <img src=“https://codeclimate.com/github/ChattyCrow/xmpp2s/badges/gpa.svg” />
This gem is not a fully replacement for xmpp4r gem! You can use this gem just only to simple send a jabber message. This gem is based on xmpp4r and jabber4r versions.
Add this line to your application’s Gemfile:
gem 'xmpp2s'
And then execute:
$ bundle
Or install it yourself as:
$ gem install xmpp2s
session = Xmpp2s::Session.open('account@host/resource', 'password') status, error = session.send_message('[email protected]', 'Test message') session.close
-
Fork it ( github.com/ChattyCrow/xmpp2s/fork )
-
Create your feature branch (‘git checkout -b my-new-feature`)
-
Commit your changes (‘git commit -am ’Add some feature’‘)
-
Push to the branch (‘git push origin my-new-feature`)
-
Create a new Pull Request