From e1fffa4191549f72f3acc11de95efd3a7d531c11 Mon Sep 17 00:00:00 2001 From: JLarky Date: Tue, 9 Jul 2013 12:56:11 +0400 Subject: [PATCH] raname LeChat to Kato --- docs/lechat | 8 ++++---- lib/services/{lechat.rb => kato.rb} | 7 ++++--- test/{lechat_test.rb => kato_test.rb} | 6 +++--- 3 files changed, 11 insertions(+), 10 deletions(-) rename lib/services/{lechat.rb => kato.rb} (75%) rename test/{lechat_test.rb => kato_test.rb} (89%) diff --git a/docs/lechat b/docs/lechat index df0e45e9e..06a9a24e6 100644 --- a/docs/lechat +++ b/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 diff --git a/lib/services/lechat.rb b/lib/services/kato.rb similarity index 75% rename from lib/services/lechat.rb rename to lib/services/kato.rb index 3f5cdde29..cb1bb6470 100644 --- a/lib/services/lechat.rb +++ b/lib/services/kato.rb @@ -1,4 +1,5 @@ -class Service::LeChat < Service::HttpPost +class Service::Kato < Service::HttpPost + hook_name 'lechat' string :webhook_url # include 'webhook_url' in the debug logs @@ -6,11 +7,11 @@ class Service::LeChat < Service::HttpPost 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') diff --git a/test/lechat_test.rb b/test/kato_test.rb similarity index 89% rename from test/lechat_test.rb rename to test/kato_test.rb index 117a767af..b3beaa63b 100644 --- a/test/lechat_test.rb +++ b/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 = { @@ -30,7 +30,7 @@ def test_push end def service_class - Service::LeChat + Service::Kato end end