lita-github-web-hooks 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.travis.yml +8 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE +19 -0
  6. data/README.md +40 -0
  7. data/Rakefile +6 -0
  8. data/lib/lita-github-web-hooks.rb +7 -0
  9. data/lib/lita/handlers/github_web_hooks.rb +23 -0
  10. data/lib/lita/handlers/github_web_hooks/hook.rb +36 -0
  11. data/lib/lita/handlers/github_web_hooks/hooks/commit_comment.rb +8 -0
  12. data/lib/lita/handlers/github_web_hooks/hooks/create.rb +8 -0
  13. data/lib/lita/handlers/github_web_hooks/hooks/delete.rb +8 -0
  14. data/lib/lita/handlers/github_web_hooks/hooks/deployment.rb +8 -0
  15. data/lib/lita/handlers/github_web_hooks/hooks/deployment_status.rb +8 -0
  16. data/lib/lita/handlers/github_web_hooks/hooks/download.rb +8 -0
  17. data/lib/lita/handlers/github_web_hooks/hooks/follow.rb +8 -0
  18. data/lib/lita/handlers/github_web_hooks/hooks/fork.rb +8 -0
  19. data/lib/lita/handlers/github_web_hooks/hooks/fork_apply.rb +8 -0
  20. data/lib/lita/handlers/github_web_hooks/hooks/gist.rb +8 -0
  21. data/lib/lita/handlers/github_web_hooks/hooks/gollum.rb +8 -0
  22. data/lib/lita/handlers/github_web_hooks/hooks/issue_comment.rb +8 -0
  23. data/lib/lita/handlers/github_web_hooks/hooks/issues.rb +8 -0
  24. data/lib/lita/handlers/github_web_hooks/hooks/member.rb +8 -0
  25. data/lib/lita/handlers/github_web_hooks/hooks/ping.rb +17 -0
  26. data/lib/lita/handlers/github_web_hooks/hooks/public.rb +8 -0
  27. data/lib/lita/handlers/github_web_hooks/hooks/pull_request.rb +8 -0
  28. data/lib/lita/handlers/github_web_hooks/hooks/pull_request_review_comment.rb +8 -0
  29. data/lib/lita/handlers/github_web_hooks/hooks/push.rb +35 -0
  30. data/lib/lita/handlers/github_web_hooks/hooks/release.rb +8 -0
  31. data/lib/lita/handlers/github_web_hooks/hooks/status.rb +8 -0
  32. data/lib/lita/handlers/github_web_hooks/hooks/team_add.rb +8 -0
  33. data/lib/lita/handlers/github_web_hooks/hooks/watch.rb +30 -0
  34. data/lib/lita/handlers/github_web_hooks/plugin.rb +89 -0
  35. data/lita-github-web-hooks.gemspec +27 -0
  36. data/locales/en.yml +9 -0
  37. data/spec/lita/handlers/github_web_hooks_spec.rb +4 -0
  38. data/spec/spec_helper.rb +10 -0
  39. metadata +210 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 554e9fe7994ee9f2a9eee5628efbdcbb1e781530
