site_hook 1.0.24 → 1.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/site_hook/commands/server_class.rb +1 -1
- data/lib/site_hook/config.rb +2 -2
- data/lib/site_hook/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: 436e0c93647731fea5b1dab57100f31556d79b9e5b1103c7d072f7cc5030cfde
|
4
|
+
data.tar.gz: e018f05dd8a7634647df83866d2397d33c25ba3e1f714c5f1b1dcc25943e385e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dab9970c0384d813655521b571450cea8243060eebcdc6fad81edf24bade461c73afb107a1d6564f178fea136f16e09b89e0022a08c8a515b5a7186a0768da8
|
7
|
+
data.tar.gz: b5c69644b896b8ae7b265b197c7b86857806bc308fc88d9986bee9610933abc17bea55848a1e6e0322ee71535f8cc612e7e0e1759b609305cc5936d9791e3000
|
@@ -4,7 +4,6 @@ require 'grape-route-helpers'
|
|
4
4
|
require 'site_hook/webhook'
|
5
5
|
require 'thin'
|
6
6
|
require 'site_hook/config'
|
7
|
-
require 'super_callbacks'
|
8
7
|
module SiteHook
|
9
8
|
module Commands
|
10
9
|
class ServerClass < Thor
|
@@ -19,6 +18,7 @@ module SiteHook
|
|
19
18
|
desc 'listen [options]', ''
|
20
19
|
def listen
|
21
20
|
$threads << Thread.new do
|
21
|
+
PreLogger.debug options
|
22
22
|
::Thin::Server.start(options[:host], options[:port], SiteHook::Server, debug: true)
|
23
23
|
end
|
24
24
|
$threads << Thread.new do
|
data/lib/site_hook/config.rb
CHANGED
@@ -40,10 +40,8 @@ module SiteHook
|
|
40
40
|
def initialize
|
41
41
|
@@config = {}
|
42
42
|
@@filename = SiteHook::Paths.default_config
|
43
|
-
puts @@filename
|
44
43
|
begin
|
45
44
|
@@config = YAML.load_file(@@filename)
|
46
|
-
puts @@config
|
47
45
|
rescue Errno::ENOENT
|
48
46
|
PreLogger.error "ENOENT"
|
49
47
|
raise SiteHook::NoConfigError.new @@filename
|
@@ -51,7 +49,9 @@ module SiteHook
|
|
51
49
|
PreLogger.error @@filename.empty?
|
52
50
|
end
|
53
51
|
end
|
52
|
+
SiteHook::Config.singleton_class.before :webhook, :projects, :cli, :log_levels do
|
54
53
|
|
54
|
+
end
|
55
55
|
# @return [Webhook]
|
56
56
|
def self.webhook
|
57
57
|
Webhook.new(@@config['webhook'])
|
data/lib/site_hook/version.rb
CHANGED