{"id":13586910,"url":"https://github.com/kirillshevch/slack_hook","last_synced_at":"2025-10-07T09:52:09.959Z","repository":{"id":35011608,"uuid":"195958775","full_name":"kirillshevch/slack_hook","owner":"kirillshevch","description":"A Simple Interface to Slack Incoming Webhooks Integrations","archived":false,"fork":false,"pushed_at":"2022-10-06T05:59:32.000Z","size":105,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T13:26:32.325Z","etag":null,"topics":["ruby","ruby-slack","slack","slack-api","slack-incoming-webhooks","slack-integration","slack-webhook"],"latest_commit_sha":null,"homepage":"","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/kirillshevch.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":"2019-07-09T07:45:21.000Z","updated_at":"2020-09-16T22:19:26.000Z","dependencies_parsed_at":"2022-08-08T03:16:25.980Z","dependency_job_id":null,"html_url":"https://github.com/kirillshevch/slack_hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kirillshevch/slack_hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fslack_hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fslack_hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fslack_hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fslack_hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirillshevch","download_url":"https://codeload.github.com/kirillshevch/slack_hook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fslack_hook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278755147,"owners_count":26040034,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ruby","ruby-slack","slack","slack-api","slack-incoming-webhooks","slack-integration","slack-webhook"],"created_at":"2024-08-01T15:05:53.882Z","updated_at":"2025-10-07T09:52:09.937Z","avatar_url":"https://github.com/kirillshevch.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# SlackHook\n\n[![Gem Version](https://badge.fury.io/rb/slack_hook.svg)](https://badge.fury.io/rb/slack_hook)\n[![CircleCI](https://circleci.com/gh/kirillshevch/slack_hook.svg?style=svg)](https://circleci.com/gh/kirillshevch/slack_hook)\n\n\nA Simple Interface to Slack Incoming Webhooks Integrations\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'slack_hook'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install slack_hook\n\n## Usage\n\nIntegrate [incoming webhooks](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks) into your workspace.\n\n```ruby\nslack_hook = SlackHook::Incoming.new(\"HOOK_URL\")\n\npayload={\"text\": \"A very important thing has occurred! \u003chttps://alert-system.com/alerts/1234|Click here\u003e for details!\"}\n\nslack_hook.post(payload)\n#\u003cNet::HTTPOK 200 OK readbody=true\u003e\n```\n\n# \u003cimg src='https://github.com/kirillshevch/slack_hook/blob/master/example.jpg' alt='Incoming Hook Example' /\u003e\n\n## Message formatting (payload)\n\nSlaсk currently provides two ways to format messages:\n\n1. [Message attachments](https://api.slack.com/docs/outmoded-messaging) (outmoded)\n2. [Block Kit](https://api.slack.com/block-kit)\n\n`SlackHook` support both approaches.\n\n1. `{ text: 'hook text', attachments: []}`\n1. `{ blocks: [] }`\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kirillshevch/slack_hook.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirillshevch%2Fslack_hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirillshevch%2Fslack_hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirillshevch%2Fslack_hook/lists"}