{"id":22808206,"url":"https://github.com/sixarm/sixarm_ruby_sign_out","last_synced_at":"2026-04-27T21:31:22.639Z","repository":{"id":137270528,"uuid":"684545","full_name":"SixArm/sixarm_ruby_sign_out","owner":"SixArm","description":"SixArm.com » Ruby » SignOut abstract interface for apps","archived":false,"fork":false,"pushed_at":"2025-04-14T09:21:12.000Z","size":372,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-28T17:42:18.055Z","etag":null,"topics":["authentication","gem","rails","ruby"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2010-05-25T04:49:22.000Z","updated_at":"2025-04-14T09:21:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"60b75e0b-6f19-46f6-b23a-1c4f00c4a93d","html_url":"https://github.com/SixArm/sixarm_ruby_sign_out","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SixArm/sixarm_ruby_sign_out","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_out","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_out/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_out/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_out/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_sign_out/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_sign_out/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["authentication","gem","rails","ruby"],"created_at":"2024-12-12T11:08:33.422Z","updated_at":"2026-04-27T21:31:22.625Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com → Ruby → \u003cbr\u003e SignOut abstract interface for apps\n\n\u003c!--header-open--\u003e\n\n[![Gem Version](https://badge.fury.io/rb/sixarm_ruby_sign_out.svg)](http://badge.fury.io/rb/sixarm_ruby_sign_out)\n[![Build Status](https://travis-ci.org/SixArm/sixarm_ruby_sign_out.png)](https://travis-ci.org/SixArm/sixarm_ruby_sign_out)\n[![Code Climate](https://api.codeclimate.com/v1/badges/2736098eb76bd5ac39f3/maintainability)](https://codeclimate.com/github/SixArm/sixarm_ruby_sign_out/maintainability)\n\n* Git: \u003chttps://github.com/SixArm/sixarm_ruby_sign_out\u003e\n* Doc: \u003chttp://sixarm.com/sixarm_ruby_sign_out/doc\u003e\n* Gem: \u003chttps://rubygems.org/gems/sixarm_ruby_sign_out\u003e\n* Contact: Joel Parker Henderson, \u003cjoel@sixarm.com\u003e\n* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).\n\n\u003c!--header-shut--\u003e\n\n\n## Introduction\n\nSignOut is a simple abstract interface for apps.\n\nYou can include this module in a Rails application controller,\nthen your controller can define any of these concrete methods.\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_sign_out/doc\u003e\n\nWant to help? We're happy to get pull requests.\n\n\n\u003c!--install-open--\u003e\n\n## Install\n\n### Gem\n\nTo install this gem in your shell or terminal:\n\n    gem install sixarm_ruby_sign_out\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_sign_out'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_sign_out'\n\n\u003c!--install-shut--\u003e\n\n\n## Details\n\nThis provides one top-level method:\n\n    sign_out(options=nil) =\u003e true for success, false for failure\n\nThe top level method will call mid-level methods\nthat you will define in your own controller.\n\nsign_out calls:\n\n    sign_out_attempt(options=nil), e.g. unset the current user\n    sign_out_success(options=nil), e.g. redirect to a goodbye page\n    sign_out_failure(options=nil), e.g. flash warning help message\n\n\n## AuthLogic Example\n\nAuthLogic provides this example:\n\n    def destroy\n      current_user_session.destroy\n     redirect_to new_user_session_url\n    end\n\nThe same example written using Sign Out to provide better structure and security:\n\n    def sign_out_attempt\n      current_user_session.destroy\n      current_user_session.frozen? or raise SecurityError, \"Problem with sign out ... \", caller\n    end\n\n    def sign_out_success\n      redirect_to new_user_session_url\n    end\n\n    def sign_out_failure\n      # The AuthLogic example doesn't handle this case unfortunately;\n      # we should handle it because it indicates something is amiss.\n    end\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_sign_out","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_sign_out","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_sign_out/lists"}