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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2012ebdeed7b0904f7d65cb1d1da4fe0988a031b
4
- data.tar.gz: f8f82d62bd1e38ab05156f65b8ec159ae265b98b
3
+ metadata.gz: 9154fe1a1d6ffa5e15adce64bfc9982462dfe247
4
+ data.tar.gz: 92898ec6613ab7cda02a328240a30c00c3d30f19
5
5
  SHA512:
6
- metadata.gz: 9c74417471b025d45253f622a97e054e1cfa49a0fabbf55879c9b14b45d9293b414407e62c1d357d40a16a66817616831143d725665e9a720ba8472775d8dae5
7
- data.tar.gz: bfba8e8cb4ea94d8b6164c5489bcb3d4624be502f28b2a8a1a357ce6289f7b3559da6567647685ac6b592dec74d1a73d505cb4002b1313716a3100e27f78afe3
6
+ metadata.gz: f68b112d86ae13b6f89dae0db48d890e79e63c711b8d83192b700fc82636112ece0b79a0c0435a137c4e716926dd6711c4bd358202489599066e395aab6503a5
7
+ data.tar.gz: fe21fd80b3edee453e8f3f2aab174497da789cc7f3294dbd11e674a9df5459f3cf6ee62688367dc6e650e8fe556c77fce964b192c39fdebf0aa891b5fca2ac52
@@ -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.14'
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'), t: team[:name])
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.14
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-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler