Sign inSign up

librariesio/lib2slack

By librariesio

•Updated over 8 years ago

Sinatra app for posting to slack whenever a new version of a dependency is discovered

Image
0

260

librariesio/lib2slack repository overview

⁠Lib2Slack⁠

Sinatra app for posting to slack whenever a new version of a dependency is discovered by Libraries.io⁠ using the repository web hook feature.

screen shot 2016-06-10 at 11 10 41 am

⁠Usage

The easiest option is to deploy to heroku with the deploy button below:

Deploy

Then add the url of your app to web hooks section for your repo on https://libraries.io⁠


Or to run it somewhere else, clone it from github:

git clone https://github.com/librariesio/lib2slack.git⁠

Install dependencies:

bundle install

Setup config environment variables:

SLACK_API_TOKEN=myslackapitoken
SLACK_CHANNEL=#general

Start the app:

rackup

Add the url of your app to web hooks section for your repo on https://libraries.io⁠

⁠Development

Source hosted at GitHub⁠. Report issues/feature requests on GitHub Issues⁠. Follow us on Twitter @librariesio⁠. We also hangout on Gitter⁠.

⁠Getting Started

New to Ruby? No worries! You can follow these instructions to install a local server, or you can use the included Vagrant setup.

⁠Installing a Local Server

First things first, you'll need to install Ruby 2.5.0. I recommend using the excellent rbenv⁠, and ruby-build⁠

rbenv install 2.5.0
rbenv global 2.5.0
⁠Note on Patches/Pull Requests
  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Add documentation if necessary.
  • Commit, do not change procfile, version, or history.
  • Send a pull request. Bonus points for topic branches.

Copyright (c) 2016 Andrew Nesbitt. See LICENSE⁠ for details.

Tag summary

Content type

Image

Digest

Size

91.8 MB

Last updated

over 8 years ago

docker pull librariesio/lib2slack