lita-github 0.1.1 → 0.1.2

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: 0bca7c5436b3f7d3858b5374d633dbf2ce49a78d
4
- data.tar.gz: 0f13f80249167fb9cfb48b835c02c377af0994e9
3
+ metadata.gz: 3e0d281bcf8adc83548ac483d406f19672414bde
4
+ data.tar.gz: 0324546f1f50adb9f70c9836ded9df84a18aaeba
5
5
  SHA512:
6
- metadata.gz: d69a87f51a1b4a4d3ce7ad68bc471e29207da530cb192e9d45773a7608d32f1c97f35543030af4b940bc5b9665b5caa609b847232da733ad79ef0a9ef9f99c06
7
- data.tar.gz: df92f580a280732f33141f74fe5eb8897ac599eb6f876770fb505cea5c777cc4c66af535171db12ac01147e57a09345880f2472048f8cc5fde56046539642677
6
+ metadata.gz: 4203c3537cd0084bb131f74ba86fc11f8dc01f2e0f6b8c319fb5e7d602e5999d2e206b123fb8f50aa4ee909d2f0492c7d0a7fb5e78755d698d0deb57317a711b
7
+ data.tar.gz: 257b7734d642160b36f18fa567183da9bf2fb650d6f88efaad8b18d4e49c8d3d0beeec618e2569fd0dcf5261537641621e73ffad58dda3a96f53fc4fae7cde25
@@ -21,7 +21,7 @@
21
21
  # @author Tim Heckman <tim@pagerduty.com>
22
22
  module LitaGithub
23
23
  # lita-github version
24
- VERSION = '0.1.1'
24
+ VERSION = '0.1.2'
25
25
 
26
26
  # lita-github version split amongst different revisions
27
27
  MAJOR_VERSION, MINOR_VERSION, REVISION = VERSION.split('.').map(&:to_i)
@@ -91,7 +91,7 @@ module Lita
91
91
 
92
92
  # rubocop:disable Metrics/LineLength
93
93
  route(
94
- /#{LitaGithub::R::A_REG}repo\s+?team\s+?(?<action>add|rm)\s+?(?<team>[a-zA-Z0-9_\-]+?)(\s+?to)?\s+?#{LitaGithub::R::REPO_REGEX}/,
94
+ /#{LitaGithub::R::A_REG}repo\s+?team\s+?(?<action>add|rm)\s+?(?<team>[a-zA-Z0-9_\-]+?)(\s+?(?:to|from))?\s+?#{LitaGithub::R::REPO_REGEX}/,
95
95
  :repo_team_router,
96
96
  command: true,
97
97
  confirmation: true,
@@ -53,8 +53,10 @@ describe Lita::Handlers::GithubRepo, lita_handler: true do
53
53
  it { is_expected.to route_command('gh repo team add 42 to lita-test').to(:repo_team_router) }
54
54
  it { is_expected.to route_command('gh repo team rm everyone GrapeDuty/lita-test').to(:repo_team_router) }
55
55
  it { is_expected.to route_command('gh repo team rm everyone to GrapeDuty/lita-test').to(:repo_team_router) }
56
+ it { is_expected.to route_command('gh repo team rm everyone from GrapeDuty/lita-test').to(:repo_team_router) }
56
57
  it { is_expected.to route_command('gh repo team rm everyone lita-test').to(:repo_team_router) }
57
58
  it { is_expected.to route_command('gh repo team rm everyone to lita-test').to(:repo_team_router) }
59
+ it { is_expected.to route_command('gh repo team rm everyone from lita-test').to(:repo_team_router) }
58
60
  it { is_expected.to route_command('gh repo team rm 42 GrapeDuty/lita-test').to(:repo_team_router) }
59
61
  it { is_expected.to route_command('gh repo team rm 42 to GrapeDuty/lita-test').to(:repo_team_router) }
60
62
  it { is_expected.to route_command('gh repo team rm 42 lita-test').to(:repo_team_router) }
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Heckman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-17 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler