{"id":17330605,"url":"https://github.com/adam12/roda-mailer_preview","last_synced_at":"2025-10-25T20:36:39.454Z","repository":{"id":56892542,"uuid":"81514249","full_name":"adam12/roda-mailer_preview","owner":"adam12","description":"Preview your emails using the Roda mailer plugin","archived":false,"fork":false,"pushed_at":"2024-12-27T16:21:39.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T05:43:27.797Z","etag":null,"topics":["roda","roda-mailer-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adam12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-10T01:46:45.000Z","updated_at":"2024-12-27T16:21:42.000Z","dependencies_parsed_at":"2024-05-02T01:51:39.911Z","dependency_job_id":"3057ae46-e86f-4447-9f8f-61971af01443","html_url":"https://github.com/adam12/roda-mailer_preview","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"1b6d464172930739b45727f1f2411e7042fa89d6"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Froda-mailer_preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Froda-mailer_preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Froda-mailer_preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Froda-mailer_preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adam12","download_url":"https://codeload.github.com/adam12/roda-mailer_preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473129,"owners_count":21109628,"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","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":["roda","roda-mailer-plugin"],"created_at":"2024-10-15T14:51:46.801Z","updated_at":"2025-10-25T20:36:39.377Z","avatar_url":"https://github.com/adam12.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roda Mailer Preview\n\nEasily preview your emails inside your application under a customizable route.\n\nIf you've ever used the `mail_view` gem for Rails, or in recent Rails versions,\nthe ability to preview an email, this is very similar to that.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"roda-mailer_preview\"\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install roda-mailer_preview\n\n## Usage\n\nAside from configuring the Roda mailer plugin as you normally would, routes to preview the emails\nis required, ensuring that the `preview` or `preview_index` methods are called with an instance of\na `Mail` object.\n\n```ruby\nclass App \u003c Roda\n  plugin :mailer_preview\n\n  route do |r|\n    r.on \"mail_view\" do\n      # Preview /the-mailer at /mail_view/test\n      r.is \"test\" do\n        mail = YourMailer.mail(\"/the-mailer\")\n        preview(mail)\n      end\n\n      # Provides an index of all previewable-mailers at /mail_view\n      r.is true do\n        mailers = [\"/test\"]\n        preview_index(mailers)\n      end\n    end\n  end\nend\n```\n\n## Gotchas\n\nThis library doesn't currently support HTML views. I'd likely accept a pull request if you wanted to\nsubmit one.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/adam12/roda-mailer_preview.\n\nI love pull requests! If you fork this project and modify it, please ping me to see\nif your changes can be incorporated back into this project.\n\nThat said, if your feature idea is nontrivial, you should probably open an issue to\n[discuss it](http://www.igvita.com/2011/12/19/dont-push-your-pull-requests/)\nbefore attempting a pull request.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n## Credits\n\nI was shamelessly inspired by the CSS of the MailView gem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam12%2Froda-mailer_preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam12%2Froda-mailer_preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam12%2Froda-mailer_preview/lists"}