lita-ticket_notifier 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 +4 -4
- data/lib/lita/handlers/ticket_notifier.rb +5 -1
- data/lita-ticket_notifier.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83925e72026bf799c32a93b9c6d735d31e020701
|
4
|
+
data.tar.gz: 398a0229e28f4f915782e83d352661a2ef760808
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4421b1a0dda48b9741e3ef8b105d05d7d00269499515c8865e2e91f5e6d35d54571bdf0de99c4584819c079773b745bb12689d465b968bcb26d5eb754a27283
|
7
|
+
data.tar.gz: bc11bbc0491eba1c9ed8be5dff92077305c4799655e6b6795a32957f939412bbdf4517cdf021337f14c1039529a8f2c593449317a621b8f57f8aaf363e4c6079
|
@@ -4,10 +4,14 @@ module Lita
|
|
4
4
|
http.post "/ticket_notification", :ticket_notification
|
5
5
|
|
6
6
|
def ticket_notification(request, response)
|
7
|
-
robot.send_message "i got notified!"
|
7
|
+
robot.send_message(target, "i got notified!")
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
+
def target
|
12
|
+
Lita::Source.new({ user: 'Mathieu Gilbert', room: Lita.config.adapter.rooms[0], private_message: true})
|
13
|
+
end
|
14
|
+
|
11
15
|
Lita.register_handler(TicketNotifier)
|
12
16
|
end
|
13
17
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-ticket_notifier"
|
3
|
-
spec.version = "0.0.
|
3
|
+
spec.version = "0.0.4"
|
4
4
|
spec.authors = ["Michael van den Beuken", "Ruben Estevez", "Jordan Babe", "Mathieu Gilbert", "Ryan Jones", "Darko Dosenovic"]
|
5
5
|
spec.email = ["michael.beuken@gmail.com", "ruben.a.estevez@gmail.com", "jorbabe@gmail.com", "mathieu.gilbert@ama.ab.ca", "ryan.michael.jones@gmail.com", "darko.dosenovic@ama.ab.ca"]
|
6
6
|
spec.description = %q{Notify users about new tickets coming in.}
|