{"id":29823799,"url":"https://github.com/javier/mailer_twitterable","last_synced_at":"2025-07-29T02:08:48.736Z","repository":{"id":579230,"uuid":"212062","full_name":"javier/mailer_twitterable","owner":"javier","description":"rails plugin to send twitter updates every time an ActionMailer model sends an e-mail. Only selected ActionMailer models will be twittered","archived":false,"fork":false,"pushed_at":"2009-06-12T13:39:38.000Z","size":88,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-04-12T16:56:51.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"astaxie/beego","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javier.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-05-28T00:05:39.000Z","updated_at":"2018-10-05T09:32:52.000Z","dependencies_parsed_at":"2022-07-07T14:21:20.598Z","dependency_job_id":null,"html_url":"https://github.com/javier/mailer_twitterable","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/javier/mailer_twitterable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmailer_twitterable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmailer_twitterable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmailer_twitterable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmailer_twitterable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javier","download_url":"https://codeload.github.com/javier/mailer_twitterable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmailer_twitterable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617643,"owners_count":24116208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-29T02:08:48.177Z","updated_at":"2025-07-29T02:08:48.727Z","avatar_url":"https://github.com/javier.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"MailerTwitterable\n=================\n\nmailer_twitterable is a rails plugin to send twitter updates every time an e-mail is sent from the application.\n\nOnly selected ActionMailer models will be twittered, so you can control for which messages you are going to receive updates.\n\nYou can use this plugin together with ExceptionNotifier so you can get a twitter update every time your application launches an exception in production. You could also use it to trace the typical UserNotifier model and monitor the signups/signouts of your users.\n\nThe plugin depends on the \"twitter\" gem\n\n\nInstallation\n=============\n\nYou can install in two ways. \n\n\tRecommended installation method: Via the provided rails template (rails \u003e= 2.3) \n\t==================================================================\n\n\t1. Execute the following rake task from your project root directory\n\n\t\trake rails:template LOCATION=http://github.com/javier/mailer_twitterable/raw/a7b796a69165c4ef68215aa91630ee2897da0c8a/rails_template.rb\n\n\n\t2. The template could force to install the twitter gem (and its dependencies) but if you are like me, you don't like anyone messing with your gems repository, so the template will only add the gem dependency to your environment.rb file, but you need to install it manually with the command\n\n\t\trake gems:install\n\n\n\n\tManual Installation\n\t===================\n\t\n\t1. Install the twitter gem \n\t\n\t\t(sudo) gem install twitter\n\t\t\n\t2. Install the mailer twitterable plugin \n\t\t(ruby) script/plugin install git://github.com/javier/mailer_twitterable.git\n\t\t\n\t3. Generate the plugin config file\n\t\t(ruby) script/generate mailer_twitterable_yml\n\t\t\n\t\t\nConfiguration\n==============\n\n\tAll the configuration from the plugin is done in the config/mailer_twitterable.yml file (automatically created by using the template, or via the generator in the manual installation).\n\t\n\tThis file is pretty simple. \n\t\n\t\t1. \tIntroduce the user/password of the twitter account you want to use in each of your environments\n\t\t\t\t\n\t\t2. \tModify, if you want, the update line that will be sent. By default it will use the timestamp in UTC and the mail subject. \n\t\t\tIn evaluation time, you will have a variable named \"mail\" available. This is an instance of TMAIL::MAIL and you can use, for example, mail.subject or mail.to.\n\t\t\tNotice the whole string is quoted with %Q() and you will have to use #{} inside it if you want to interpolate any parameters. A sample string would be\n\t\t\t\n\t\t\t\tformat: \"%Q(mail send to #{mail.to} at #{Time.now.utc.strftime('%Y%m%d %H%M%S')} with subject #{mail.subject})\"\n\t\t\t\n\t\t3. \tEnter the name of the models you want to observe in the models array. Please note the \"models:\" entry in this yaml is an Array, so the model names must be preceeded by a dash, like for example\n\t\t\n\t\t\t models:\n\t \t\t\t- ExceptionNotifier  \n\t \t\t\t- UserNotifier \n\t\n\t\nHow it works\n===============\t\n\t\n\tThe plugin intercepts every call to the \"deliver\" method in ActionMailer::Base. Every time a mail is delivered, the plugin checks if the current Mailer object is in the \"models\" array of the configuration file.\n\tIf the model is configured to be twitterable, a twitter message will be composed using the \"format\" property in your configuration file and sent as an update\n\t\n\t   \n\nFeel free to send any updates you consider interesting. And remember, if you liked these plugins, you can find some other interesting contributions at http://spainrb.org/projects\n\nHappy forking!\n\nCopyright (c) 2009 javier ramirez (http://javier.github.com http://formatinternet.com), released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavier%2Fmailer_twitterable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavier%2Fmailer_twitterable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavier%2Fmailer_twitterable/lists"}