-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from jusleg/v0.1.2
Rename gem + cleanup
- Loading branch information
Showing
29 changed files
with
451 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
Rails.application.routes.draw do | ||
post '/toddlerbot/event', to: 'toddlerbot/slack#event_callback' | ||
post '/toddlerbot/interactive', to: 'toddlerbot/slack#interactive_callback' | ||
post '/toddlerbot/slash/:handler_class/:handler_method', to: 'toddlerbot/slack#slash_command_callback' | ||
post '/slackify/event', to: 'slackify/slack#event_callback' | ||
post '/slackify/interactive', to: 'slackify/slack#interactive_callback' | ||
post '/slackify/slash/:handler_class/:handler_method', to: 'slackify/slack#slash_command_callback' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'slackify/configuration' | ||
require 'slackify/engine' | ||
require 'slackify/exceptions' | ||
require 'slackify/handlers' | ||
|
||
module Slackify | ||
class << self | ||
attr_writer :configuration | ||
def configuration | ||
@configuration ||= Configuration.new | ||
end | ||
|
||
def reset | ||
@configuration = Configuration.new | ||
end | ||
|
||
def configure | ||
yield(configuration) | ||
end | ||
|
||
def load_handlers | ||
@configuration.handlers = Handlers::Configuration.new | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module Toddlerbot | ||
module Slackify | ||
class Engine < Rails::Engine | ||
isolate_namespace Toddlerbot | ||
isolate_namespace Slackify | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'handlers/base' | ||
require_relative 'handlers/configuration' | ||
require_relative 'handlers/unhandled_handler' | ||
require_relative 'handlers/validator' | ||
|
||
module Slackify | ||
module Handlers | ||
end | ||
end |
Oops, something went wrong.