githook 0.0.1 → 0.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: 0d6ad67228de0794573cee0c93d11e0c1983a0f3
4
- data.tar.gz: 53a47507217adb632d626c8cb6d7b5294704dd73
3
+ metadata.gz: 3a2e2d13b18491f2527d99f809e9437936d61390
4
+ data.tar.gz: 68f87cbf610aca114c7af8077947f43939deb9ad
5
5
  SHA512:
6
- metadata.gz: eed95b3d2f1051f5f99f415b20c856f62cc521e784a1a750dd0564b5aecafd211f111a8615e8122d35dc5fb72eeca3c20630006335d275a4c41e5abc4c5f8050
7
- data.tar.gz: 8c9fb99c67059699529013a85140efd4bc50d8651d1137c96a9c4f0d7e41410d083242fba03924cd02a4f626e2da004fe09aa821cc406680efab5ca6b215dd01
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
@@ -1,3 +1,3 @@
1
1
  module Githook
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-27 00:00:00.000000000 Z
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 handling Github webhook requests
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