Skip to content

Commit

Permalink
XMPP generator updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethkalmer committed Sep 16, 2013
1 parent adcd22a commit fa8384a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions lib/generators/daemon_kit/xmpp/templates/config/xmpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@

# The configuration specifies the following keys:
# * jabber_id - Identidy (username) of the user
# * host - Host to connect to (optional)
# * port - Port to connect to (optional)
# * password - Password used to authenticate
# * resource - Multiple connections can be made with the same credentials and different resources
# * masters - Array of Jabber ID's whose messages will be processed
# * supporters - Additional 'buddies' to keep on roster, but messages won't be processed
# * supporters - Additional 'buddies' to keep on roster, but messages won't be processed (optional)
# * enable_logging - Enable Blather logging (VERY VERBOSE)
# * require_master - Disable filtering of messages based on the sender being a 'master'

defaults: &defaults
jabber_id: dk@jabber
jabber_id: dk@jabber.org
host: jabber.org
port: 5222
password: secret
resource: daemon_kit
enable_logging: false
masters:
masters:
- kenneth.kalmer@gmail.com
supporters:
- someone@gmail.com
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/daemon_kit/xmpp/xmpp_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Generators
class XmppGenerator < Base

def update_gemfile
append_file 'Gemfile', "gem 'blather'\n"
append_file 'Gemfile', "gem 'blather', '~> 0.8.7'\n"
end

def create_config
Expand Down

0 comments on commit fa8384a

Please sign in to comment.