github_webhook 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41abd3601fa42493b980a1941656c3abb8ec126a
4
- data.tar.gz: aee0d5e1c6159999e9282514b35899e1173cec20
3
+ metadata.gz: e27cc391fb7e1a0d59740e1b37e3a9b5f233df9c
4
+ data.tar.gz: 2d19ae98827eac9cc77f60b6858af4ee81b3cfa7
5
5
  SHA512:
6
- metadata.gz: a5c3dde0741dbdbacb5e682ecef8345003d3fe1dc2d34ccb04de6f4ea9e7b1f9a100fbf94592d881947e3e5fd616961d6e115c070f176064f79bcb54a7d26d62
7
- data.tar.gz: c9a1e0371d59678f7d57a6e363c59475522dcc97e3631faaa0b68e11c14dee7a2de02699c0be390195a14787ec492eb9a08ceaf7cc405429903ebe1959820e87
6
+ metadata.gz: aa425244209e44340d377df23fae3de61fc665a961f37fe8976744f60bfd76ab4753f9e702d48236f66798abe2ecc8271f888a6eb1db536437ffb25263b5a7e6
7
+ data.tar.gz: 473a95831be06e46c889edf817ff865ef33dcd47379bc4c75b236efba1813da31d7edc136ce5af07e8c93a63a4584579b90ffbb35974069d87ef195b1eba9c3e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_webhook (1.0.1)
4
+ github_webhook (1.0.2)
5
5
  activesupport (>= 4)
6
6
  rack (>= 1.3)
7
7
 
data/README.md CHANGED
@@ -13,7 +13,7 @@ to a [GitHub webhook](https://developer.github.com/webhooks/)
13
13
  Add this line to your application's Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'github_webhook', '~> 1.0.1'
16
+ gem 'github_webhook', '~> 1.0.2'
17
17
  ```
18
18
 
19
19
  And then execute:
@@ -11,7 +11,16 @@ module GithubWebhook::Processor
11
11
  class UnsupportedGithubEventError < StandardError; end
12
12
  class UnsupportedContentTypeError < StandardError; end
13
13
 
14
- GITHUB_EVENTS_WHITELIST = %w(ping commit_comment create delete deployment deployment_status download follow fork fork_apply gist gollum issue_comment issues member membership page_build public pull_request pull_request_review pull_request_review_comment push release repository status team_add watch)
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
@@ -1,3 +1,3 @@
1
1
  module GithubWebhook
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-10-31 00:00:00.000000000 Z
11
+ date: 2016-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack