lita-github-pinger 0.2.5 → 0.2.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: d89db97c68f1572be591d3b0dca0ccd09a8ef2f0
4
- data.tar.gz: 5def06d805c234d342d150f46356a06cbdd8ad1f
3
+ metadata.gz: 041e209362ccd29f025944a48842036a871f7510
4
+ data.tar.gz: 46202970c465eb7b519e3235bf399f118f4e7024
5
5
  SHA512:
6
- metadata.gz: ab1f35cec2ff38439ec1d68f19043ee8fe1b1245439e8a58e9bedc4bdee8dfa9d29d6e9bea864b99ef33a15a4947f1351ecd755b2321a11d6e4a4f7e2b2a0d1e
7
- data.tar.gz: 000637c6c17f6505caec49cd03e15f49c8f8002b4197f45f5d57c4a9a416a6646765885e2fcbe2145c9186a7c4f82de7e8cf320d6680e259c1aee91b7ed177ab
6
+ metadata.gz: a50e8364761a1b3fd47b605eca318e424a6aa04531e594799de28f3d2c8a8d47fce28ed8805133584d4e0c59d6f09025e1ded4ae1b0a2e04cd0cf14dc1e52b3a
7
+ data.tar.gz: 21cc6e5dd52e96b7e55534325cb7c8f8dd19423292d03d5db008afc8eebac1cdb46fe60b1d9ae40e5d433c03a8bfd17a6b0c066a43e2afd2573e6cfec1c2f5e3
@@ -10,6 +10,7 @@ module Lita
10
10
 
11
11
  def ghping(request, response)
12
12
  body = MultiJson.load(request.body)
13
+ p body
13
14
 
14
15
  if body["events"].include?("pull_request_review_comment")
15
16
  send_dm("taylor", "Pull Request Comment: ```#{body}```")
@@ -27,7 +28,7 @@ module Lita
27
28
  end
28
29
 
29
30
  def send_dm(username, content)
30
- if user = Lita::User.fuzzy_find(eng[:slack])
31
+ if user = Lita::User.fuzzy_find(username)
31
32
  source = Lita::Source.new(user: user)
32
33
  robot.send_message(source, "New PR comment! #{message.message.body}")
33
34
  else
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-github-pinger"
3
- spec.version = "0.2.5"
3
+ spec.version = "0.2.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."
@@ -46,4 +46,9 @@ describe Lita::Handlers::GithubPinger, lita_handler: true do
46
46
  send_message("comments up @taylorlapeyre)")
47
47
  expect(replies.count).to eq 0
48
48
  end
49
+
50
+ it 'will do the thing' do
51
+ response = http.post("/ghping", '{"hello": "world", "events": ["pull_request_review_comment"]}')
52
+ expect(response.body).to_not be_nil
53
+ end
49
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-github-pinger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Lapeyre