lita-locker 1.0.9 → 1.0.10
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/locker_misc.rb +1 -3
- data/lita-locker.gemspec +1 -1
- data/spec/lita/handlers/locker_misc_spec.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40b2882a9408152241aaa1539bf1c7924e15bcf4
|
4
|
+
data.tar.gz: 58217f843456a9b13dc82230a79f8f5a99131b78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94cc269c2fcaf2f71a40ed8e2cebf134d9a3441abdcc4ef17b44f0ed3517b1c2f57fb67fa90e6ba76cef4ef20a64d12de2fc60a06e143bc80bf4bf922dbda8da
|
7
|
+
data.tar.gz: 6f752941bf65bd8452daa06a86ee04a77059aadff2768974e19e0b3928b752fc70d2b34b4c8abe8023a0578bf4ef6600ca88fb737b9a273672348e0d5ec508d7
|
@@ -58,9 +58,7 @@ module Lita
|
|
58
58
|
matcher = Regexp.new(name.gsub(/\*/, '.*'))
|
59
59
|
labels = Label.list.select { |label| label =~ matcher }
|
60
60
|
return response.reply(failed(t('status.does_not_exist', name: name))) if labels.empty?
|
61
|
-
labels.
|
62
|
-
response.reply(status_label(n))
|
63
|
-
end
|
61
|
+
response.reply(labels.map { |l| status_label(l) }.join("\n"))
|
64
62
|
end
|
65
63
|
|
66
64
|
def dequeue(response)
|
data/lita-locker.gemspec
CHANGED
@@ -135,8 +135,7 @@ describe Lita::Handlers::LockerMisc, lita_handler: true do
|
|
135
135
|
send_command('locker label add bazbarluhrmann to bazbar')
|
136
136
|
send_command('lock foobar')
|
137
137
|
send_command('locker status foo*')
|
138
|
-
expect(replies
|
139
|
-
expect(replies.last).to match(/^foobaz is unlocked$/)
|
138
|
+
expect(replies.last).to match(/^foobar is locked by Test User \(taken \d seconds? ago\)\nfoobaz is unlocked$/)
|
140
139
|
end
|
141
140
|
|
142
141
|
it 'shows an error if nothing exists with that name' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-locker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sigler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|