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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40e3c6cfb38098e4089ab667b84796cf38dddb98
4
- data.tar.gz: 01c834e9d945c39cf53fa37c5984384505f557b8
3
+ metadata.gz: fa2d24a477b73ed08a9db827531634f0c25e45e9
4
+ data.tar.gz: fbea28bb67b27ef9d94b17e8122a4f6a1792fdb2
5
5
  SHA512:
6
- metadata.gz: f9d7e3f1151c101a757688053d3d8f82f446db64e7bacabb72ee9baa064f1221f6489ec6d891201eba9c2284158ae6f59c2c31300918d84be75d10d6ad9cb674
7
- data.tar.gz: bde7f3cf399c8e069ab48bdf7fc48b93f1aad29ef6d2fbbdb2dad7684291ab28f2bf9ad0cafc37d05227ed443e87c951992519636f640df26e746eef1d06fb66
6
+ metadata.gz: 0e089cb742fb7dc17e0fdb2dfbf7f2ebc29d06511dd123e0b80f7a4ae4ea7a05f7ce23c04e0d24d86e80e1553bf536eb60a2ffd095444661cd42629103fc98e0
7
+ data.tar.gz: 5678bdf1db5df1b997d286ba8ea9bf7ec298d7165ed49aac6b9adff1973a7185b122f047708ec87b1d1a66e70cbc60c3edd0930c1780de5be30c0f4915bcf8ea
@@ -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.positive?
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'lita-locker'
5
- spec.version = '1.1.0'
5
+ spec.version = '1.1.1'
6
6
  spec.authors = ['Eric Sigler']
7
7
  spec.email = ['me@esigler.com']
8
8
  spec.description = '"lock" and "unlock" arbitrary subjects'
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita