site_hook 1.0.27 → 1.0.28

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: 563042a21788f383031f688dc49333083a0b602e8e2ebde30d0be230092ac96c
4
- data.tar.gz: c8f09f26e5a560de871520a9efac8518c0d937a0473b044b12e14519f04dfaff
3
+ metadata.gz: d3989178c47d8634c927a8baf022540b039a40e2a589119f05a51dd57a049cf2
4
+ data.tar.gz: 3a556d41a9eeb26a20c3e38046950fd98826e647047682525d532738e7d3edd9
5
5
  SHA512:
6
- metadata.gz: 5191fa30cafd311bfaec4dbf8a5290a6872c28e655f44a6108c614f843eafcdff7afad604f4b015c2a46135df7c94c3090161d668a574ad35410b09605970a78
7
- data.tar.gz: 9034a3f69a901649f5e58e1df5e094c813d4e7fa4c2de5022c3ceeb3499c2fdd43edbfdd3aecd0ede70614baa778190908178feb267f5115c0c08da581c3efc2
6
+ metadata.gz: e013f5e94d6ce86185a19b2633fc7eebb8e2f6740c76598f7b6ccf43b2eee82658be83768df820fe70df7808ee1534d21124f71efd3355e3aa874c1a5f24c4b2
7
+ data.tar.gz: c3ea932fcda0c99e4d456fc33ee46708acedc551eba2eb3c9e023c2e9d3fea7eb9e288397c08d4ba8825bbe6580647d6deb683a80c71bf75fd9d70dca0afd0af
@@ -13,13 +13,22 @@ module SiteHook
13
13
  # puts SiteHook::VERSION
14
14
  # end
15
15
  # map ['-v', '--version'] => __version
16
- method_option(:host, banner: 'HOST', aliases: ['-h'], type: :string, default: SiteHook::Config.webhook.host)
17
- method_option(:port, banner: 'PORT', aliases: ['-p'], type: :numeric, default: SiteHook::Config.webhook.port)
16
+ method_option(:host, banner: 'HOST', aliases: ['-h'], type: :string)
17
+ method_option(:port, banner: 'PORT', aliases: ['-p'], type: :numeric)
18
18
  desc 'listen [options]', ''
19
19
  def listen
20
+ host = SiteHook::Config.webhook.host
21
+ port = SiteHook::Config.webhook.port
22
+ if options['host']
23
+ host = options['host']
24
+ end
25
+ if options['port']
26
+ port = options['port']
27
+ end
28
+
20
29
  $threads << Thread.new do
21
30
  PreLogger.debug options
22
- ::Thin::Server.start(options['host'], options['port'], SiteHook::Server, debug: true)
31
+ ::Thin::Server.start(host, port, SiteHook::Server, debug: true)
23
32
  end
24
33
  $threads << Thread.new do
25
34
  loop do
@@ -1,3 +1,3 @@
1
1
  module SiteHook
2
- VERSION = '1.0.27'
2
+ VERSION = '1.0.28'
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.27
4
+ version: 1.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer