{"id":21519330,"url":"https://github.com/alexwayfer/flame-flash","last_synced_at":"2025-04-09T22:09:01.481Z","repository":{"id":3946470,"uuid":"51474650","full_name":"AlexWayfer/flame-flash","owner":"AlexWayfer","description":"Flash plugin for Flame-framework","archived":false,"fork":false,"pushed_at":"2025-04-04T12:46:05.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T22:08:55.074Z","etag":null,"topics":["flame","flame-plugin","flash","flashes","ruby"],"latest_commit_sha":null,"homepage":null,"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/AlexWayfer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-02-10T21:44:20.000Z","updated_at":"2025-01-05T19:33:37.000Z","dependencies_parsed_at":"2023-07-05T18:31:50.534Z","dependency_job_id":"aa71c2a0-4a1e-4827-b02c-5a5ce00c9bdb","html_url":"https://github.com/AlexWayfer/flame-flash","commit_stats":{"total_commits":156,"total_committers":4,"mean_commits":39.0,"dds":0.3846153846153846,"last_synced_commit":"c8bfad7dbc1f816545c0bddab60e92b89dacb070"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fflame-flash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fflame-flash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fflame-flash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fflame-flash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexWayfer","download_url":"https://codeload.github.com/AlexWayfer/flame-flash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119294,"owners_count":21050755,"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":["flame","flame-plugin","flash","flashes","ruby"],"created_at":"2024-11-24T00:57:27.720Z","updated_at":"2025-04-09T22:09:01.448Z","avatar_url":"https://github.com/AlexWayfer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flame Flash\n\n[![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/AlexWayfer/flame-flash?style=flat-square)](https://cirrus-ci.com/github/AlexWayfer/flame-flash)\n[![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/flame-flash/main.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/flame-flash)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/AlexWayfer/flame-flash.svg?style=flat-square)](https://codeclimate.com/github/AlexWayfer/flame-flash)\n![Depfu](https://img.shields.io/depfu/AlexWayfer/flame-flash?style=flat-square)\n[![Inline docs](https://inch-ci.org/github/AlexWayfer/flame-flash.svg?branch=main)](https://inch-ci.org/github/AlexWayfer/flame-flash)\n[![Gem](https://img.shields.io/gem/v/flame-flash.svg?style=flat-square)](https://rubygems.org/gems/flame-flash)\n[![License](https://img.shields.io/github/license/AlexWayfer/flame-flash.svg?style=flat-square)](LICENSE.txt)\n\n[Flashes](http://guides.rubyonrails.org/action_controller_overview.html#the-flash)\nfor [Flame](https://github.com/AlexWayfer/flame).\n\n## Usage\n\n```ruby\n# Gemfile\ngem 'flame-flash'\n\n# config.ru\nrequire 'flame-flash' # or `Bundler.require`\n\n# _controller.rb\ninclude Flame::Flash\n```\n\n```erb\n\u003c!-- layout.html.erb --\u003e\n\n\u003c%\n  %i[error warning notice].each do |type|\n    flash[type].each do |text|\n%\u003e\n      \u003cp class=\"flash \u003c%= type %\u003e\"\u003e\n        \u003c%= text %\u003e\n      \u003c/p\u003e\n\u003c%\n    end\n  end\n%\u003e\n```\n\n## Examples\n\n```ruby\nclass PostsController \u003c Flame::Controller\n  def update\n    flash[:error] = \"You don't have permissions\"\n    redirect :show\n  end\n\n  def delete\n    redirect :show, notice: 'Deleted'\n  end\n\n  def move\n    redirect :index, flash: { success: 'Moved' }\n  end\n\n  def create\n    flash.now[:error] = 'Not enought permissions'\n    view :new\n  end\nend\n```\n\n### Reserved keys\n\n*   `error`\n*   `warning`\n*   `notice`\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies.\n\nThen, run `toys rspec` to run the tests.\n\nTo install this gem onto your local machine, run `toys gem install`.\n\nTo release a new version, run `toys gem release %version%`.\nSee how it works [here](https://github.com/AlexWayfer/gem_toys#release).\n\n## Contributing\n\nBug reports and pull requests are welcome on [GitHub](https://github.com/AlexWayfer/flame-flash).\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Fflame-flash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexwayfer%2Fflame-flash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Fflame-flash/lists"}