lita-github 0.2.1 → 0.2.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: dcfb77955c1ab72f3edb5f8ef48168aa385e62dc
4
- data.tar.gz: 681d91511b1b1c97005cf5ce650ed5994df6c545
3
+ metadata.gz: b1cecdbe3d83a2b89867c6936613fca780591b2b
4
+ data.tar.gz: 08048f199dbf53215c03947363b2615617d24d71
5
5
  SHA512:
6
- metadata.gz: cd0cc9e6c7d10caf61d4d59216938030b11c58a85bfb3a1e0716f9c316954eaf4b8dc9f30b1b048610ac832d77b1b9901e42fa5b21a9a621a67a1885cd1d8899
7
- data.tar.gz: e1f6ed1db0558819bd47792756034aa9009d0f9d095e9ec0d1b4a95ad801e1ca517055513604022345b2b267017d91a828f7b6939f9fe2bd2869dcec29098e7d
6
+ metadata.gz: 3877f91890ca3df7238f1b01ca13361ff19314d9260f36419cae8bef99104cb556d40fb1494dea0f4417bad311e98c6ef2311a8e00262c0baf676ac84bc9cdf1
7
+ data.tar.gz: e29da4072f9cbca52aca950d30309700edf9686e41a6f0b87a652ea67ed8c50913dd39833b1c427d04f5abcda7fe0e911cf0507cb46a20fb7b0b1f31e79bf02f
data/README.md CHANGED
@@ -29,7 +29,7 @@ The configuration options will get their own in-depth doc a little further down
29
29
  * `config.handlers.github.default_team_slugs = ['']`
30
30
  * if no team is provided when adding a repo, it uses these teams by default -- if unset, only owners can access repo
31
31
  * the default teams that should be added to a repo based on the slug name:
32
- * When clicking on a team in your org you can use the URL to get the slug: https://github.com/orgs/<ORG>/teams/[slug]
32
+ * When clicking on a team in your org you can use the URL to get the slug: `https://github.com/orgs/<ORG>/teams/[slug]`
33
33
 
34
34
  Commands
35
35
  --------
@@ -24,7 +24,7 @@ module LitaGithub
24
24
 
25
25
  # option regex, letting you scan the string for things like:
26
26
  # key1:value key2:"value2" key3:'a better value'
27
- OPT_REGEX ||= /((?:\s+?[a-zA-Z0-9_]+?):(?:(?:".+?")|(?:'.+?')|(?:[a-zA-Z0-9_]+)))/
27
+ OPT_REGEX ||= /((?:\s+?[a-zA-Z0-9_]+?):(?:(?:".+?")|(?:'.+?')|(?:[a-zA-Z0-9_\-]+)))/
28
28
 
29
29
  # regex matcher for a repo name (not including the org).
30
30
  REPO_NAME_REGEX = '(?<repo_name>[a-zA-Z0-9_\-]+)'
@@ -21,7 +21,7 @@
21
21
  # @author Tim Heckman <tim@pagerduty.com>
22
22
  module LitaGithub
23
23
  # lita-github version
24
- VERSION = '0.2.1'
24
+ VERSION = '0.2.2'
25
25
 
26
26
  # lita-github version split amongst different revisions
27
27
  MAJOR_VERSION, MINOR_VERSION, REVISION = VERSION.split('.').map(&:to_i)
@@ -33,6 +33,13 @@ describe LitaGithub::General do
33
33
  expect(co[:string1]).to eql 'something here'
34
34
  expect(co[:string2]).to eql 'something else'
35
35
  end
36
+
37
+ it 'should should parse words with dashes' do
38
+ o = ' team:dash-team '
39
+ co = opts_parse(o)
40
+ expect(co).to be_an_instance_of Hash
41
+ expect(co[:team]).to eql 'dash-team'
42
+ end
36
43
  end
37
44
 
38
45
  describe '.to_i_if_numeric' do
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.2.1
4
+ version: 0.2.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-09-18 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler