一个简单的包装器,用于将通知发送到 webhooks。 例 require 'slack-notifier' notifier = Slack :: Notifier . new "WEBHOOK_URL" notifier . ping "Hello World" # => if your webhook is setup, will message "Hello World" # => to the default channel you set in slack 安装 安装最新的稳定版本: $ gem install slack-notifier 或使用 ,将其添加到您的Gemfile