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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afb72326df48bb6713e50cabf68e8f19fbd44e5c
4
- data.tar.gz: 44f5dade4ccdcbf2f5445fb439863f58615aef95
3
+ metadata.gz: 83925e72026bf799c32a93b9c6d735d31e020701
4
+ data.tar.gz: 398a0229e28f4f915782e83d352661a2ef760808
5
5
  SHA512:
6
- metadata.gz: b3c593c98b326bebf05f63324790123bfbe9d0ae86f91add3fb7556d5859787af2603ebf01cf1bc4260ed8f1dd40f86f119b61009f5c329600fa40d962862a36
7
- data.tar.gz: a7063b03acc523008d395199130f6590e76ebb3cffeb6b4e320fa667c82f33313d678516506b41cce61435f5766956842fb6299d2065d415d7ca6b2801c13bcd
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"
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.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-ticket_notifier
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
  - Michael van den Beuken