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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee0b2b2211b4a8e374e294510a405ede0a492d50
4
- data.tar.gz: a84b6149da9dd9a6ac46d9f9c9590efab1ff4650
3
+ metadata.gz: 40b2882a9408152241aaa1539bf1c7924e15bcf4
4
+ data.tar.gz: 58217f843456a9b13dc82230a79f8f5a99131b78
5
5
  SHA512:
6
- metadata.gz: f6c2a8cbbc6dd91c1b3ef652c44c21c0b31d83d6bb1c9c855ae43c6c85cc8283b234f71080f9445549430590eb64b6a056f4649ef50c16a2791fb7540199faf2
7
- data.tar.gz: 2580987de7715041491d3523471bdaf37d55692ca0bddc5f1724c4b87af0d8a7a30a2425775c03eaeca3b7649259ce8918bf186bfd5e0c6453171e8a7c7ef449
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.each do |n|
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)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-locker'
3
- spec.version = '1.0.9'
3
+ spec.version = '1.0.10'
4
4
  spec.authors = ['Eric Sigler']
5
5
  spec.email = ['me@esigler.com']
6
6
  spec.description = '"lock" and "unlock" arbitrary subjects'
@@ -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[-2]).to match(/^foobar is locked by Test User \(taken \d seconds? ago\)$/)
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.9
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-03-25 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita