Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
raname LeChat to Kato
Browse files Browse the repository at this point in the history
  • Loading branch information
JLarky committed Jul 9, 2013
1 parent 263327f commit e1fffa4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/lechat
@@ -1,10 +1,10 @@
LeChat
Kato
=====

LeChat is a team chat service with an emphasis on search, user interface, and reliability.
Kato is a team chat service with an emphasis on search, user interface, and reliability.

Integrating with GitHub will cause certain information about commits, issues, and comments to appear in a specified LeChat room.
Integrating with GitHub will cause certain information about commits, issues, and comments to appear in a specified Kato room.

Install Notes
-------------
**Webhook Url** - GitHub webhook URL from the Integrations tab in room settings in your [LeChat](http://lechat.im) account
**Webhook Url** - GitHub webhook URL from the Integrations tab in room settings in your [Kato](http://kato.im) account
7 changes: 4 additions & 3 deletions lib/services/lechat.rb → lib/services/kato.rb
@@ -1,16 +1,17 @@
class Service::LeChat < Service::HttpPost
class Service::Kato < Service::HttpPost
hook_name 'lechat'
string :webhook_url

# include 'webhook_url' in the debug logs
white_list :webhook_url

default_events Service::ALL_EVENTS

url "https://lechat.im/"
url "https://kato.im/"

maintained_by :github => 'JLarky'

supported_by :email => 'support@lechat.im'
supported_by :email => 'support@kato.im'

def receive_event
webhook_url = required_config_value('webhook_url')
Expand Down
6 changes: 3 additions & 3 deletions test/lechat_test.rb → test/kato_test.rb
@@ -1,10 +1,10 @@
require File.expand_path('../helper', __FILE__)

class LechatTest < Service::TestCase
class KatoTest < Service::TestCase
include Service::HttpTestMethods

def test_push
host = "api.lechat.im"
host = "api.kato.im"
path = "/rooms/ca584f3e2143a0c3eae7a89485aa7f634589ceb39c972361bdefe348812794b1/github"

data = {
Expand All @@ -30,7 +30,7 @@ def test_push
end

def service_class
Service::LeChat
Service::Kato
end
end

0 comments on commit e1fffa4

Please sign in to comment.