lita-debug-queue 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b10eb46b22747c3a3010cad69a883df7c285c6a
4
- data.tar.gz: 168300e199a91d3ee5ac04ea516487b08bc150ee
3
+ metadata.gz: 57927997433eda06171f21c9677ec7a23d625644
4
+ data.tar.gz: bb3f16bf5d54e7377e28cdf85f1a556bc38402fc
5
5
  SHA512:
6
- metadata.gz: 91630baa85b6cbfd88052f7b989a399fe7b5805aa1b7c48954e219ff7e41becc54cb26c234c5c2c8078238b12301440c96ca45ab210d34e66435faf11c116e1a
7
- data.tar.gz: dd0fad062c70be329554a49963fe50a8224e4dd89aedfbbabfe76f0722e844fe4eb4b76c82a71f896a6d09ab0631dcc2755d4402703ae80cee80a112e2fcb7ba
6
+ metadata.gz: 54fac78753732e5a4da461cfbba7c21378526ab0fcc64bdcad3892a306595a4c09d3f480caf825a2e8c1cb8b465b329751a4161ba3a016d80f8f171f0cca3c50
7
+ data.tar.gz: 40333ea1c1166b87c7b623819b52ba1f5f8cbbd7b46971653c715c5bd1a30b615c78330e975f553d45995f54bf9dd59d0a9ea51379f98439367aa12f99e21e7a
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ script: bundle exec rake
5
+ before_install:
6
+ - gem update --system
7
+ services:
8
+ - redis-server
9
+ notifications:
10
+ email: false
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## News
2
2
 
3
+ ### 0.1.4 (2015-09-21)
4
+
5
+ * No plan survives first contact with the enemy.
6
+
7
+ Add more debugging info to debug queue and debug count.
8
+
3
9
  ### 0.1.3 (2015-08-31)
4
10
 
5
11
  * Fix an error in how "debug next" notifies the student.
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # lita-debug-queue
2
2
 
3
- Queue tracking of users who need debugging help with per-channel management.
3
+ [![Gem Version](https://badge.fury.io/rb/lita-debug-queue.svg)](http://badge.fury.io/rb/lita-debug-queue)
4
+ [![Build Status](https://travis-ci.org/kingcons/lita-debug-queue.svg?branch=master)](http://travis-ci.org/kingcons/lita-debug-queue)
5
+
6
+ A queue for tracking users who need debugging help with per-channel management.
4
7
 
5
8
  ## Installation
6
9
 
@@ -19,4 +22,16 @@ lita-debug-queue expects two things to be present for correct operation:
19
22
 
20
23
  ## Usage
21
24
 
22
- **TODO**
25
+ All usage is based on commands so statements must be directed `@ironbot: foo` or sent as a DM.
26
+
27
+ ### General Commands
28
+
29
+ * `debug me` - Put your name in the queue for debugging help.
30
+ * `debug nvm` - Remove your name from the queue for debugging help.
31
+ * `debug queue` - Show the current queue for your class.
32
+ * `debug count` - Count the number of people waiting for help.
33
+
34
+ ### Instructor Commands
35
+ * `debug next` - Notify the next student to be helped.
36
+ * `debug drop NAME` - Remove the student with NAME from the queue.
37
+ * `debug clear` - Empty the queue.
@@ -42,12 +42,12 @@ module Lita
42
42
 
43
43
  def show(response)
44
44
  return unless check_room!(response)
45
- response.reply("Queue for #{@room} => #{@room.queue}")
45
+ response.reply("Queue for #{@room.name} => #{@room.queue}")
46
46
  end
47
47
 
48
48
  def count(response)
49
49
  return unless check_room!(response)
50
- response.reply("Hackers seeking fresh eyes: #{@room.count}")
50
+ response.reply("Hackers seeking fresh eyes: #{@room.count} in #{@room.name}")
51
51
  end
52
52
 
53
53
  def next(response)
@@ -1,6 +1,8 @@
1
1
  module Lita
2
2
  module Handlers
3
3
  class RoomQueue
4
+ attr_reader :name
5
+
4
6
  def initialize(name, redis)
5
7
  @name = name
6
8
  @redis = redis
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-debug-queue"
3
- spec.version = "0.1.3"
3
+ spec.version = "0.1.4"
4
4
  spec.authors = ["Brit Butler"]
5
5
  spec.email = ["brit@kingcons.io"]
6
6
  spec.description = "Queue tracking of users who need debugging help with per-channel management"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-debug-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brit Butler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-31 00:00:00.000000000 Z
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -102,6 +102,7 @@ extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
104
  - ".gitignore"
105
+ - ".travis.yml"
105
106
  - Gemfile
106
107
  - LICENSE
107
108
  - NEWS.md