{"id":26062374,"url":"https://github.com/work-design/rails_notice","last_synced_at":"2025-04-11T11:09:31.239Z","repository":{"id":15881297,"uuid":"78926489","full_name":"work-design/rails_notice","owner":"work-design","description":"notification sends with websocket, mailers, sms","archived":false,"fork":false,"pushed_at":"2025-03-12T03:08:33.000Z","size":885,"stargazers_count":2,"open_issues_count":6,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-08T16:16:43.929Z","etag":null,"topics":["engine","notifications"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/work-design.png","metadata":{"funding":{"github":["qinmingyuan"]},"files":{"readme":"README.en.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-01-14T07:56:12.000Z","updated_at":"2025-03-12T03:08:36.000Z","dependencies_parsed_at":"2024-08-29T12:55:02.988Z","dependency_job_id":"6cf93a09-c1ae-4591-880c-15b7d4c53153","html_url":"https://github.com/work-design/rails_notice","commit_stats":null,"previous_names":["yougexiangfa/rails_notice"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_notice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_notice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_notice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_notice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/work-design","download_url":"https://codeload.github.com/work-design/rails_notice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248381787,"owners_count":21094527,"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":["engine","notifications"],"created_at":"2025-03-08T15:59:42.271Z","updated_at":"2025-04-11T11:09:31.213Z","avatar_url":"https://github.com/work-design.png","language":"Ruby","funding_links":["https://github.com/sponsors/qinmingyuan"],"categories":[],"sub_categories":[],"readme":"# RailsNotice\nShort description and motivation.\n\n## Usage\n### Set the cable.yml\nShould set adapter as redis in development\n```yaml\ndevelopment:\n  adapter: redis\n  url: redis://localhost:6379/1\n```\n\n### Import the js and css in the page which you want show notifications\n```erb\n\u003c%= javascript_include_tag 'rails_notice/notice_channel', 'data-turbolinks-eval': 'false' %\u003e\n\u003c%= stylesheet_link_tag 'rails_notice/cable' %\u003e\n```\n\n### View: add link\n```erb\n\u003c%= render 'notice_link' %\u003e\n```\n\n### Model Setting\n```ruby\n# which model can receive notifications\nclass User \u003c ApplicationRecord\n  include RailsNotice::Receiver\nend\n\n```\n\n### Controller Setting\n```ruby\nclass ApplicationController \u003c ActionController::Base\n  include RailsNotice::Application\n  \nend\n```\n\n### Channel Setting\n```ruby\nmodule ApplicationCable\n  class Connection \u003c ActionCable::Connection::Base\n    prepend RailsNoticeConnection\n\n  end\nend\n```\n\n## License\nLicense 采用 [LGPL-3.0](https://opensource.org/licenses/LGPL-3.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Frails_notice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwork-design%2Frails_notice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Frails_notice/lists"}