{"id":27402556,"url":"https://github.com/tyabe/letter_opener-web","last_synced_at":"2025-04-14T04:29:11.212Z","repository":{"id":17917905,"uuid":"20884130","full_name":"tyabe/letter_opener-web","owner":"tyabe","description":"Moved to \"Goatmail\"","archived":false,"fork":false,"pushed_at":"2014-12-29T09:49:37.000Z","size":528,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T03:55:11.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/tyabe/goatmail","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"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-06-16T12:33:34.000Z","updated_at":"2017-09-28T06:20:41.000Z","dependencies_parsed_at":"2022-08-30T08:31:03.606Z","dependency_job_id":null,"html_url":"https://github.com/tyabe/letter_opener-web","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyabe%2Fletter_opener-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyabe%2Fletter_opener-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyabe%2Fletter_opener-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyabe%2Fletter_opener-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyabe","download_url":"https://codeload.github.com/tyabe/letter_opener-web/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":[],"created_at":"2025-04-14T04:29:10.367Z","updated_at":"2025-04-14T04:29:11.210Z","avatar_url":"https://github.com/tyabe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LetterOpener::Web\n\n## Notice\nThis project moved to [Goatmail](https://github.com/tyabe/goatmail).\n\n[![Gem Version](https://badge.fury.io/rb/letter_opener-web.svg)](http://badge.fury.io/rb/letter_opener-web)\n[![Build Status](https://travis-ci.org/tyabe/letter_opener-web.svg)](https://travis-ci.org/tyabe/letter_opener-web)\n[![Coverage Status](https://coveralls.io/repos/tyabe/letter_opener-web/badge.png)](https://coveralls.io/r/tyabe/letter_opener-web)\n[![Code Climate](https://codeclimate.com/github/tyabe/letter_opener-web.png)](https://codeclimate.com/github/tyabe/letter_opener-web)\n[![Dependency Status](https://gemnasium.com/tyabe/letter_opener-web.svg)](https://gemnasium.com/tyabe/letter_opener-web)\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.\n\n## Installation\n\nFirst add the gem to your development environment and run the bundle command to install it.\n\n    gem 'letter_opener-web', :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  # LetterOpener.location = Rails.root.join('tmp/letter_opener')\n  config.action_mailer.delivery_method = :letter_opener\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 LetterOpener::Web::Engine, at: \"/inbox\"\n  end\nend\n```\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    # LetterOpener.location = Padrino.root('tmp/letter_opener')\n    set :delivery_method, LetterOpener::DeliveryMethod =\u003e {}\n  end\nend\n\nif Padrino.env == :development\n  Padrino.mount('LetterOpener::Web::App').to('/inbox')\nend\nPadrino.mount('SampleProject::App', :app_file =\u003e Padrino.root('app/app.rb')).to('/')\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        LetterOpener.location = File.join(\"#{root}/tmp\")\n        Mail.defaults do\n          delivery_method LetterOpener::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\nmap '/inbox' do\n  run LetterOpener::Web::App.new\nend\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/tyabe/letter_opener-web/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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyabe%2Fletter_opener-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyabe%2Fletter_opener-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyabe%2Fletter_opener-web/lists"}