lita-github 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/lita-github/r.rb +1 -1
- data/lib/lita-github/version.rb +1 -1
- data/spec/unit/lita-github/general_spec.rb +7 -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: b1cecdbe3d83a2b89867c6936613fca780591b2b
|
4
|
+
data.tar.gz: 08048f199dbf53215c03947363b2615617d24d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
--------
|
data/lib/lita-github/r.rb
CHANGED
@@ -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_\-]+)'
|
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.2.
|
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.
|
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-
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|