Files
sablink-distro/dev-ruby/twitter/files/simple_post.patch
T
wael 21ad6cea63 Add new patches from Benoit Caccinolo.
git-svn-id: http://svn.sabayonlinux.org/overlay@2412 d7aec97c-591d-0410-af39-a8856400b30a
2008-06-21 04:30:39 +00:00

31 lines
876 B
Diff

Benoit Caccinolo <benoit.caccinolo@gmail.com>
=============================================
Here is a little patch to allow this type of command to post:
> twitter post hello world
without the quotes in fact.
This command is also valid:
> twitter post "hello world"
in fact, you have the choice.
Here is the little patch: http://groups.google.com/group/ruby-twitter-gem/web/simple_post.patch
diff --git a/lib/twitter/command.rb b/lib/twitter/command.rb
index f0b6999..8d76c07 100644
--- a/lib/twitter/command.rb
+++ b/lib/twitter/command.rb
@@ -53,8 +53,8 @@ EOF
puts %(\n You didn't enter a message to post.\n\n Usage: twitter post "You're fabulous message"\n)
exit(0)
end
-
- post = ARGV.shift
+
+ post = ARGV.join " "
print "\nSending twitter update"
finished = false
status = nil