Skip to content

ChattyCrow/xmpp2s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xmpp2s - Xmpp Send Message

<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.

Installation

Add this line to your application’s Gemfile:

gem 'xmpp2s'

And then execute:

$ bundle

Or install it yourself as:

$ gem install xmpp2s

Usage

session = Xmpp2s::Session.open('account@host/resource', 'password')
status, error = session.send_message('[email protected]', 'Test message')
session.close

Contributing

  1. Fork it ( github.com/ChattyCrow/xmpp2s/fork )

  2. Create your feature branch (‘git checkout -b my-new-feature`)

  3. Commit your changes (‘git commit -am ’Add some feature’‘)

  4. Push to the branch (‘git push origin my-new-feature`)

  5. Create a new Pull Request

About

Simple ruby gem for sending jabber messages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages