stream-chat-ruby is the official Ruby client for Stream chat a service for building chat applications.
You can sign up for a Stream account at https://getstream.io/chat/get_started/.
You can use this library to access chat API endpoints server-side. For the client-side integrations (web and mobile) have a look at the Javascript, iOS and Android SDK libraries (https://getstream.io/chat/).
stream-chat-ruby supports:
- Ruby (2.6, 2.5, 2.4)
gem install stream-chat-ruby
TODO: add a sample Ruby chat program
- Chat channels
- Messages
- Chat channel types
- User management
- Moderation API
- Push configuration
- User devices
- User search
- Channel search
chat = StreamChat::Client.new(api_key='STREAM_KEY', api_secret='STREAM_SECRET')
# add a user
chat.update_user({'id' => 'chuck', 'name' => 'Chuck'})
# create a channel about kung-fu
channel = chat.channel('messaging', 'kung-fu')
channel.create('chuck')
# add a first message to the channel
channel.send_message({'text' => 'AMA about kung-fu'})
First, make sure you can run the test suite. Tests are run via rspec
STREAM_KEY=my_api_key STREAM_SECRET=my_api_secret bundle exec rake spec
In order to release new version you need to be a maintainer of the library.
- Update CHANGELOG
- Update the version in
lib/stream-chat/version.rb
- Commit and push to GitHub
- Build the gem with
bundle exec rake build
- Publish the gem with
bundle exec rake release