slack-notifier:一个简单的包装器,用于发布到松弛的频道

时间:2021-05-11 20:47:21
【文件属性】:
文件名称:slack-notifier:一个简单的包装器,用于发布到松弛的频道
文件大小:33KB
文件格式:ZIP
更新时间:2021-05-11 20:47:21
ruby slack Ruby 一个简单的包装器,用于将通知发送到 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中: gem "slack-notifier" 设置默认值 在初始化时,您可以通过在初始化块中调用defaults来设置默认有效载荷: notifier = Slack :: Notifier
【文件预览】:
slack-notifier-main
----.gitignore(95B)
----.env-example(40B)
----.rubocop.yml(1KB)
----slack-notifier.gemspec(692B)
----bin()
--------test(500B)
----Gemfile(401B)
----docs()
--------upgrade-from-0.6.1.md(830B)
----LICENSE(1KB)
----.rspec(32B)
----readme.md(13KB)
----changelog.md(4KB)
----spec()
--------integration()
--------end_to_end_spec.rb(4KB)
--------lib()
--------spec_helper.rb(747B)
----.hound.yml(34B)
----.travis.yml(506B)
----.editorconfig(236B)
----lib()
--------slack-notifier.rb(1KB)
--------slack-notifier()
----Rakefile(306B)

网友评论