search for: send_notif

Displaying 8 results from an estimated 8 matches for "send_notif".

Did you mean: send_notify
2008 May 28
3
Mocking objects to test Rails Controllers
...considering the use of Mocha to aid in writing my Rails unit/functional tests. I currently have a Rails model which mixes in a series of methods to allow it to talk to an external service. The code is roughly of this form: class Person < ActiveRecord::Base include SMSNotifier def send_notification(message) send_sms(number,message) # more code/interactions... end end Assuming I want to test that a call to send_notification calls send_sms on the SMSNotifier module, what is the best way to use Mocha to do this? Obviously I don''t want my tests calls to se...
2007 Dec 13
1
session.send_notification for emails
Hey All, I am wondering if anyone has done any work around sending emails through the API. It looks like facebooker is using part of a deprecated API, Notifications.send used to take an email part. They now have a Notifications.sendEmail call which will take recipients, subject, text part and fbml part. Looking at the code it seems like I need to add a method to the session
2011 May 11
3
Constructing an array of stuff (to send multiple apple push notifications)
I''m using this gem https://github.com/justintv/APNS to send push notifications to an iPhone app and amazingly it works for single notifications, such that I can do... APNS.send_notification(Device.first.device_token,''test message'') Works great... Now it should be a simple task (as per the docs to send multiple notifications) Gem says like this... device_token = ''123abc456def'' n1 = [device_token, :aps => { :alert => ''Hello.....
2008 Jan 10
3
A best practices question
Hey everyone. I''ve got a best practices question. How are you guys rendering newsfeeds? We have a couple of apps where we send newsfeed items from a backend process. As such, we aren''t in the context of a controller and can''t use the rails template rendering. We''ve tried about 3 different ways to make that bearable, but aren''t having much
2009 Jan 22
0
time slider cleanup errors
...g this error: /usr/lib/time-slider-cleanup -y Traceback (most recent call last): File "/usr/lib/time-slider-cleanup", line 10, in <module> main(abspath(__file__)) File "/usr/lib/../share/time-slider/lib/time_slider/cleanupmanager.py", line 363, in main cleanup.send_notification() File "/usr/lib/../share/time-slider/lib/time_slider/cleanupmanager.py", line 259, in send_notification if linedetails[1]: IndexError: list index out of range Any way to clear this? -- This message posted from opensolaris.org
2007 May 24
3
Exception Notification Plugin Question
Hi, I have two questions re the Exception Notifier plugin (i.e. which you install via "ruby script/plugin install exception_notification") Q1 - In it''s current setup (where it uses /public/500.html) is it possible to remove the "Status: 500 Internal Server Error Content-Type: text/html" text which seems to mysteriously get place at the top of the page? Q2 -
2008 Jan 24
1
New Batch API method
Anyone started implementing the new Batch api method? BJ ----- BJ Clark the science department bjclark at scidept.com www.scidept.com
2007 Sep 22
1
Howto customize deployment with capistrano2
My deployment requires a few extra steps after ''update_code'' and then again after ''symlink''. Until I migrated to capistrano2, I had my own deploy_with_migration task which added these steps. What would be a recommended approach to accomplish the same using capistrano2? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ You received this