diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md deleted file mode 100644 index e1fcfbe..0000000 --- a/DEPLOYMENT.md +++ /dev/null @@ -1,29 +0,0 @@ -### Slack API Explorer - -[![Add to Slack](https://platform.slack-edge.com/img/add_to_slack@2x.png)](http://api-explorer.playplay.io) - -## Deploy Your Own Slack API Explorer - -[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/slack-ruby/slack-api-explorer) - -### MongoDB - -Deploy slack-api-explorer to Heroku and add a MongoLab or Compose MongoDB provider. You can use both free and paid tiers. - -### Environment - -#### SLACK_API_TOKEN - -If your bot services one team, create a new bot integration on Slack and set `SLACK_API_TOKEN` from the bot integration settings on Slack. The first time you start the service it will automatically create a team using this token. - -``` -heroku config:add SLACK_API_TOKEN=... -``` - -#### SLACK_CLIENT_ID and SLACK_CLIENT_SECRET - -If your bot services mutliple teams, create a new bot app and set `SLACK_CLIENT_ID` and `SLACK_CLIENT_SECRET`. - -#### Database Backups - -MongoLab and MongoHQ ensure a system-level backup. You might find it handy to backup the data elsewhere occasionally. If you can run `rake db:heroku:backup[app]` locally as long as you can execute `heroku config --app=...` as well. This creates a `.tar.gz` file from a MongoDB database configured on the Heroku `app` application. diff --git a/Gemfile b/Gemfile index f6578ea..a1353a6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -source 'http://rubygems.org' +source 'https://rubygems.org' ruby '3.3.5' @@ -9,6 +9,7 @@ gem 'mongoid' gem 'mongoid-scroll' gem 'newrelic_rpm' gem 'newrelic-slack-ruby-bot' +gem 'ostruct' gem 'rack' gem 'rack-robotz' gem 'rack-server-pages' diff --git a/Gemfile.lock b/Gemfile.lock index 1fe7795..561e361 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,5 +1,5 @@ GEM - remote: http://rubygems.org/ + remote: https://rubygems.org/ specs: activemodel (7.2.1.1) activesupport (= 7.2.1.1) @@ -179,6 +179,7 @@ GEM nokogiri (1.16.7) mini_portile2 (~> 2.8.2) racc (~> 1.4) + ostruct (0.6.0) parallel (1.26.3) parser (3.3.5.0) ast (~> 2.4.1) @@ -334,6 +335,7 @@ DEPENDENCIES mongoid-shell newrelic-slack-ruby-bot newrelic_rpm + ostruct rack rack-robotz rack-server-pages diff --git a/LICENSE.md b/LICENSE.md index 6dc5225..69e98f2 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016-2019 Daniel Doubrovkine, Vestris LLC, Artsy and Contributors +Copyright (c) 2016-2024 Daniel Doubrovkine, Vestris LLC, Artsy and Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index 211d858..1ccbc88 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Slack API Explorer ================== -[![Add to Slack](https://platform.slack-edge.com/img/add_to_slack.png)](http://api-explorer.playplay.io) +[![Add to Slack](https://platform.slack-edge.com/img/add_to_slack.png)](https://api-explorer.playplay.io) Or roll your own ... @@ -111,23 +111,12 @@ chat postMessage --as_user=true --text="Hello World" --channel=#general } ``` -## Installation - -Create a new Bot Integration under [services/new/bot](http://slack.com/services/new/bot). Note the API token. -You will be able to invoke the explorer by the name you give it in the UI above. - -Run `SLACK_API_TOKEN= foreman start` - -## Production Deployment - -See [DEPLOYMENT](DEPLOYMENT.md) - ## Contributing This bot is built with [slack-ruby-bot](https://github.com/dblock/slack-ruby-bot). See [CONTRIBUTING](CONTRIBUTING.md). ## Copyright and License -Copyright (c) 2016-2019, Daniel Doubrovkine, Vestris LLC, Artsy and [Contributors](CHANGELOG.md). +Copyright (c) 2016-2024, Daniel Doubrovkine, Vestris LLC, Artsy and [Contributors](CHANGELOG.md). This project is licensed under the [MIT License](LICENSE.md). diff --git a/slack-api-explorer/info.rb b/slack-api-explorer/info.rb index d57879c..66a321d 100644 --- a/slack-api-explorer/info.rb +++ b/slack-api-explorer/info.rb @@ -5,7 +5,7 @@ module SlackApiExplorer © Daniel Doubrovkine, Vestris LLC & Contributors, MIT License https://www.vestris.com - Free Service at http://slack-api-explorer.playplay.io + Free Service at https://api-explorer.playplay.io Open-Source at https://github.com/slack-ruby/slack-api-explorer EOS end