4
+ data.tar.gz: 292e301ca9da72893eb267213778fd1fea7b082d
5
+ SHA512:
6
+ metadata.gz: 5920801e6d9169a231c185dc822fd3cfd39f84e054cf127249f12a051d07cedc09325c0417996242ecff3ecd382d182bdaa1fa723a2140956bf251db7774ee2d
7
+ data.tar.gz: 081f633da56ea17c0af637abd56e9bf461e28002fc9f140694a50022e9c38da3a2199c6cc317c213371697dea59f4e3e8b57b4d9db225f6254c71e31d915e8c0
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ lita_config.rb
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ script: bundle exec rake
5
+ before_install:
6
+ - gem update --system
7
+ services:
8
+ - redis-server
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2014 Jimmy Cuadra
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # lita-github-web-hooks
2
+
3
+ **lita-github-web-hooks** integrates GitHub [Web Hooks](https://developer.github.com/webhooks/) with [Lita](http://www.lita.io/). It allows Lita to announce various GitHub activity in the chat.
4
+
5
+ ## Installation
6
+
7
+ Add lita-github-web-hooks to your Lita instance's Gemfile:
8
+
9
+ ``` ruby
10
+ gem "lita-github-web-hooks"
11
+ ```
12
+
13
+ ## Configuration
14
+
15
+ ### Required attributes
16
+
17
+ * `room_ids` (Array<String>) - An array of string room IDs. Events received from GitHub will be announced in every room defined by this attribute.
18
+ * `user_ids` (Array<String>) - An array of string user IDs. Events received from GitHub will be sent to every user defined by this attribute.
19
+
20
+ ### Example
21
+
22
+ Here is an example of what a configuration for Lita running on HipChat might look like.
23
+
24
+ ``` ruby
25
+ Lita.configure do |config|
26
+ config.handlers.github_web_hooks.room_ids = ["12345_myroom"]
27
+ config.handlers.github_web_hooks.user_ids = ["12345_123456@chat.hipchat.com"]
28
+ end
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ **IMPORTANT: Only the ping, push, and watch hooks are implemented so far. The rest of the hooks will be coming when GitHub documents their payloads.**
34
+
35
+ 1. Specify which rooms and users you want GitHub activity announced to via the configuration attributes.
36
+ 1. Use GitHub's API or a repository's settings page to create a new hook for the events you're interested in. Set the "Payoad URL" to http://example.com/github-web-hooks, where example.com is the hostname where your Lita instance is running.
37
+
38
+ ## License
39
+
40
+ [MIT](http://opensource.org/licenses/MIT)
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,7 @@
1
+ require "lita"
2
+
3
+ Lita.load_locales Dir[File.expand_path(
4
+ File.join("..", "..", "locales", "*.yml"), __FILE__
5
+ )]
6
+
7
+ require_relative "lita/handlers/github_web_hooks"
@@ -0,0 +1,23 @@
1
+ require "netaddr"
2
+
3
+ module Lita::Handlers
4
+ module GitHubWebHooks
5
+ class << self
6
+ def hooks
7
+ @hooks ||= {}
8
+ end
9
+
10
+ def register_hook(key, hook)
11
+ hooks[key] = hook
12
+ end
13
+ end
14
+ end
15
+ end
16
+
17
+ require_relative "github_web_hooks/hook"
18
+
19
+ require_relative "github_web_hooks/hooks/ping"
20
+ require_relative "github_web_hooks/hooks/push"
21
+ require_relative "github_web_hooks/hooks/watch"
22
+
23
+ require_relative "github_web_hooks/plugin"
@@ -0,0 +1,36 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Hook
4
+ attr_reader :payload, :robot
5
+
6
+ def initialize(robot, payload)
7
+ @robot = robot
8
+ @payload = payload
9
+ end
10
+
11
+ def call
12
+ targets.each { |target| robot.send_message(target, message) }
13
+ end
14
+
15
+ private
16
+
17
+ def message
18
+ raise "Must be implemented in child hook class."
19
+ end
20
+
21
+ def rooms
22
+ ids = Array(Lita.config.handlers.github_web_hooks.room_ids)
23
+ ids.map { |id| Lita::Source.new(room: id) }
24
+ end
25
+
26
+ def targets
27
+ rooms + users
28
+ end
29
+
30
+ def users
31
+ ids = Array(Lita.config.handlers.github_web_hooks.user_ids)
32
+ ids.map { |id| Lita::Source.new(user: id) }
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class CommitComment < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("commit_comment", CommitComment)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Create < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("create", Create)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Delete < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("delete", Delete)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Deployment < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("deployment", Deployment)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class DeploymentStatus < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("deployment_status", DeploymentStatus)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Download < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("download", Download)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Follow < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("follow", Follow)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Fork < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("fork", Fork)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class ForkApply < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("fork_apply", ForkApply)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Gist < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("gist", Gist)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Gollum < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("gollum", Gollum)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class IssueComment < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("issue_comment", IssueComment)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Issues < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("issues", Issues)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Member < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("member", Member)
7
+ end
8
+ end
@@ -0,0 +1,17 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Ping < Hook
4
+ private
5
+
6
+ def message
7
+ @message ||= I18n.t("lita.handlers.github_web_hooks.ping", zen: zen)
8
+ end
9
+
10
+ def zen
11
+ payload["zen"]
12
+ end
13
+ end
14
+
15
+ GitHubWebHooks.register_hook("ping", Ping)
16
+ end
17
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Public < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("public", Public)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class PullRequest < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("pull_request", PullRequest)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class PullRequestReviewComment < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("pull_request_review_comment", PullRequestReviewComment)
7
+ end
8
+ end
@@ -0,0 +1,35 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Push < Hook
4
+ private
5
+
6
+ def message
7
+ @message ||= I18n.t(
8
+ "lita.handlers.github_web_hooks.push",
9
+ name: name,
10
+ ref: ref,
11
+ repo: repo,
12
+ compare_url: compare_url
13
+ )
14
+ end
15
+
16
+ def compare_url
17
+ payload["compare"]
18
+ end
19
+
20
+ def name
21
+ payload["pusher"]["name"]
22
+ end
23
+
24
+ def ref
25
+ payload["ref"]
26
+ end
27
+
28
+ def repo
29
+ "#{payload["repository"]["owner"]["name"]}/#{payload["repository"]["name"]}"
30
+ end
31
+ end
32
+
33
+ GitHubWebHooks.register_hook("push", Push)
34
+ end
35
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Release < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("release", Release)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Status < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("status", Status)
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class TeamAdd < Hook
4
+ end
5
+
6
+ GitHubWebHooks.register_hook("team_add", TeamAdd)
7
+ end
8
+ end
@@ -0,0 +1,30 @@
1
+ module Lita::Handlers
2
+ module GitHubWebHooks
3
+ class Watch < Hook
4
+ private
5
+
6
+ def message
7
+ @message ||= I18n.t(
8
+ "lita.handlers.github_web_hooks.watch",
9
+ user: user,
10
+ repo: repo,
11
+ stargazers_count: stargazers_count
12
+ )
13
+ end
14
+
15
+ def repo
16
+ payload["repository"]["full_name"]
17
+ end
18
+
19
+ def stargazers_count
20
+ payload["repository"]["stargazers_count"]
21
+ end
22
+
23
+ def user
24
+ payload["sender"]["login"]
25
+ end
26
+ end
27
+
28
+ GitHubWebHooks.register_hook("watch", Watch)
29
+ end
30
+ end
@@ -0,0 +1,89 @@
1
+ module Lita
2
+ module Handlers
3
+ module GitHubWebHooks
4
+ class Plugin < Handler
5
+ def self.default_config(config)
6
+ config.room_ids = []
7
+ config.user_ids = []
8
+ end
9
+
10
+ # Overrides the handler config key, from plugin to github_web_hooks.
11
+ def self.name
12
+ "GithubWebHooks"
13
+ end
14
+
15
+ http.post "/github-web-hooks", :receive_hook
16
+
17
+ def receive_hook(request, response)
18
+ if valid?(request)
19
+ event_class = event_class_from_request(request)
20
+ payload = extract_payload(request)
21
+ event_class.new(robot, payload).call
22
+ end
23
+
24
+ response.status = 202
25
+ end
26
+
27
+ private
28
+
29
+ def event_class_from_request(request)
30
+ GitHubWebHooks.hooks[event_type_from_request(request)]
31
+ end
32
+
33
+ def event_type_from_request(request)
34
+ request.env["HTTP_X_GITHUB_EVENT"]
35
+ end
36
+
37
+ def extract_payload(request)
38
+ case (media_type = request.media_type)
39
+ when "application/x-www-form-urlencoded"
40
+ MultiJson.load(request["payload"])
41
+ when "application/json"
42
+ MultiJson.load(request.body)
43
+ else
44
+ raise "GitHub web hooks: Invalid HTTP Content-Type header: #{media_type}"
45
+ end
46
+ end
47
+
48
+ def github_cidrs
49
+ response = http.get("https://api.github.com/meta")
50
+ data = MultiJson.load(response.body)
51
+ data["hooks"]
52
+ end
53
+
54
+ def valid?(request)
55
+ valid_event_type?(request) && valid_ip?(request)
56
+ end
57
+
58
+ def valid_content_type?(request)
59
+ validity = request.media_type == "application/json"
60
+ Lita.logger.warn(
61
+ "GitHub web hook received with invalid media type: #{request.media_type}"
62
+ ) unless validity
63
+ validity
64
+ end
65
+
66
+ def valid_event_type?(request)
67
+ validity = !event_class_from_request(request).nil?
68
+ Lita.logger.warn(
69
+ "GitHub web hook received with invalid event: #{event_type_from_request(request)}"
70
+ ) unless validity
71
+ validity
72
+ end
73
+
74
+ def valid_ip?(request)
75
+ ip = request.ip
76
+
77
+ validity = github_cidrs.any? do |cidr|
78
+ NetAddr::CIDR.create(cidr).contains?(ip)
79
+ end
80
+
81
+ Lita.logger.warn("GitHub web hook received from invalid IP: #{ip}") unless validity
82
+ validity
83
+ end
84
+ end
85
+
86
+ Lita.register_handler(Plugin)
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,27 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = "lita-github-web-hooks"
3
+ spec.version = "0.0.1"
4
+ spec.authors = ["Jimmy Cuadra"]
5
+ spec.email = ["jimmy@jimmycuadra.com"]
6
+ spec.description = %q{GitHub web hook integration for Lita.}
7
+ spec.summary = %q{Allows Lita to receive various event notifications from GitHub.}
8
+ spec.homepage = "https://github.com/jimmycuadra/lita-github-web-hooks"
9
+ spec.license = "MIT"
10
+ spec.metadata = { "lita_plugin_type" => "handler" }
11
+
12
+ spec.files = `git ls-files`.split($/)
13
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
14
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
+ spec.require_paths = ["lib"]
16
+
17
+ spec.add_runtime_dependency "lita", ">= 2.7"
18
+ spec.add_runtime_dependency "netaddr", ">= 1.5.0"
19
+ spec.add_runtime_dependency "i18n", ">= 0.6.9"
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec", ">= 3.0.0.beta2"
24
+ spec.add_development_dependency "simplecov"
25
+ spec.add_development_dependency "coveralls"
26
+ spec.add_development_dependency "pry"
27
+ end
data/locales/en.yml ADDED
@@ -0,0 +1,9 @@
1
+ en:
2
+ lita:
3
+ handlers:
4
+ github_web_hooks:
5
+ ping: "[GitHub] Ping: %{zen}"
6
+ push: "[GitHub] %{name} pushed to %{ref} at %{repo}. Compare: %{compare_url}"
7
+ watch: >
8
+ [GitHub] User %{user} starred repository %{repo}, bringing the total stargazers to
9
+ %{stargazers_count}.
@@ -0,0 +1,4 @@
1
+ require "spec_helper"
2
+
3
+ describe Lita::Handlers::GitHubWebHooks::Plugin, lita_handler: true do
4
+ end
@@ -0,0 +1,10 @@
1
+ require "simplecov"
2
+ require "coveralls"
3
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
4
+ SimpleCov::Formatter::HTMLFormatter,
5
+ Coveralls::SimpleCov::Formatter
6
+ ]
7
+ SimpleCov.start { add_filter "/spec/" }
8
+
9
+ require "lita-github-web-hooks"
10
+ require "lita/rspec"
metadata ADDED
@@ -0,0 +1,210 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lita-github-web-hooks
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jimmy Cuadra
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: lita
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '2.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '2.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: netaddr
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.5.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.5.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: i18n
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.6.9
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.6.9
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 3.0.0.beta2
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 3.0.0.beta2
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: coveralls
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: GitHub web hook integration for Lita.
140
+ email:
141
+ - jimmy@jimmycuadra.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".travis.yml"
148
+ - Gemfile
149
+ - LICENSE
150
+ - README.md
151
+ - Rakefile
152
+ - lib/lita-github-web-hooks.rb
153
+ - lib/lita/handlers/github_web_hooks.rb
154
+ - lib/lita/handlers/github_web_hooks/hook.rb
155
+ - lib/lita/handlers/github_web_hooks/hooks/commit_comment.rb
156
+ - lib/lita/handlers/github_web_hooks/hooks/create.rb
157
+ - lib/lita/handlers/github_web_hooks/hooks/delete.rb
158
+ - lib/lita/handlers/github_web_hooks/hooks/deployment.rb
159
+ - lib/lita/handlers/github_web_hooks/hooks/deployment_status.rb
160
+ - lib/lita/handlers/github_web_hooks/hooks/download.rb
161
+ - lib/lita/handlers/github_web_hooks/hooks/follow.rb
162
+ - lib/lita/handlers/github_web_hooks/hooks/fork.rb
163
+ - lib/lita/handlers/github_web_hooks/hooks/fork_apply.rb
164
+ - lib/lita/handlers/github_web_hooks/hooks/gist.rb
165
+ - lib/lita/handlers/github_web_hooks/hooks/gollum.rb
166
+ - lib/lita/handlers/github_web_hooks/hooks/issue_comment.rb
167
+ - lib/lita/handlers/github_web_hooks/hooks/issues.rb
168
+ - lib/lita/handlers/github_web_hooks/hooks/member.rb
169
+ - lib/lita/handlers/github_web_hooks/hooks/ping.rb
170
+ - lib/lita/handlers/github_web_hooks/hooks/public.rb
171
+ - lib/lita/handlers/github_web_hooks/hooks/pull_request.rb
172
+ - lib/lita/handlers/github_web_hooks/hooks/pull_request_review_comment.rb
173
+ - lib/lita/handlers/github_web_hooks/hooks/push.rb
174
+ - lib/lita/handlers/github_web_hooks/hooks/release.rb
175
+ - lib/lita/handlers/github_web_hooks/hooks/status.rb
176
+ - lib/lita/handlers/github_web_hooks/hooks/team_add.rb
177
+ - lib/lita/handlers/github_web_hooks/hooks/watch.rb
178
+ - lib/lita/handlers/github_web_hooks/plugin.rb
179
+ - lita-github-web-hooks.gemspec
180
+ - locales/en.yml
181
+ - spec/lita/handlers/github_web_hooks_spec.rb
182
+ - spec/spec_helper.rb
183
+ homepage: https://github.com/jimmycuadra/lita-github-web-hooks
184
+ licenses:
185
+ - MIT
186
+ metadata:
187
+ lita_plugin_type: handler
188
+ post_install_message:
189
+ rdoc_options: []
190
+ require_paths:
191
+ - lib
192
+ required_ruby_version: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - ">="
195
+ - !ruby/object:Gem::Version
196
+ version: '0'
197
+ required_rubygems_version: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ requirements: []
203
+ rubyforge_project:
204
+ rubygems_version: 2.2.2
205
+ signing_key:
206
+ specification_version: 4
207
+ summary: Allows Lita to receive various event notifications from GitHub.
208
+ test_files:
209
+ - spec/lita/handlers/github_web_hooks_spec.rb
210
+ - spec/spec_helper.rb