lita-github-pinger 0.6.5 → 0.6.6
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/handlers/github_pinger.rb +4 -1
- data/lita-github-pinger.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 662aea59222ac24d19a2b402c3e7710b02637c7e
|
4
|
+
data.tar.gz: 8afb238ddbd88bc03b0a1305f820967c78ed70e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42300f8b34f2b20cca88fe68dcbdc0272b8d5b47bb44270b8325c71b37c8ee8152836bcbd20684c9a651c664f242d536d64d81fd58aca18dbd33665244c4a8a5
|
7
|
+
data.tar.gz: edfd401bf6276d7982bc3319b2130ccfaf65a72fe1bddb98b23a6f78d8daf168d128b97b42e5e4aae3a3490097774aec27e6bf60c79d76398122f7898f349759
|
@@ -139,7 +139,10 @@ module Lita
|
|
139
139
|
puts "Found @mentions in the body of the comment! Extracting usernames... "
|
140
140
|
|
141
141
|
# get each @mentioned engineer in the comment
|
142
|
-
mentions = comment
|
142
|
+
mentions = comment
|
143
|
+
.split('@')[1..-1] # "a @b @c d" => ["b ", "c d"]
|
144
|
+
.map { |snip| snip.split(' ').first } # ["b ", "c d"] => ["b", "c"]
|
145
|
+
.map { |name| name.gsub(/[^0-9a-z\-_]/i, '') }
|
143
146
|
|
144
147
|
puts "Done. Got #{mentions}"
|
145
148
|
puts "Converting usernames to engineers..."
|
data/lita-github-pinger.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-github-pinger"
|
3
|
-
spec.version = "0.6.
|
3
|
+
spec.version = "0.6.6"
|
4
4
|
spec.authors = ["Taylor Lapeyre"]
|
5
5
|
spec.email = ["taylorlapeyre@gmail.com"]
|
6
6
|
spec.description = "A Lita handler that detects github comment notifications and regurgitates a ping to the correct slack username."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-github-pinger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Lapeyre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.5.1
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: A Lita handler that detects github comment notifications and regurgitates
|