github-web-hooks-receiver 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.travis.yml +8 -0
- data/Gemfile +3 -0
- data/README.md +212 -0
- data/Rakefile +23 -0
- data/config.ru +52 -0
- data/config.yaml.example +20 -0
- data/github-web-hooks-receiver.gemspec +28 -0
- data/lib/github-web-hooks-receiver.rb +29 -0
- data/lib/github-web-hooks-receiver/app.rb +239 -0
- data/lib/github-web-hooks-receiver/base.rb +98 -0
- data/lib/github-web-hooks-receiver/path-resolver.rb +31 -0
- data/lib/github-web-hooks-receiver/payload.rb +56 -0
- data/lib/github-web-hooks-receiver/repository.rb +192 -0
- data/lib/github-web-hooks-receiver/version.rb +18 -0
- data/license/GPL-3.txt +674 -0
- data/test/fixtures/config-multi-site.yaml +75 -0
- data/test/fixtures/mock-commit-email.rb +22 -0
- data/test/fixtures/stub-git.rb +5 -0
- data/test/github-web-hooks-receiver-test-utils.rb +50 -0
- data/test/multi-site-receiver-test.rb +345 -0
- data/test/receiver-config-test.rb +240 -0
- data/test/receiver-test.rb +386 -0
- data/test/run-test.rb +35 -0
- data/test/test-unit.yml +1 -0
- metadata +164 -0
data/test/run-test.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Copyright (C) 2010-2013 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
#
|
5
|
+
# This program is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# This program is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
|
+
|
18
|
+
$VERBOSE = true
|
19
|
+
|
20
|
+
base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
21
|
+
lib_dir = File.join(base_dir, "lib")
|
22
|
+
test_dir = File.join(base_dir, "test")
|
23
|
+
|
24
|
+
require "test-unit"
|
25
|
+
require "test/unit/capybara"
|
26
|
+
require "test/unit/rr"
|
27
|
+
|
28
|
+
ARGV.unshift("--priority-mode")
|
29
|
+
|
30
|
+
$LOAD_PATH.unshift(lib_dir)
|
31
|
+
|
32
|
+
$LOAD_PATH.unshift(test_dir)
|
33
|
+
require "github-web-hooks-receiver-test-utils"
|
34
|
+
|
35
|
+
exit Test::Unit::AutoRunner.run(true, test_dir)
|
data/test/test-unit.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
collector: load
|
metadata
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: github-web-hooks-receiver
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kouhei Sutou
|
8
|
+
- Kenji Okimoto
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rack
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '10.0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '10.0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: test-unit
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: test-unit-rr
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: test-unit-capybara
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
description: GitHub web hook receiver
|
99
|
+
email:
|
100
|
+
- kou@clear-code.com
|
101
|
+
- okimoto@clear-code.com
|
102
|
+
executables: []
|
103
|
+
extensions: []
|
104
|
+
extra_rdoc_files: []
|
105
|
+
files:
|
106
|
+
- ".gitignore"
|
107
|
+
- ".travis.yml"
|
108
|
+
- Gemfile
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- config.ru
|
112
|
+
- config.yaml.example
|
113
|
+
- github-web-hooks-receiver.gemspec
|
114
|
+
- lib/github-web-hooks-receiver.rb
|
115
|
+
- lib/github-web-hooks-receiver/app.rb
|
116
|
+
- lib/github-web-hooks-receiver/base.rb
|
117
|
+
- lib/github-web-hooks-receiver/path-resolver.rb
|
118
|
+
- lib/github-web-hooks-receiver/payload.rb
|
119
|
+
- lib/github-web-hooks-receiver/repository.rb
|
120
|
+
- lib/github-web-hooks-receiver/version.rb
|
121
|
+
- license/GPL-3.txt
|
122
|
+
- test/fixtures/config-multi-site.yaml
|
123
|
+
- test/fixtures/mock-commit-email.rb
|
124
|
+
- test/fixtures/stub-git.rb
|
125
|
+
- test/github-web-hooks-receiver-test-utils.rb
|
126
|
+
- test/multi-site-receiver-test.rb
|
127
|
+
- test/receiver-config-test.rb
|
128
|
+
- test/receiver-test.rb
|
129
|
+
- test/run-test.rb
|
130
|
+
- test/test-unit.yml
|
131
|
+
homepage: ''
|
132
|
+
licenses:
|
133
|
+
- GPL-3.0+
|
134
|
+
metadata: {}
|
135
|
+
post_install_message:
|
136
|
+
rdoc_options: []
|
137
|
+
require_paths:
|
138
|
+
- lib
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
requirements: []
|
150
|
+
rubyforge_project:
|
151
|
+
rubygems_version: 2.4.5
|
152
|
+
signing_key:
|
153
|
+
specification_version: 4
|
154
|
+
summary: GitHub web hook receiver
|
155
|
+
test_files:
|
156
|
+
- test/fixtures/config-multi-site.yaml
|
157
|
+
- test/fixtures/mock-commit-email.rb
|
158
|
+
- test/fixtures/stub-git.rb
|
159
|
+
- test/github-web-hooks-receiver-test-utils.rb
|
160
|
+
- test/multi-site-receiver-test.rb
|
161
|
+
- test/receiver-config-test.rb
|
162
|
+
- test/receiver-test.rb
|
163
|
+
- test/run-test.rb
|
164
|
+
- test/test-unit.yml
|