lita-debug-queue 0.1.6 → 0.1.7

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: 6a57a39a5a0705d8028448ce932bb124c2567f00
4
- data.tar.gz: cfee4552bfba86405124a031e10bcd18dbefa315
3
+ metadata.gz: 5fc571690441cd31e067186bb4551ba79b9aab9f
4
+ data.tar.gz: 00c80d8fb43348d03c3a3ac516b072ee6f01fcab
5
5
  SHA512:
6
- metadata.gz: 2833692aebf9ecef9a4c4e17623a3297b818a5f2ad8d484d4b60e7000335590ce3141391f7ec2dc5967b2e7b7af14c5f1054c86695b310de995d5baa25cba65d
7
- data.tar.gz: 83eaeef0d1d5a4387c9a6f5acb79f06f3320117c24f4ac3d260de506eb52845f301dedffac1e340e78ec87020922dfe111968533542e753b787f71e8203dfd37
6
+ metadata.gz: 65317897f4923471c4e63add4693e0e15eca41a6b7260464b37b82f1697242fc650a4978fd60b607a7b612f1fc6a5ea57f248cd64bf611ea8e3881baf237aa5a
7
+ data.tar.gz: 5dc98278c5e5d5e4a988a8b74ba0a64f5b993ca1b9c6b866b2cc688629b990d2a6458575a188d984455df6917d67ee4a1f711eabf4356d6da1e64c84be21c063
data/NEWS.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## News
2
2
 
3
+ ### 0.1.7 (2015-09-25)
4
+
5
+ * Fix bug in "debug next" implementation.
6
+
3
7
  ### 0.1.6 (2015-09-21)
4
8
 
5
9
  * Fix a thinko. Not the best day for me.
@@ -30,7 +30,7 @@ module Lita
30
30
  end
31
31
 
32
32
  def next
33
- student = self.queue.pop
33
+ student = self.queue.shift
34
34
  @redis.set(@name, self.queue.reject { |x| x == student })
35
35
  student
36
36
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-debug-queue"
3
- spec.version = "0.1.6"
3
+ spec.version = "0.1.7"
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"
@@ -80,10 +80,11 @@ describe Lita::Handlers::DebugQueue, lita_handler: true do
80
80
 
81
81
  it "can notify the next student and pop them from the queue" do
82
82
  send_command("debug me", as: vedika, from: rails)
83
+ send_command("debug me", as: dylan, from: rails)
83
84
  send_command("debug next", as: brit)
84
85
  expect(replies.last).to start_with("vedika is up next and has been notified.")
85
86
  send_command("debug count", from: rails)
86
- expect(replies.last).to start_with("Hackers seeking fresh eyes: 0")
87
+ expect(replies.last).to start_with("Hackers seeking fresh eyes: 1")
87
88
  end
88
89
 
89
90
  it "can remove a student from the queue by name" do
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.6
4
+ version: 0.1.7
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-09-21 00:00:00.000000000 Z
11
+ date: 2015-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita