{"id":26770572,"url":"https://github.com/fakhir-shad/flash_notifier","last_synced_at":"2025-04-15T18:06:41.915Z","repository":{"id":56846707,"uuid":"143422696","full_name":"fakhir-shad/flash_notifier","owner":"fakhir-shad","description":"Integrate Flash Messages with ease using Noty JS, Toastr JS or Bootstrap","archived":false,"fork":false,"pushed_at":"2019-02-01T11:48:44.000Z","size":44,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T18:05:59.139Z","etag":null,"topics":["bootstrap","bootstrap-alert","flash-messages","noty-js","toastr-js"],"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/fakhir-shad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-03T12:07:22.000Z","updated_at":"2023-06-06T15:59:42.000Z","dependencies_parsed_at":"2022-09-09T01:00:50.491Z","dependency_job_id":null,"html_url":"https://github.com/fakhir-shad/flash_notifier","commit_stats":null,"previous_names":["fakhir-shad/flash_notifier","vantsome/flash_notifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakhir-shad%2Fflash_notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakhir-shad%2Fflash_notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakhir-shad%2Fflash_notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakhir-shad%2Fflash_notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fakhir-shad","download_url":"https://codeload.github.com/fakhir-shad/flash_notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249125961,"owners_count":21216705,"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":["bootstrap","bootstrap-alert","flash-messages","noty-js","toastr-js"],"created_at":"2025-03-28T23:15:51.270Z","updated_at":"2025-04-15T18:06:41.895Z","avatar_url":"https://github.com/fakhir-shad.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlashNotifier\n\nIf you are tired of integrating flash messages in your rails application over and over again then this gem is for you!\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'flash_notifier'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install flash_notifier\n\n## Usage\n\n### For Bootstrap Flash Messages\n    \nAdd this helper method in your layout and make sure you have bootstrap installed!\n\n    \u003c%= build_bootstrap_flash %\u003e\n    \nYou can make the flash dismissible by passing following optional options to the above helper method\n\n    \u003c%= build_bootstrap_flash dismiss: true, timeout: 5000 %\u003e\n    \n##### default timeout duration is 5000, ignore this option if you want to use default timeout duration\n\nYou can add your own wrapper class by passing following parameter\n\n    \u003c%= build_bootstrap_flash wrapper_class: 'my-flash-notification' %\u003e\n    \n### For other two libraries follow following steps            \n\n#### Step 1: Choose a Library Noty JS or Toastr JS\n\n#### For Noty JS 3.1.4 ([Official Website](https://ned.im/noty/#/))\n\nImport noty library in your application.js\n\n    //= require noty_lib\n    \nAdd noty stylesheet in your application.scss\n\n    @import \"noty\";\n    \n#### For Toastr JS 2.1.4 ([Official Website](https://codeseven.github.io/toastr/))\n\nImport noty library in your application.js\n\n    //= require toastr_lib\n    \nAdd noty stylesheet in your application.scss\n\n    @import \"toastr.min\";\n    \n### Step 2\n    \nIn your layout add this helper method\n\n    \u003c%= build_flash %\u003e\n    \n### Optional Step 3: Pass options to helper method  \n    \nTo manage progress bar pass param\n\n    \u003c%= build_flash progressBar: true %\u003e\n    \nTo set auto hide timeout pass param\n\n     \u003c%= build_flash timeout: 3500 %\u003e\n     \nTo set default theme pass param (Note this param works only for Noty JS)\n\n     \u003c%= build_flash theme: 'mint' %\u003e\n    \n##### Values for these params and additional config options can be found here [Noty JS](https://ned.im/noty/#/options), [Toastr JS](https://codeseven.github.io/toastr/demo.html)\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at [https://github.com/fakhir-shad/flash_notifier](https://github.com/fakhir-shad/flash_notifier). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the FlashNotifier project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fakhir-shad/flash_notifier/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffakhir-shad%2Fflash_notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffakhir-shad%2Fflash_notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffakhir-shad%2Fflash_notifier/lists"}