
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
A simple wrapper for the http://slack.com API.
NOTE: the most recent version of the gem has not been published to rubygems.org, so specify the path as shown.
Add this line to your application's Gemfile:
gem 'slackr', :git => 'git://github.com/risk-io/slackr.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install slackr
Send a message to slack:
require 'slackr'
slack = Slackr.connect("teamX", "token124", {"channel" => "#myroom", "username" => "systems_bot"})
slack.say "hello world" # posts 'hello world' to the myroom channel as the systems_bot user
slack.say "hello", {"channel" => "#room2", "username" => "joke_bot"} # posts 'hello' to the room2 channel as the joke_but user
Retrieve the channel list:
slack.channels.list # returns a hash of channel objects
Upload a file (Note: You must specify channels by their ID, not name. You can send to multiple by using a comma separated list):
slack.upload '/path/to/a/file.txt', {'channels' => 'C026VKGP7'}
Available customizations include:
## General Notes
- Slackr::Connection stores the connection information
- Slackr::Errors stores the various custom errors thrown
- Slackr::Version stores the gem version
- Slackr::IncomingWebhook stores the logic for the various incoming webhook API endpoints
## TODO
- [ ] Support formats for incoming webhook messages
- [ ] Link parsing and attachments
- [ ] CLI
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
FAQs
Unknown package
We found that slackr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.