{"id":27402548,"url":"https://github.com/tyabe/goatmail","last_synced_at":"2025-04-14T04:29:10.812Z","repository":{"id":25163698,"uuid":"28586640","full_name":"tyabe/goatmail","owner":"tyabe","description":"a Sinatra Application to browse the email sent by letter_opener","archived":false,"fork":false,"pushed_at":"2018-02-12T16:52:34.000Z","size":316,"stargazers_count":9,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T16:04:23.410Z","etag":null,"topics":["letter-opener","padrino","rails","ruby","sinatra"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kangax/fabric.js","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyabe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-29T09:10:32.000Z","updated_at":"2020-04-03T12:27:43.000Z","dependencies_parsed_at":"2022-08-23T22:00:31.837Z","dependency_job_id":null,"html_url":"https://github.com/tyabe/goatmail","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyabe%2Fgoatmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyabe%2Fgoatmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyabe%2Fgoatmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyabe%2Fgoatmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyabe","download_url":"https://codeload.github.com/tyabe/goatmail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248821436,"owners_count":21166868,"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":["letter-opener","padrino","rails","ruby","sinatra"],"created_at":"2025-04-14T04:29:09.894Z","updated_at":"2025-04-14T04:29:10.795Z","avatar_url":"https://github.com/tyabe.png","language":"Ruby","readme":"# Goatmail\n\n[![Gem Version](https://badge.fury.io/rb/goatmail.svg)](http://badge.fury.io/rb/goatmail)\n[![Build Status](https://travis-ci.org/tyabe/goatmail.svg)](https://travis-ci.org/tyabe/goatmail)\n[![Coverage Status](https://img.shields.io/coveralls/tyabe/goatmail.svg)](https://coveralls.io/r/tyabe/goatmail?branch=master)\n[![Code Climate](https://codeclimate.com/github/tyabe/goatmail/badges/gpa.svg)](https://codeclimate.com/github/tyabe/goatmail)\n[![Dependency Status](https://gemnasium.com/tyabe/goatmail.svg)](https://gemnasium.com/tyabe/goatmail)\n\nA Sinatra-based frontend to the [letter_opener](https://github.com/ryanb/letter_opener).  \nThis provides almost the same feature as the [letter_opener_web](https://github.com/fgrehm/letter_opener_web).  \nletter_opener_web is Rails based application. It's very useful.\nBut, I wanted a more simple application.\n\nTry it out in [https://goatmail.herokuapp.com/](https://goatmail.herokuapp.com/).\n\n## Installation\n\nFirst add the gem to your development environment and run the bundle command to install it.\n\n    gem 'goatmail', :group =\u003e :development\n\n## Rails Setup\n\nThen set the delivery method in `config/environments/development.rb`\n\n```ruby\n  # If you will specify a message file location.\n  # Goatmail.location = Rails.root.join('tmp/goatmail')\n  config.action_mailer.delivery_method = :goatmail\n```\n\nAnd mount app, add to your routes.rb\n\n```ruby\nSample::Application.routes.draw do\n  if Rails.env.development?\n    mount Goatmail::App, at: \"/inbox\"\n  end\nend\n```\n\nIf you use the Rails 5, Please use a combination with the Sinatra 2.0 later version.\n\n## Padrino Setup\n\nThen set the delivery method and mount app in `config/apps.rb`\n\n```ruby\nPadrino.configure_apps do\n  if Padrino.env == :development\n    # If you will specify a message file location.\n    # Goatmail.location = Padrino.root('tmp/goatmail')\n    set :delivery_method, Goatmail::DeliveryMethod =\u003e {}\n  end\nend\n\nif Padrino.env == :development\n  Padrino.mount('Goatmail::App').to('/inbox')\nend\nPadrino.mount('SampleProject::App', :app_file =\u003e Padrino.root('app/app.rb')).to('/')\n```\n\nIf an exception occurs that \"Gem Load Error is: undefined method 'version' for Padrino:Module\", please try this:\n\n```ruby\n# Gemfile\ngem 'goatmail', :group =\u003e :development, :require =\u003e false\n\n# config/boot.rb\nPadrino.before_load do\n  require 'goatmail'\nend\n```\n\n\n## Sinatra Sample\n\n```ruby\n# app.rb\nmodule Sample\n  class App \u003c Sinatra::Base\n    configure do\n      set :root, File.dirname(__FILE__)\n      if ENV['RACK_ENV'] == 'development'\n        Goatmail.location = File.join(\"#{root}/tmp/goatmail\")\n        Mail.defaults do\n          delivery_method Goatmail::DeliveryMethod\n        end\n      end\n    end\n  end\nend\n```\n\n```ruby\n# config.ru\nmap '/' do\n  run Sample::App.new\nend\n\nif ENV['RACK_ENV'] == 'development'\n  map '/inbox' do\n    run Goatmail::App.new\n  end\nend\n```\n\nSee: [Sample Applications](https://github.com/tyabe/goatmail_sample)\n\n## Contributing\n\n1. Fork it ( https://github.com/tyabe/goatmail/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyabe%2Fgoatmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyabe%2Fgoatmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyabe%2Fgoatmail/lists"}