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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca7a2a4ef2a2702114b33c357535b837142f196d2321180b7a28395731326344
4
- data.tar.gz: '09f81e21af3dfb5d41a2e109f05b14fe629240aa7652ed55035a0a460ae8597f'
3
+ metadata.gz: 436e0c93647731fea5b1dab57100f31556d79b9e5b1103c7d072f7cc5030cfde
4
+ data.tar.gz: e018f05dd8a7634647df83866d2397d33c25ba3e1f714c5f1b1dcc25943e385e
5
5
  SHA512:
6
- metadata.gz: 7437eaf8ccc3c319b217bfb3aac7940dbc33482a7a40f4d568568f6a45e9bd6765f82bada6c7d182de692682e4479791beff5c413b1c34d72f5dc69ded0252fd
7
- data.tar.gz: b53a40f5ca20feccaad198b21d78067a975b1e059a7dae12bf552ed1968c45e1ea65c27fc9e1443ff7e30eb940974019ea1a6a832b6420195fb88e25facc23f3
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
@@ -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'])
@@ -1,3 +1,3 @@
1
1
  module SiteHook
2
- VERSION = '1.0.24'
2
+ VERSION = '1.0.25'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_hook
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.24
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer