From 5074d2f8f2e678585cc59dcdc4a90e4527c5c3cc Mon Sep 17 00:00:00 2001 From: Daniele Di Sarli Date: Thu, 30 Sep 2010 01:42:57 +0800 Subject: [PATCH 1/7] Updated Italian translation --- config/locales/diaspora/it.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/locales/diaspora/it.yml b/config/locales/diaspora/it.yml index 24681fbe0..fe4b305cc 100644 --- a/config/locales/diaspora/it.yml +++ b/config/locales/diaspora/it.yml @@ -85,6 +85,7 @@ it: create: "Crea" create: success: "Clicca sul segno più nella parte sinistra per dire a Diaspora chi può vedere il tuo nuovo aspetto." + failure: "Creazione dell'aspetto fallita." destroy: success: "%{name} è stato rimosso con successo." update: From 0e8b84fb9658b444bf634e45b018bc0a69bf3bfb Mon Sep 17 00:00:00 2001 From: danielvincent Date: Tue, 5 Oct 2010 17:26:26 -0700 Subject: [PATCH 2/7] publish instead of get --- lib/message_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/message_handler.rb b/lib/message_handler.rb index a8fd09fee..214d7f50a 100644 --- a/lib/message_handler.rb +++ b/lib/message_handler.rb @@ -34,7 +34,7 @@ class MessageHandler http = EventMachine::HttpRequest.new(query.destination).get :timeout => TIMEOUT http.callback {process} when :hub_publish - http = EventMachine::PubSubHubbub.new(query.destination).get :timeout => TIMEOUT + http = EventMachine::PubSubHubbub.new(query.destination).publish :timeout => TIMEOUT http.callback {process} else raise "message is not a type I know!" From 9eb8fe0c5a32b5037781f8a7b94d4f313f507c8b Mon Sep 17 00:00:00 2001 From: Stoyan Gaydarov Date: Mon, 4 Oct 2010 07:43:49 +0800 Subject: [PATCH 3/7] use the correct pod url in the user spec --- spec/models/user_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 7d072bdd5..049115ff2 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -17,7 +17,7 @@ describe User do describe '#diaspora_handle' do it 'uses the pod config url to set the diaspora_handle' do - user.diaspora_handle.should == user.username + "@example.org" + user.diaspora_handle.should == user.username + "@" + APP_CONFIG[:terse_pod_url] end end From dbacff250a98539764296213d2794ac992c18418 Mon Sep 17 00:00:00 2001 From: Stoyan Gaydarov Date: Mon, 4 Oct 2010 07:51:19 +0800 Subject: [PATCH 4/7] added extra user spec --- spec/models/user_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 049115ff2..d21b1d57c 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -12,6 +12,10 @@ describe User do user = Factory.build(:user, :username => "ALLUPPERCASE") user.valid? user.username.should == "alluppercase" + + user = Factory.build(:user, :username => "someUPPERCASE") + user.valid? + user.username.should == "someuppercase" end end From 77d5b68e151e838d78a9f127b39cc323fb624ec4 Mon Sep 17 00:00:00 2001 From: Yaron Shahrabani Date: Tue, 28 Sep 2010 15:31:27 +0800 Subject: [PATCH 5/7] Fixed some typos --- config/locales/devise/devise.he.yml | 2 +- config/locales/diaspora/he.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/locales/devise/devise.he.yml b/config/locales/devise/devise.he.yml index c33cfa678..997ab6df0 100644 --- a/config/locales/devise/devise.he.yml +++ b/config/locales/devise/devise.he.yml @@ -18,7 +18,7 @@ he: invalid: "הססמה או הדוא״ל שגויים." invalid_token: "אסימון האימות שגוי." timeout: "ההפעלה שלך פגה, נא להיכנס שוב כדי להמשיך." - inactive: "חשבונך לא הופעל עדין." + inactive: "חשבונך לא הופעל עדיין." sessions: signed_in: "נכנסת בהצלחה." signed_out: "יצאת בהצלחה." diff --git a/config/locales/diaspora/he.yml b/config/locales/diaspora/he.yml index 47f2a52c2..1105a3bcb 100644 --- a/config/locales/diaspora/he.yml +++ b/config/locales/diaspora/he.yml @@ -86,7 +86,7 @@ he: add_a_new_aspect: "הוספת היבט חדש" create: "יציאה" create: - success: "יש ללחוץ על סמל הפלוס שמימין כדי לומר לדיאספורה מי יעול לצפות בהיבט החדש שלך." + success: "יש ללחוץ על סמל הפלוס שמימין כדי לומר לדיאספורה מי יכול לצפות בהיבט החדש שלך." destroy: success: "%{name} הוסר בהצלחה." update: @@ -99,7 +99,7 @@ he: success: "כעת יופיע בפני החברים שלך היבט אחר שלך." helper: remove: "הסרה" - aspect_not_empty: "ההיסט אינו ריק" + aspect_not_empty: "ההיבט אינו ריק" users: edit: editing_profile: "עריכת הפרופיל" @@ -134,13 +134,13 @@ he: delete_photo: "מחיקת תמונה" photo: show_comments: "הצגת הערות" - posted_a_new_photo_to: "פורסמה תמונה חדשה אל" + posted_a_new_photo_to: "פורסמה תמונה חדשה באלבום" new: new_photo: "תמונה חדשה" back_to_list: "חזרה לרשימה" post_it: "פרסום!" create: - runtime_error: "העלאת התמונה נכשלה. האם החגורה שלך מהודקת?" + runtime_error: "העלאת התמונה נכשלה. הידקת את החגורה?" integrity_error: "העלאת התמונה נכשלה. האם זו באמת הייתה תמונה?" type_error: "העלאת התמונה נכשלה. האם באמת נוספה תמונה?" update: @@ -155,7 +155,7 @@ he: success: "הצטרפת לדיאספורה!" status_messages: new_status_message: - tell_me_something_good: "בא לי לשמוע סיפור טוב" + tell_me_something_good: "בא לי לשמוע סיפור נחמד" oh_yeah: "אחלה!" status_message: show_comments: "הצגת הערות" @@ -165,7 +165,7 @@ he: status_message: "הודעת מצב" comments: "הערות" are_you_sure: "בבטחה?" - destroy: "הריבה" + destroy: "הריסה" view_all: "צפייה בכול" message: "הודעה" owner: "בעלים" From 7c4feb74646c794a27edea5f2a99240b5ae10120 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Tue, 5 Oct 2010 17:34:03 -0700 Subject: [PATCH 6/7] better log message --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 91c82f101..15c3515c2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -187,7 +187,7 @@ class User end def push_to_hub(post) - Rails.logger.debug("Pushing update to pubsub server") + Rails.logger.debug("Pushing update to pubsub server #{APP_CONFIG[:pubsub_server]} with url #{self.public_url}") QUEUE.add_hub_notification(APP_CONFIG[:pubsub_server], self.public_url) end From d890b57b131d72393d5ec84635a7b72bf819d538 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Tue, 5 Oct 2010 17:45:35 -0700 Subject: [PATCH 7/7] temp logger message --- lib/message_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/message_handler.rb b/lib/message_handler.rb index 214d7f50a..351ca99d6 100644 --- a/lib/message_handler.rb +++ b/lib/message_handler.rb @@ -35,7 +35,7 @@ class MessageHandler http.callback {process} when :hub_publish http = EventMachine::PubSubHubbub.new(query.destination).publish :timeout => TIMEOUT - http.callback {process} + http.callback {process; Rails.logger.debug(http.response)} else raise "message is not a type I know!" end