hubstats 1.0.0.beta1 → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/hubstats/events_controller.rb +4 -0
- data/lib/hubstats/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 802a99fc98c0f264072c31356e0ecfb571c2e01ef1563cba5325ce8111c95db8
|
4
|
+
data.tar.gz: 0de3cc728105f34ff7ba2df58ebae2094f4a28566317ede5aeca35b84ffa82e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f52fd3881a286065fe4482934e6e61f397d9c5af62175b664c36992e6a9ea31d4047369b2466f328635487dcf01c36c6f878999bf22dc743f28569b2af9a327f
|
7
|
+
data.tar.gz: 4b3dbe91fc2e48a6d94fa3cb8f2289ed028414bd9e6f4b44d6c13dc236b4e8c2004ee1743754a0e7ffaec3eb3eaf65988b8de44484961974e153111639e3dcc7
|
@@ -13,16 +13,20 @@ module Hubstats
|
|
13
13
|
# verify_signature(request)
|
14
14
|
|
15
15
|
Rails.logger.warn("Webhook received from Github.")
|
16
|
+
puts "Webhook received from Github."
|
16
17
|
|
17
18
|
kind = request.headers['X-Github-Event']
|
18
19
|
Rails.logger.warn("Kind of webhook: #{kind}")
|
20
|
+
puts "Kind of webhook: #{kind}"
|
19
21
|
|
20
22
|
event = event_params.with_indifferent_access
|
21
23
|
Rails.logger.warn("Event: #{event}")
|
24
|
+
puts "Event: #{event}"
|
22
25
|
|
23
26
|
raw_parameters = request.request_parameters
|
24
27
|
event[:github_action] = raw_parameters["action"]
|
25
28
|
Rails.logger.warn("Github action: #{event[:github_action]}")
|
29
|
+
puts "Github action: #{event[:github_action]}"
|
26
30
|
|
27
31
|
eventsHandler = Hubstats::EventsHandler.new()
|
28
32
|
eventsHandler.route(event, kind)
|
data/lib/hubstats/version.rb
CHANGED