Permalink
Browse files

raname LeChat to Kato

  • Loading branch information...
1 parent 263327f commit e1fffa4191549f72f3acc11de95efd3a7d531c11 @JLarky JLarky committed Jul 9, 2013
Showing with 11 additions and 10 deletions.
  1. +4 −4 docs/lechat
  2. +4 −3 lib/services/{lechat.rb → kato.rb}
  3. +3 −3 test/{lechat_test.rb → kato_test.rb}
View
@@ -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
@@ -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')
@@ -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 = {
@@ -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.