lita-locker 1.1.0 → 1.1.1
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.rb +1 -1
- data/lib/lita/handlers/locker_misc.rb +1 -1
- data/lita-locker.gemspec +1 -1
- 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: fa2d24a477b73ed08a9db827531634f0c25e45e9
|
4
|
+
data.tar.gz: fbea28bb67b27ef9d94b17e8122a4f6a1792fdb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e089cb742fb7dc17e0fdb2dfbf7f2ebc29d06511dd123e0b80f7a4ae4ea7a05f7ce23c04e0d24d86e80e1553bf536eb60a2ffd095444661cd42629103fc98e0
|
7
|
+
data.tar.gz: 5678bdf1db5df1b997d286ba8ea9bf7ec298d7165ed49aac6b9adff1973a7185b122f047708ec87b1d1a66e70cbc60c3edd0930c1780de5be30c0f4915bcf8ea
|
data/lib/lita/handlers/locker.rb
CHANGED
@@ -76,7 +76,7 @@ module Lita
|
|
76
76
|
|
77
77
|
return response.reply(failed(t('label.does_not_exist', name: name))) unless Label.exists?(name)
|
78
78
|
l = Label.new(name)
|
79
|
-
return response.reply(failed(t('label.no_resources', name: name))) unless l.membership.count
|
79
|
+
return response.reply(failed(t('label.no_resources', name: name))) unless l.membership.count > 0
|
80
80
|
return response.reply(t('label.self_lock', name: name, user: response.user.name)) if l.owner == response.user
|
81
81
|
return response.reply(success(t('label.lock', name: name))) if l.lock!(response.user.id)
|
82
82
|
|
@@ -50,7 +50,7 @@ module Lita
|
|
50
50
|
|
51
51
|
def status(response)
|
52
52
|
name = response.match_data['label']
|
53
|
-
unless name.match
|
53
|
+
unless name.match(/\*/)
|
54
54
|
# Literal query
|
55
55
|
return response.reply(status_label(name)) if Label.exists?(name)
|
56
56
|
return response.reply(status_resource(name)) if Resource.exists?(name)
|
data/lita-locker.gemspec
CHANGED
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.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sigler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|