githook 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/githook/bot_server.rb +15 -0
- data/lib/githook/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a2e2d13b18491f2527d99f809e9437936d61390
|
4
|
+
data.tar.gz: 68f87cbf610aca114c7af8077947f43939deb9ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a291f330588cf5fdd0b53a281d8570244c011c907c4dbcb61e1af1853ca7e22985ff13a47a43a4b9fae9a7d01cd2d8e8a226c9def90209067d639e926a29954
|
7
|
+
data.tar.gz: 80c43f28f19ccf6327fbbf254b3e51c53f8b4bd4cbce582b7d65a07c354e850a6312721ca3eb8da8d16fb45e26241e9b869bc645ce024a75bc47ef1d88f707f3
|
@@ -0,0 +1,15 @@
|
|
1
|
+
=begin
|
2
|
+
require 'rack'
|
3
|
+
|
4
|
+
module Githook
|
5
|
+
def self.listen(route = nil)
|
6
|
+
app = Proc.new do |env|
|
7
|
+
['200', {'Content-Type' => 'application/json'}, ["{\"message\": \"Success\"}"]]
|
8
|
+
end
|
9
|
+
|
10
|
+
Rack::Server.new(
|
11
|
+
server: 'webrick',
|
12
|
+
Port: 3002
|
13
|
+
end
|
14
|
+
end
|
15
|
+
=end
|
data/lib/githook/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: githook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael West
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -32,6 +32,7 @@ extra_rdoc_files: []
|
|
32
32
|
files:
|
33
33
|
- lib/githook.rb
|
34
34
|
- lib/githook/bot.rb
|
35
|
+
- lib/githook/bot_server.rb
|
35
36
|
- lib/githook/event_objects/pull_request.rb
|
36
37
|
- lib/githook/version.rb
|
37
38
|
- spec/githook_spec.rb
|
@@ -63,7 +64,8 @@ rubyforge_project:
|
|
63
64
|
rubygems_version: 2.2.2
|
64
65
|
signing_key:
|
65
66
|
specification_version: 4
|
66
|
-
summary: A Ruby DSL for
|
67
|
+
summary: A Ruby DSL for defining your very own Github bot. The lingua franca for the
|
68
|
+
DSL is Github webhook requests
|
67
69
|
test_files:
|
68
70
|
- spec/githook_spec.rb
|
69
71
|
- spec/spec_helper.rb
|