lita-github 0.0.14 → 0.0.15
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 +4 -4
- data/lib/lita-github/version.rb +1 -1
- data/lib/lita/handlers/github_org.rb +1 -1
- data/spec/unit/lita/handlers/github_org_spec.rb +9 -0
- 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: 9154fe1a1d6ffa5e15adce64bfc9982462dfe247
|
|
4
|
+
data.tar.gz: 92898ec6613ab7cda02a328240a30c00c3d30f19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f68b112d86ae13b6f89dae0db48d890e79e63c711b8d83192b700fc82636112ece0b79a0c0435a137c4e716926dd6711c4bd358202489599066e395aab6503a5
|
|
7
|
+
data.tar.gz: fe21fd80b3edee453e8f3f2aab174497da789cc7f3294dbd11e674a9df5459f3cf6ee62688367dc6e650e8fe556c77fce964b192c39fdebf0aa891b5fca2ac52
|
data/lib/lita-github/version.rb
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# @author Tim Heckman <tim@pagerduty.com>
|
|
22
22
|
module LitaGithub
|
|
23
23
|
# lita-github version
|
|
24
|
-
VERSION = '0.0.
|
|
24
|
+
VERSION = '0.0.15'
|
|
25
25
|
|
|
26
26
|
# lita-github version split amongst different revisions
|
|
27
27
|
MAJOR_VERSION, MINOR_VERSION, REVISION = VERSION.split('.').map(&:to_i)
|
|
@@ -230,7 +230,7 @@ module Lita
|
|
|
230
230
|
if resp
|
|
231
231
|
response.reply(t('org_user_rm.removed', u: username, o: org, t: team[:name], s: team[:slug]))
|
|
232
232
|
else
|
|
233
|
-
response.reply(t('org_user_rm.failed'
|
|
233
|
+
response.reply(t('org_user_rm.failed', t: team[:name]))
|
|
234
234
|
end
|
|
235
235
|
end
|
|
236
236
|
# rubocop:enable Metrics/CyclomaticComplexity
|
|
@@ -505,5 +505,14 @@ Missing the perms option
|
|
|
505
505
|
expect(replies.last).to eql 'I had a problem :( ... StandardError'
|
|
506
506
|
end
|
|
507
507
|
end
|
|
508
|
+
|
|
509
|
+
context 'when the Octokit method call succeeds, but GitHub fails to remove the user' do
|
|
510
|
+
before { allow(@octo_obj).to receive(:remove_team_member).with(42, 'theckman').and_return(false) }
|
|
511
|
+
|
|
512
|
+
it 'should reply with the failure message' do
|
|
513
|
+
send_command('gh org user rm GrapeDuty heckmantest theckman')
|
|
514
|
+
expect(replies.last).to eql "Failed to remove the user from the 'HeckmanTest' team for some unknown reason"
|
|
515
|
+
end
|
|
516
|
+
end
|
|
508
517
|
end
|
|
509
518
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lita-github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Heckman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|