github_webhook 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/github_webhook/processor.rb +10 -1
- data/lib/github_webhook/version.rb +1 -1
- 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: e27cc391fb7e1a0d59740e1b37e3a9b5f233df9c
|
4
|
+
data.tar.gz: 2d19ae98827eac9cc77f60b6858af4ee81b3cfa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa425244209e44340d377df23fae3de61fc665a961f37fe8976744f60bfd76ab4753f9e702d48236f66798abe2ecc8271f888a6eb1db536437ffb25263b5a7e6
|
7
|
+
data.tar.gz: 473a95831be06e46c889edf817ff865ef33dcd47379bc4c75b236efba1813da31d7edc136ce5af07e8c93a63a4584579b90ffbb35974069d87ef195b1eba9c3e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -11,7 +11,16 @@ module GithubWebhook::Processor
|
|
11
11
|
class UnsupportedGithubEventError < StandardError; end
|
12
12
|
class UnsupportedContentTypeError < StandardError; end
|
13
13
|
|
14
|
-
|
14
|
+
# To fetch list from https://developer.github.com/v3/activity/events/types
|
15
|
+
# run this little JS code in the console:
|
16
|
+
# var events = "ping";
|
17
|
+
# $('h3').each(function(i, item) {
|
18
|
+
# if ($(item).text().match(/webhook event name/i)) {
|
19
|
+
# events = events + ' ' + $(item).next('p').find('code').html();
|
20
|
+
# }
|
21
|
+
# });
|
22
|
+
# console.log(events);
|
23
|
+
GITHUB_EVENTS_WHITELIST = %w(ping commit_comment create delete deployment deployment_status download follow fork fork_apply gist gollum issue_comment issues label member membership milestone page_build public pull_request pull_request_review pull_request_review_comment push release repository status team_add watch)
|
15
24
|
|
16
25
|
def create
|
17
26
|
if self.respond_to? event_method
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_webhook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Saunier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|