lita-github-pinger 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4087b7a923a33b8a0d0b8363ecfa9d1a23a27680
4
- data.tar.gz: 278cb640274be767e7fc929b2784f4ce4a0ec234
3
+ metadata.gz: 662aea59222ac24d19a2b402c3e7710b02637c7e
4
+ data.tar.gz: 8afb238ddbd88bc03b0a1305f820967c78ed70e7
5
5
  SHA512:
6
- metadata.gz: 63d6f18fd7c040844aa10b2c9e3fb01a4996fd5275d8de851644d8f6cdb98c91412c7afb4ef0d18083502d4e9abc0c2b48b0b7828a9ed828fd1a4838366228d9
7
- data.tar.gz: 61f5aad04312e886bb0f5fcba817f0a1384ad02a5f2f46a0a815cd63ee131223c84be577bcce093f2bc8074ea1de4a2d21becf05b304ae6f0bb2f7401d60f249
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.split("@")[1..-1].map { |snip| snip.split(" ").first.gsub(/[^0-9a-z ]/i, '') }
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..."
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-github-pinger"
3
- spec.version = "0.6.5"
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.5
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: 2015-09-22 00:00:00.000000000 Z
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.4.5
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