Sha256: 9f86ccd515348787befea57129ac284514e2a58fa8630afe8a479344a1a2104e

Contents?: true

Size: 278 Bytes

Versions: 25

Compression:

Stored size: 278 Bytes

Contents

#!/usr/bin/env ruby

# Prints out each roster entry

require 'blather/client'

when_ready do
  roster.grouped.each do |group, items|
    puts "#{'*'*3} #{group || 'Ungrouped'} #{'*'*3}"
    items.each { |item| puts "- #{item.name} (#{item.jid})" }
    puts
  end
  shutdown
end

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
sprsquish-blather-0.4.0 examples/rosterprint.rb
sprsquish-blather-0.4.1 examples/rosterprint.rb
sprsquish-blather-0.4.2 examples/rosterprint.rb
sprsquish-blather-0.4.3 examples/rosterprint.rb
sprsquish-blather-0.4.4 examples/rosterprint.rb
blather-0.4.16 examples/rosterprint.rb
blather-0.4.15 examples/rosterprint.rb
shingara-blather-0.4.14 examples/rosterprint.rb
blather-0.4.14 examples/rosterprint.rb
blather-0.4.13 examples/rosterprint.rb
blather-0.4.12 examples/rosterprint.rb
blather-0.4.11 examples/rosterprint.rb
blather-0.4.10 examples/rosterprint.rb
shingara-blather-0.4.9 examples/rosterprint.rb
shingara-blather-0.4.8 examples/rosterprint.rb
blather-0.4.8 examples/rosterprint.rb
blather-0.4.7 examples/rosterprint.rb
blather-0.4.6 examples/rosterprint.rb
blather-0.4.5 examples/rosterprint.rb
blather-0.4.4 examples/rosterprint.rb