Skip to content
Browse files

added update_status

  • Loading branch information...
1 parent 43b351a commit d3b75b9224153b6e8449a4c463734c88d2a19be1 @baroquebobcat committed Mar 12, 2010
Showing with 9 additions and 1 deletion.
  1. +8 −0 lib/sinatra-twitter-oauth/twitter_oauth_ext.rb
  2. +1 −1 sinatra-twitter-oauth.gemspec
View
8 lib/sinatra-twitter-oauth/twitter_oauth_ext.rb
@@ -12,6 +12,14 @@ def initialize client,info
self.info = info
end
+ #updates the user's status
+ # msg -- message to update to
+ # opts additional options eg lat,long
+
+ def update_status msg, opts={}
+ client.update msg, opts
+ end
+
def lists
client.get_lists(screen_name)['lists'].map {|list| List.new client, list}
end
View
2 sinatra-twitter-oauth.gemspec
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{sinatra-twitter-oauth}
- s.version = "0.0.1"
+ s.version = "0.0.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nick Howard"]

0 comments on commit d3b75b9

Please sign in to comment.
Something went wrong with that request. Please try again.