lita-hello 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d0f988e20e6344c4edb42431f21d375c4ac291f
4
- data.tar.gz: c8a94c6e80684cac2cbc44217de9f2c8f6b4aaeb
3
+ metadata.gz: 630f7d59d6c566d545c8b7cfff0789c85d5f7677
4
+ data.tar.gz: 8d8e884d6049d9dd02b8754d3d573d9407b868a2
5
5
  SHA512:
6
- metadata.gz: b3ea50baa27e7f75f437de50674281ff26f6014719341035c045972f8e388f5bae347461f4a072c4de2918de505e7271afb0c5401ed6b2afe75a9ec10cbff054
7
- data.tar.gz: 1b2619d5db5a8c206d843727135c124fd1c8b2366434780560ad5d4d66ed027c5fef125055fa49ca995c3fe24d056098b90fc6adf212c5e2de806312b1ec3115
6
+ metadata.gz: 34c87c8e47451f113d36c04c6ec39b7deb665e3abf9e404e36f90e49e8a2c8735c6d633bf5ed1fa747196b49b97f1d1026222cdbd94cc8965a78b0a5a845fc8e
7
+ data.tar.gz: 363a803f79b12011f2c1d0c60ec1b73ef0c703c4c5e1a1ddfadaf87223383f9ad2164c89fea6be5be5833f28c5e04eeeb4e4735c38ce2351eea9ed49de1d9b69
@@ -3,14 +3,14 @@ require "lita"
3
3
  module Lita
4
4
  module Handlers
5
5
  class Hello < Handler
6
- route(/(hello|hi|good morning|howdy|yo|hey)\sChangeBot/i, :greet)
6
+ route(/(hello|hi|good morning|howdy|yo|hey)\sChangeBot/i, :say_hello)
7
7
  end
8
8
 
9
- def greet(response)
9
+ def say_hello(response)
10
10
  reply_to_name = response.user.metadata['mention_name'].nil? ?
11
11
  "#{response.user.name}" :
12
12
  "#{response.user.metadata['mention_name']}"
13
- response.reply "Hello #{reply_to_name}!"
13
+ response.reply "Hello #{reply_to_name}!"
14
14
  end
15
15
 
16
16
  Lita.register_handler(Hello)
data/lita-hello.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-hello"
3
- spec.version = "0.0.3"
3
+ spec.version = "0.0.4"
4
4
  spec.authors = ["Vinh Tran"]
5
5
  spec.email = ["vinh_tran@brown.edu"]
6
6
  spec.license = "MIT"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-hello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinh Tran