Moved to new twitter lib.

This commit is contained in:
Martin Edenhofer 2013-11-19 11:04:46 +01:00
parent 4a27df45d1
commit 313b6ffa2b
3 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ Example:
"firstname":"Marti", "firstname":"Marti",
"lastname":"Ede", "lastname":"Ede",
"email":"m@edenhofer.de", "email":"m@edenhofer.de",
"image":"http://www.gravatar.com/avatar/1c38b099f2344976005de69965733465?s=48", "image_source":"http://www.gravatar.com/avatar/1c38b099f2344976005de69965733465?s=48",
"web":"http://127.0.0.1", "web":"http://127.0.0.1",
"password":"123", "password":"123",
"phone":"112", "phone":"112",

View file

@ -151,7 +151,7 @@ class Channel::Twitter2
:lastname => '', :lastname => '',
:email => '', :email => '',
:password => '', :password => '',
:image => sender.profile_image_url, :image_source => sender.profile_image_url.request_uri,
:note => sender.description, :note => sender.description,
:active => true, :active => true,
:roles => roles, :roles => roles,

View file

@ -126,7 +126,7 @@ class TwitterTest < ActiveSupport::TestCase
end end
dms = client.direct_messages( :count => 200 ) dms = client.direct_messages( :count => 200 )
dms.each {|dm| dms.each {|dm|
client.direct_message_destroy(dm.id) client.destroy_direct_message(dm.id)
} }
# direct message to @armin_theo # direct message to @armin_theo
@ -144,7 +144,7 @@ class TwitterTest < ActiveSupport::TestCase
hash = '#citheo44' + rand(9999).to_s hash = '#citheo44' + rand(9999).to_s
text = 'How about the details? ' + hash text = 'How about the details? ' + hash
dm = client.direct_message_create( dm = client.create_direct_message(
'armin_theo', 'armin_theo',
text, text,
) )