Skip to content

Instantly share code, notes, and snippets.

@cziko
Created July 8, 2011 11:28
Show Gist options
  • Save cziko/1071644 to your computer and use it in GitHub Desktop.
Save cziko/1071644 to your computer and use it in GitHub Desktop.
Things - Yammer checkin script
#!/usr/bin/ruby
# gem install things-client --source http://gemcutter.org
# gem install broadcast
require 'rubygems'
require 'things'
require 'broadcast'
Broadcast.setup do |config|
config.yammer.consumer_key = ''
config.yammer.consumer_secret = ''
config.yammer.access_token = ''
config.yammer.access_secret = ''
end
class Poke < Broadcast::Message
medium :yammer
def body
task_list_for_today = Things::Todo.today.map(&:name)
return "Check in: \n #{task_list_for_today.join("\n")}"
end
end
Poke.new.publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment