github_webhook 1.1.2 → 1.2.0

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
  SHA256:
3
- metadata.gz: ba52e52d6ecd813fe9e3731a334463f2555d07f11564609d7136f18d6744db07
4
- data.tar.gz: 0ade3cbfce18c1dfc075344169023225a058edf6f38e2d52990d82c596efdb87
3
+ metadata.gz: eeb186a10b99f572358acea6a3cba8678fb064b203a98afda9f07bab407b9e24
4
+ data.tar.gz: 8393af3c4ff44abf949488732113c200110dfe040886e17bda22c5ba18f33e9c
5
5
  SHA512:
6
- metadata.gz: be9d65ebb4baaaf423d4cdc74a1458af5f7a0af21af6d6043df04c0b4ef9a7e41a6f927fd1bdf28e0c57ae11b6be72c9c96262670f178082ec1a640695fa2e78
7
- data.tar.gz: 49aecdaa55646ecb5cc045b036ebe0cf5525d3aa25959fda16f0cd5e01453fbc015803ea502ec0a783ddf3a69ee60ac0600c2a9d3c33b723906a361db2be1223
6
+ metadata.gz: adbcecc3754189f8c73d68839ae8b4a3e48b1711e81b7d6ce95a74011a9e5212412dd4aeaa3dad86c435435063f3e2f3f665fa96294251b5550e11cf794400ad
7
+ data.tar.gz: 5b65bba2ee6a2ddc1b3f61ad05db8a635e6456f18cbc541fb9370e26c90f44ffacf9b796c02c9fd77ff3cb4ec4cff1533d5acadcd0e2a7e764ff3886824a5e83
@@ -0,0 +1,24 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ build:
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby 2.7
17
+ uses: actions/setup-ruby@v1
18
+ with:
19
+ ruby-version: 2.7.x
20
+ - name: Build and test with Rake
21
+ run: |
22
+ gem install bundler
23
+ bundle install --jobs 4 --retry 3
24
+ bundle exec rake
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.7.4
data/Appraisals CHANGED
@@ -9,3 +9,7 @@ end
9
9
  appraise "rails-5.1" do
10
10
  gem "rails", "~> 5.1.0"
11
11
  end
12
+
13
+ appraise "rails-6.0" do
14
+ gem "rails", "~> 6.0"
15
+ end
data/README.md CHANGED
@@ -1,5 +1,3 @@
1
- [![Build Status](https://travis-ci.org/ssaunier/github_webhook.svg?branch=master)](https://travis-ci.org/ssaunier/github_webhook)
2
- [![Code Climate](https://codeclimate.com/github/ssaunier/github_webhook/badges/gpa.svg)](https://codeclimate.com/github/ssaunier/github_webhook)
3
1
  [![Gem Version](https://badge.fury.io/rb/github_webhook.svg)](http://badge.fury.io/rb/github_webhook)
4
2
 
5
3
 
@@ -13,7 +11,7 @@ to a [GitHub webhook](https://developer.github.com/webhooks/)
13
11
  Add this line to your application's Gemfile:
14
12
 
15
13
  ```ruby
16
- gem 'github_webhook', '~> 1.1'
14
+ gem 'github_webhook', '~> 1.2'
17
15
  ```
18
16
 
19
17
  And then execute:
@@ -22,8 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency "activesupport", ">= 4"
23
23
  spec.add_dependency "railties", ">= 4"
24
24
 
25
- spec.add_development_dependency "rake", "~> 10.1"
26
- spec.add_development_dependency "rspec", "~> 2.14"
27
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0"
25
+ spec.add_development_dependency "rake", "~> 12.3"
26
+ spec.add_development_dependency "rspec", "~> 3.9"
28
27
  spec.add_development_dependency "appraisal"
29
28
  end
@@ -13,32 +13,36 @@ module GithubWebhook::Processor
13
13
 
14
14
  # To fetch list from https://developer.github.com/v3/activity/events/types
15
15
  # run this little JS code in the console:
16
- # $("h3:contains('Webhook event name')").next('p').each((_, p) => console.log(p.innerText))
16
+ # document.querySelectorAll('.list-style-none li.lh-condensed a').forEach(e => console.log(e.text))
17
17
  GITHUB_EVENTS = %w(
18
18
  check_run
19
19
  check_suite
20
+ code_scanning_alert
20
21
  commit_comment
22
+ content_reference
21
23
  create
22
24
  delete
25
+ deploy_key
23
26
  deployment
24
27
  deployment_status
25
- download
26
- follow
28
+ discussion
29
+ discussion_comment
27
30
  fork
28
- fork_apply
29
31
  github_app_authorization
30
- gist
31
32
  gollum
32
33
  installation
33
34
  installation_repositories
34
35
  issue_comment
35
36
  issues
36
37
  label
38
+ marketplace_purchase
37
39
  member
38
40
  membership
41
+ meta
39
42
  milestone
40
43
  organization
41
44
  org_block
45
+ package
42
46
  page_build
43
47
  ping
44
48
  project_card
@@ -50,13 +54,20 @@ module GithubWebhook::Processor
50
54
  pull_request_review_comment
51
55
  push
52
56
  release
57
+ repository_dispatch
53
58
  repository
54
59
  repository_import
55
60
  repository_vulnerability_alert
61
+ secret_scanning_alert
62
+ security_advisory
63
+ sponsorship
64
+ star
56
65
  status
57
66
  team
58
67
  team_add
59
68
  watch
69
+ workflow_dispatch
70
+ workflow_run
60
71
  )
61
72
 
62
73
  def create
@@ -1,3 +1,3 @@
1
1
  module GithubWebhook
2
- VERSION = "1.1.2"
2
+ VERSION = "1.2.0"
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.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Saunier
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-05 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -58,42 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.1'
61
+ version: '12.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.1'
68
+ version: '12.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.14'
75
+ version: '3.9'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.14'
83
- - !ruby/object:Gem::Dependency
84
- name: codeclimate-test-reporter
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.0'
82
+ version: '3.9'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: appraisal
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -115,9 +101,9 @@ executables: []
115
101
  extensions: []
116
102
  extra_rdoc_files: []
117
103
  files:
104
+ - ".github/workflows/ruby.yml"
118
105
  - ".gitignore"
119
106
  - ".ruby-version"
120
- - ".travis.yml"
121
107
  - Appraisals
122
108
  - Gemfile
123
109
  - LICENSE.txt
@@ -137,7 +123,7 @@ homepage: https://github.com/ssaunier/github_webhook
137
123
  licenses:
138
124
  - MIT
139
125
  metadata: {}
140
- post_install_message:
126
+ post_install_message:
141
127
  rdoc_options: []
142
128
  require_paths:
143
129
  - lib
@@ -152,8 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
138
  - !ruby/object:Gem::Version
153
139
  version: '0'
154
140
  requirements: []
155
- rubygems_version: 3.0.3
156
- signing_key:
141
+ rubygems_version: 3.1.6
142
+ signing_key:
157
143
  specification_version: 4
158
144
  summary: Process GitHub Webhooks in your Rails app (Controller mixin)
159
145
  test_files:
data/.travis.yml DELETED
@@ -1,16 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6.3
4
- - 2.5.3
5
- - 2.4.6
6
- - 2.3.7
7
- - 2.2.10
8
- gemfile:
9
- - gemfiles/rails_4.2.gemfile
10
- - gemfiles/rails_5.0.gemfile
11
- - gemfiles/rails_5.1.gemfile
12
- addons:
13
- code_climate:
14
- repo_token: 50425d682162d68af0b65bd9e5160da8337d2159fc3ebc00d2a5b14386548ac5
15
- after_success:
16
- - bundle exec codeclimate-test-reporter