From f9859ffbac393be9d1f70948b79064dfa945721d Mon Sep 17 00:00:00 2001 From: dblock Date: Sun, 21 Aug 2016 11:56:05 -0400 Subject: [PATCH] Added Danger, PR linting. --- .travis.yml | 36 ++++++++++++--- CHANGELOG.md | 56 +++++++++++------------ CONTRIBUTING.md | 10 ++-- Dangerfile | 1 + Gemfile | 1 + README.md | 16 +++---- RELEASING.md | 2 +- TUTORIAL.md | 2 +- UPGRADING.md | 4 +- lib/slack-ruby-bot/about.rb | 2 +- lib/slack-ruby-bot/commands/help.rb | 2 +- slack-ruby-bot.gemspec | 2 +- spec/slack-ruby-bot/commands/help_spec.rb | 2 +- 13 files changed, 80 insertions(+), 56 deletions(-) create mode 100644 Dangerfile diff --git a/.travis.yml b/.travis.yml index c5dd6db..a9a32d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,29 @@ -rvm: - - 2.3.0 -env: - - CONCURRENCY=celluloid-io - - CONCURRENCY=celluloid-io WITH_GIPHY=true - - CONCURRENCY=faye-websocket - - CONCURRENCY=faye-websocket WITH_GIPHY=true +language: ruby + +cache: bundler + +matrix: + include: + - rvm: 2.3.0 + script: + - bundle exec danger + - rvm: 2.3.0 + env: CONCURRENCY=celluloid-io + - rvm: 2.3.0 + env: CONCURRENCY=faye-websocket + - rvm: 2.3.0 + env: CONCURRENCY=celluloid-io WITH_GIPHY=true + - rvm: 2.3.0 + env: CONCURRENCY=faye-websocket WITH_GIPHY=true + - rvm: 2.2 + - rvm: 2.1 + - rvm: 2.0 + - rvm: rbx-2 + - rvm: jruby-19mode + - rvm: ruby-head + - rvm: jruby-head + allow_failures: + - rvm: ruby-head + - rvm: jruby-head + - rvm: jruby-19mode + - rvm: rbx-2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 96c20c2..7765f5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,24 +1,24 @@ ### 0.8.3 (Next) * Your contribution here. -* [#89](https://github.com/dblock/slack-ruby-bot/pull/89): Drop giphy dependency - [@tmsrjs](https://github.com/tmsrjs). +* [#89](https://github.com/slack-ruby/slack-ruby-bot/pull/89): Drop giphy dependency - [@tmsrjs](https://github.com/tmsrjs). ### 0.8.2 (7/10/2016) -* [#85](https://github.com/dblock/slack-ruby-bot/issues/85): Fix: regression in bot instance logging - [@dblock](https://github.com/dblock). +* [#85](https://github.com/slack-ruby/slack-ruby-bot/issues/85): Fix: regression in bot instance logging - [@dblock](https://github.com/dblock). ### 0.8.1 (7/10/2016) -* [#69](https://github.com/dblock/slack-ruby-bot/pull/69): Ability to add help info to bot and commands - [@accessd](https://github.com/accessd). -* [#75](https://github.com/dblock/slack-ruby-bot/issues/75): Guarantee order of command evaluation - [@dblock](https://github.com/dblock). -* [#76](https://github.com/dblock/slack-ruby-bot/issues/76): Infinity error when app disabled - [@slayershadow](https://github.com/SlayerShadow). -* [#81](https://github.com/dblock/slack-ruby-bot/pull/81): Removed dependency on Bundler - [@derekddecker](https://github.com/derekddecker). -* [#84](https://github.com/dblock/slack-ruby-bot/pull/84): Removed dependency on ActiveSupport - [@rmulligan](https://github.com/rmulligan). +* [#69](https://github.com/slack-ruby/slack-ruby-bot/pull/69): Ability to add help info to bot and commands - [@accessd](https://github.com/accessd). +* [#75](https://github.com/slack-ruby/slack-ruby-bot/issues/75): Guarantee order of command evaluation - [@dblock](https://github.com/dblock). +* [#76](https://github.com/slack-ruby/slack-ruby-bot/issues/76): Infinity error when app disabled - [@slayershadow](https://github.com/SlayerShadow). +* [#81](https://github.com/slack-ruby/slack-ruby-bot/pull/81): Removed dependency on Bundler - [@derekddecker](https://github.com/derekddecker). +* [#84](https://github.com/slack-ruby/slack-ruby-bot/pull/84): Removed dependency on ActiveSupport - [@rmulligan](https://github.com/rmulligan). ### 0.8.0 (5/5/2016) -* [#32](https://github.com/dblock/slack-ruby-bot/issues/32): Don't include `faye-websocket` by default, support `celluloid-io` - [@dblock](https://github.com/dblock). -* [#54](https://github.com/dblock/slack-ruby-bot/pull/54): Improvements to Hook configuration - [@dramalho](https://github.com/dramalho). +* [#32](https://github.com/slack-ruby/slack-ruby-bot/issues/32): Don't include `faye-websocket` by default, support `celluloid-io` - [@dblock](https://github.com/dblock). +* [#54](https://github.com/slack-ruby/slack-ruby-bot/pull/54): Improvements to Hook configuration - [@dramalho](https://github.com/dramalho). ### 0.7.0 (3/6/2016) @@ -28,12 +28,12 @@ ### 0.6.2 (2/4/2016) -* [#44](https://github.com/dblock/slack-ruby-bot/pull/44): Bot graceful shutdown - [@accessd](https://github.com/accessd). +* [#44](https://github.com/slack-ruby/slack-ruby-bot/pull/44): Bot graceful shutdown - [@accessd](https://github.com/accessd). ### 0.6.1 (1/29/2016) -* [#43](https://github.com/dblock/slack-ruby-bot/issues/43): Issuing a `bot` command terminates bot - [@dblock](https://github.com/dblock). -* [#40](https://github.com/dblock/slack-ruby-bot/pull/40): Added `SlackRubyBot::Config.reset!` - [@accessd](https://github.com/accessd). +* [#43](https://github.com/slack-ruby/slack-ruby-bot/issues/43): Issuing a `bot` command terminates bot - [@dblock](https://github.com/dblock). +* [#40](https://github.com/slack-ruby/slack-ruby-bot/pull/40): Added `SlackRubyBot::Config.reset!` - [@accessd](https://github.com/accessd). ### 0.6.0 (1/9/2016) @@ -49,7 +49,7 @@ ### 0.5.3 (12/28/2015) -* [#36](https://github.com/dblock/slack-ruby-bot/issues/36): Fix: non-English bot aliases now work - [@dblock](https://github.com/dblock). +* [#36](https://github.com/slack-ruby/slack-ruby-bot/issues/36): Fix: non-English bot aliases now work - [@dblock](https://github.com/dblock). ### 0.5.2 (12/26/2015) @@ -58,7 +58,7 @@ ### 0.5.1 (12/23/2015) * Fix: restart sync vs. async - [@dblock](https://github.com/dblock). -* [#33](https://github.com/dblock/slack-ruby-bot/pull/33): `SlackRubyBot::App.instance` now creates an instance of the class on which it is called - [@dmvt](https://github.com/dmvt). +* [#33](https://github.com/slack-ruby/slack-ruby-bot/pull/33): `SlackRubyBot::App.instance` now creates an instance of the class on which it is called - [@dmvt](https://github.com/dmvt). ### 0.5.0 (12/7/2015) @@ -68,29 +68,29 @@ * Extracted `SlackRubyBot::Server` from `SlackRubyBot::App` - [@dblock](https://github.com/dblock). * Fix: explicitly require 'giphy' - [@dblock](https://github.com/dblock). * Fix: undefined method `stop` for `Slack::RealTime::Client` - [@dblock](https://github.com/dblock). -* [#29](https://github.com/dblock/slack-ruby-bot/pull/29): Fixed bot failing to correctly respond to unknown commands when queried with format `@botname` - [@crayment](https://github.com/crayment). -* [#30](https://github.com/dblock/slack-ruby-bot/pull/30): Fix RegexpError when parsing command - [@kuboshizuma](https://github.com/kuboshizuma). +* [#29](https://github.com/slack-ruby/slack-ruby-bot/pull/29): Fixed bot failing to correctly respond to unknown commands when queried with format `@botname` - [@crayment](https://github.com/crayment). +* [#30](https://github.com/slack-ruby/slack-ruby-bot/pull/30): Fix RegexpError when parsing command - [@kuboshizuma](https://github.com/kuboshizuma). ### 0.4.5 (10/29/2015) -* [#23](https://github.com/dblock/slack-ruby-bot/pull/23): Fixed `match` that forced bot name into the expression being evaluated - [@dblock](https://github.com/dblock). -* [#22](https://github.com/dblock/slack-ruby-bot/issues/22), [slack-ruby-client#17](https://github.com/dblock/slack-ruby-client/issues/17): Do not respond to messages from self, override with `allow_message_loops` - [@dblock](https://github.com/dblock). +* [#23](https://github.com/slack-ruby/slack-ruby-bot/pull/23): Fixed `match` that forced bot name into the expression being evaluated - [@dblock](https://github.com/dblock). +* [#22](https://github.com/slack-ruby/slack-ruby-bot/issues/22), [slack-ruby-client#17](https://github.com/slack-ruby/slack-ruby-client/issues/17): Do not respond to messages from self, override with `allow_message_loops` - [@dblock](https://github.com/dblock). ### 0.4.4 (10/5/2015) -* [#17](https://github.com/dblock/slack-ruby-bot/issues/17): Address bot by `name:` - [@dblock](https://github.com/dblock). -* [#19](https://github.com/dblock/slack-ruby-bot/issues/19): Retry on `Faraday::Error::TimeoutError`, `TimeoutError` and `SSLError` - [@dblock](https://github.com/dblock). -* [#3](https://github.com/dblock/slack-ruby-bot/issues/3): Retry on `migration_in_progress` errors during `rtm.start` - [@dblock](https://github.com/dblock). +* [#17](https://github.com/slack-ruby/slack-ruby-bot/issues/17): Address bot by `name:` - [@dblock](https://github.com/dblock). +* [#19](https://github.com/slack-ruby/slack-ruby-bot/issues/19): Retry on `Faraday::Error::TimeoutError`, `TimeoutError` and `SSLError` - [@dblock](https://github.com/dblock). +* [#3](https://github.com/slack-ruby/slack-ruby-bot/issues/3): Retry on `migration_in_progress` errors during `rtm.start` - [@dblock](https://github.com/dblock). * Respond to direct messages without being addressed by name - [@dblock](https://github.com/dblock). * Added `send_gif`, to allow GIFs to be sent without text - [@maclover7](https://github.com/maclover7). ### 0.4.3 (8/21/2015) -* [#13](https://github.com/dblock/slack-ruby-bot/issues/13): You can now address the bot by its Slack @id - [@dblock](https://github.com/dblock). +* [#13](https://github.com/slack-ruby/slack-ruby-bot/issues/13): You can now address the bot by its Slack @id - [@dblock](https://github.com/dblock). ### 0.4.2 (8/20/2015) -* [#12](https://github.com/dblock/slack-ruby-bot/issues/12): Added support for bot aliases - [@dblock](https://github.com/dblock). +* [#12](https://github.com/slack-ruby/slack-ruby-bot/issues/12): Added support for bot aliases - [@dblock](https://github.com/dblock). ### 0.4.1 (7/25/2015) @@ -98,18 +98,18 @@ ### 0.4.0 (7/25/2015) -* Using [slack-ruby-client](https://github.com/dblock/slack-ruby-client) - [@dblock](https://github.com/dblock). +* Using [slack-ruby-client](https://github.com/slack-ruby/slack-ruby-client) - [@dblock](https://github.com/dblock). * Use RealTime API to post messages - [@dblock](https://github.com/dblock). ### 0.3.1 (7/21/2015) -* [#8](https://github.com/dblock/slack-ruby-bot/issues/8): Fix: `undefined method 'strip!' for nil:NilClass` on nil message - [@dblock](https://github.com/dblock). +* [#8](https://github.com/slack-ruby/slack-ruby-bot/issues/8): Fix: `undefined method 'strip!' for nil:NilClass` on nil message - [@dblock](https://github.com/dblock). ### 0.3.0 (7/19/2015) -* [#5](https://github.com/dblock/slack-ruby-bot/issues/5): Added support for free-formed routes via `match` - [@dblock](https://github.com/dblock). -* [#6](https://github.com/dblock/slack-ruby-bot/issues/6): Commands and operators take blocks - [@dblock](https://github.com/dblock). -* [#4](https://github.com/dblock/slack-ruby-bot/issues/4): Messages are posted with `as_user: true` by default - [@dblock](https://github.com/dblock). +* [#5](https://github.com/slack-ruby/slack-ruby-bot/issues/5): Added support for free-formed routes via `match` - [@dblock](https://github.com/dblock). +* [#6](https://github.com/slack-ruby/slack-ruby-bot/issues/6): Commands and operators take blocks - [@dblock](https://github.com/dblock). +* [#4](https://github.com/slack-ruby/slack-ruby-bot/issues/4): Messages are posted with `as_user: true` by default - [@dblock](https://github.com/dblock). ### 0.2.0 (7/10/2015) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 810a8dd..604e75c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,19 +1,19 @@ # Contributing to SlackRubyBot -This project is work of [many contributors](https://github.com/dblock/slack-ruby-bot/graphs/contributors). +This project is work of [many contributors](https://github.com/slack-ruby/slack-ruby-bot/graphs/contributors). -You're encouraged to submit [pull requests](https://github.com/dblock/slack-ruby-bot/pulls), [propose features and discuss issues](https://github.com/dblock/slack-ruby-bot/issues). +You're encouraged to submit [pull requests](https://github.com/slack-ruby/slack-ruby-bot/pulls), [propose features and discuss issues](https://github.com/slack-ruby/slack-ruby-bot/issues). In the examples below, substitute your Github username for `contributor` in URLs. ## Fork the Project -Fork the [project on Github](https://github.com/dblock/slack-ruby-bot) and check out your copy. +Fork the [project on Github](https://github.com/slack-ruby/slack-ruby-bot) and check out your copy. ``` git clone https://github.com/contributor/slack-ruby-bot.git cd slack-ruby-bot -git remote add upstream https://github.com/dblock/slack-ruby-bot.git +git remote add upstream https://github.com/slack-ruby/slack-ruby-bot.git ``` ## Bundle Install and Test @@ -116,7 +116,7 @@ git push origin my-feature-branch -f Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows. ``` -* [#123](https://github.com/dblock/slack-ruby-bot/pull/123): Reticulated splines - [@contributor](https://github.com/contributor). +* [#123](https://github.com/slack-ruby/slack-ruby-bot/pull/123): Reticulated splines - [@contributor](https://github.com/contributor). ``` Amend your previous commit and force push the changes. diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 0000000..0154437 --- /dev/null +++ b/Dangerfile @@ -0,0 +1 @@ +# inherits from https://github.com/slack-ruby/danger diff --git a/Gemfile b/Gemfile index 44650c7..d9b3716 100644 --- a/Gemfile +++ b/Gemfile @@ -4,3 +4,4 @@ gemspec gem ENV['CONCURRENCY'], require: false if ENV.key?('CONCURRENCY') gem 'giphy', require: false if ENV.key?('WITH_GIPHY') +gem 'danger', '~> 2.0' diff --git a/README.md b/README.md index b011a46..28dd2f3 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ Slack-Ruby-Bot ============== [![Gem Version](https://badge.fury.io/rb/slack-ruby-bot.svg)](http://badge.fury.io/rb/slack-ruby-bot) -[![Build Status](https://travis-ci.org/dblock/slack-ruby-bot.svg)](https://travis-ci.org/dblock/slack-ruby-bot) -[![Code Climate](https://codeclimate.com/github/dblock/slack-ruby-bot/badges/gpa.svg)](https://codeclimate.com/github/dblock/slack-ruby-bot) +[![Build Status](https://travis-ci.org/slack-ruby/slack-ruby-bot.svg)](https://travis-ci.org/slack-ruby/slack-ruby-bot) +[![Code Climate](https://codeclimate.com/github/slack-ruby/slack-ruby-bot/badges/gpa.svg)](https://codeclimate.com/github/slack-ruby/slack-ruby-bot) -A generic Slack bot framework written in Ruby on top of [slack-ruby-client](https://github.com/dblock/slack-ruby-client). This library does all the heavy lifting, such as message parsing, so you can focus on implementing slack bot commands. It also attempts to introduce the bare minimum number of requirements or any sorts of limitations. It's a Slack bot boilerplate. +A generic Slack bot framework written in Ruby on top of [slack-ruby-client](https://github.com/slack-ruby/slack-ruby-client). This library does all the heavy lifting, such as message parsing, so you can focus on implementing slack bot commands. It also attempts to introduce the bare minimum number of requirements or any sorts of limitations. It's a Slack bot boilerplate. If you are not familiar with Slack bots or Slack API concepts, you might want to watch [this video](http://code.dblock.org/2016/03/11/your-first-slack-bot-service-video.html). @@ -13,13 +13,13 @@ If you are not familiar with Slack bots or Slack API concepts, you might want to ## Useful to Me? -* If you are just trying to send messages to Slack, use [slack-ruby-client](https://github.com/dblock/slack-ruby-client), which this library is built on top of. -* If you're trying to roll out a full service with Slack button integration, check out [slack-ruby-bot-server](https://github.com/dblock/slack-ruby-bot-server), which uses this library. +* If you are just trying to send messages to Slack, use [slack-ruby-client](https://github.com/slack-ruby/slack-ruby-client), which this library is built on top of. +* If you're trying to roll out a full service with Slack button integration, check out [slack-ruby-bot-server](https://github.com/slack-ruby/slack-ruby-bot-server), which uses this library. * Otherwise, this piece of the puzzle will help you create a single bot instance for one team. ## Stable Release -You're reading the documentation for the **next** release of slack-ruby-bot. Please see the documentation for the [last stable release, v0.8.2](https://github.com/dblock/slack-ruby-bot/tree/v0.8.2) unless you're integrating with HEAD. See [CHANGELOG](CHANGELOG.md) for a history of changes and [UPGRADING](UPGRADING.md) for how to upgrade to more recent versions. +You're reading the documentation for the **next** release of slack-ruby-bot. Please see the documentation for the [last stable release, v0.8.2](https://github.com/slack-ruby/slack-ruby-bot/tree/v0.8.2) unless you're integrating with HEAD. See [CHANGELOG](CHANGELOG.md) for a history of changes and [UPGRADING](UPGRADING.md) for how to upgrade to more recent versions. ## Usage @@ -212,8 +212,8 @@ end ### Animated GIFs -The `SlackRubyBot::Client` implementation comes with GIF support. -To enable it simply add `gem 'giphy'` to your **Gemfile**. +The `SlackRubyBot::Client` implementation comes with GIF support. +To enable it simply add `gem 'giphy'` to your **Gemfile**. **Note:** Bots send animated GIFs in default commands and errors. ```ruby diff --git a/RELEASING.md b/RELEASING.md index 6eb01a6..227a276 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -11,7 +11,7 @@ bundle install rake ``` -Check that the last build succeeded in [Travis CI](https://travis-ci.org/dblock/slack-ruby-bot) for all supported platforms. +Check that the last build succeeded in [Travis CI](https://travis-ci.org/slack-ruby/slack-ruby-bot) for all supported platforms. Increment the version, modify [lib/slack-ruby-bot/version.rb](lib/slack-ruby-bot/version.rb). diff --git a/TUTORIAL.md b/TUTORIAL.md index 8f4c4b0..7aff1b5 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -10,7 +10,7 @@ A typical production Slack bot is a combination of a vanilla web server and a we #### Gemfile -Create a `Gemfile` that uses [slack-ruby-bot](https://github.com/dblock/slack-ruby-bot), [sinatra](https://github.com/sinatra/sinatra) (a web framework) and [puma](https://github.com/puma/puma) (a web server). For development we'll also use [foreman](https://github.com/theforeman/foreman) and write tests with [rspec](https://github.com/rspec/rspec). +Create a `Gemfile` that uses [slack-ruby-bot](https://github.com/slack-ruby/slack-ruby-bot), [sinatra](https://github.com/sinatra/sinatra) (a web framework) and [puma](https://github.com/puma/puma) (a web server). For development we'll also use [foreman](https://github.com/theforeman/foreman) and write tests with [rspec](https://github.com/rspec/rspec). ```ruby source 'http://rubygems.org' diff --git a/UPGRADING.md b/UPGRADING.md index a9e4138..151a1d4 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -30,7 +30,7 @@ The regular expression parser for commands will now include a `nil` value for `e #### Remove any bot.auth! calls -SlackRubyBot 0.6.x versions invoked a method called `auth!`, which caused a pre-flight authentication via Slack Web API `auth_test` method and collected a number of properties, such as client and team ID or name. This method has been removed in favor of using data available in the `Slack::RealTime::Client` local store introduced in [slack-ruby-client#54](https://github.com/dblock/slack-ruby-client/issues/54). Remove any explicit calls to this method. +SlackRubyBot 0.6.x versions invoked a method called `auth!`, which caused a pre-flight authentication via Slack Web API `auth_test` method and collected a number of properties, such as client and team ID or name. This method has been removed in favor of using data available in the `Slack::RealTime::Client` local store introduced in [slack-ruby-client#54](https://github.com/slack-ruby/slack-ruby-client/issues/54). Remove any explicit calls to this method. ### Upgrading to >= 0.6.0 @@ -139,7 +139,7 @@ Bot.run ### Upgrading to >= 0.4.0 -This version uses [slack-ruby-client](https://github.com/dblock/slack-ruby-client) instead of [slack-ruby-gem](https://github.com/aki017/slack-ruby-gem). +This version uses [slack-ruby-client](https://github.com/slack-ruby/slack-ruby-client) instead of [slack-ruby-gem](https://github.com/aki017/slack-ruby-gem). The command interface now takes a `client` parameter, which is the RealTime Messaging API instance. Add the new parameter to all `call` calls in classes that inherit from `SlackRubyBot::Commands::Base`. diff --git a/lib/slack-ruby-bot/about.rb b/lib/slack-ruby-bot/about.rb index 3269325..987baf3 100644 --- a/lib/slack-ruby-bot/about.rb +++ b/lib/slack-ruby-bot/about.rb @@ -1,7 +1,7 @@ module SlackRubyBot ABOUT = <<-ABOUT.freeze #{SlackRubyBot::VERSION} - https://github.com/dblock/slack-ruby-bot + https://github.com/slack-ruby/slack-ruby-bot https://twitter.com/dblockdotorg ABOUT end diff --git a/lib/slack-ruby-bot/commands/help.rb b/lib/slack-ruby-bot/commands/help.rb index 4caed5f..2d81bb9 100644 --- a/lib/slack-ruby-bot/commands/help.rb +++ b/lib/slack-ruby-bot/commands/help.rb @@ -32,7 +32,7 @@ def general_text For getting description of the command use: *help * -For more information see https://github.com/dblock/slack-ruby-bot, please. +For more information see https://github.com/slack-ruby/slack-ruby-bot, please. TEXT end end diff --git a/slack-ruby-bot.gemspec b/slack-ruby-bot.gemspec index 9803132..85db830 100644 --- a/slack-ruby-bot.gemspec +++ b/slack-ruby-bot.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |s| s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- spec/*`.split("\n") s.require_paths = ['lib'] - s.homepage = 'https://github.com/dblock/slack-ruby-bot' + s.homepage = 'https://github.com/slack-ruby/slack-ruby-bot' s.licenses = ['MIT'] s.summary = 'The easiest way to write a Slack bot in Ruby.' s.add_dependency 'hashie' diff --git a/spec/slack-ruby-bot/commands/help_spec.rb b/spec/slack-ruby-bot/commands/help_spec.rb index a9d4604..5cdbe0a 100644 --- a/spec/slack-ruby-bot/commands/help_spec.rb +++ b/spec/slack-ruby-bot/commands/help_spec.rb @@ -20,7 +20,7 @@ def app For getting description of the command use: *help * -For more information see https://github.com/dblock/slack-ruby-bot, please. +For more information see https://github.com/slack-ruby/slack-ruby-bot, please. MSG expect(message: "#{SlackRubyBot.config.user} help").to respond_with_slack_message(message)