synapse-rails 0.0.7 → 0.0.7.1

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: b5fc5e8fc41e615a77b0269e557f28c04171b452
4
- data.tar.gz: 2b2331745ba94d08ffba74c2b7e18751d9e08d7e
3
+ metadata.gz: b4c5bca7370a09c4bb4d90e47afdddbece503273
4
+ data.tar.gz: 6914186a1d2717d1aa9da424cdddee2bd9106790
5
5
  SHA512:
6
- metadata.gz: 7677e887a2954a8169811a9b6814dbc17e10242f18aba8cb22472893f8cbc0663a1473665aaca5110c7f23caa776179fffebeb419f59db399fa79428065a485a
7
- data.tar.gz: 7aa7458e5a8e60a15614ed667cb21b2a82385832a933c2b3c20178a6a1723392eb634d4c3ad12851aafa0283a8262d6aed75e34ff0fa8b82c9e15837ebc94b95
6
+ metadata.gz: e63e741327fc24efb2de1ea65104b87cbfcfab580f3829523a41fedc0283bab4fc0140f9a9072436124909c7fa1f2c75e585b1e26b5e65e4df3f4df9eb7967ad
7
+ data.tar.gz: 5d6f631b10ecf8786167d92aa670c0b7a67860538e1d00ec5d017f3d194773b89e739ec27d5b932bcfb510b9cbcdedf09ae97509ef4aaabaecb8174ed2c9adfd
@@ -41,20 +41,21 @@ module Synapse
41
41
  synapse_instance.run
42
42
  end
43
43
  at_exit do
44
+ log = ::Rails.logger if defined? ::Rails.logger
44
45
  if File.exists? pid_file_path
45
46
  pids = File.read(pid_file_path).strip
46
47
  cmd = "kill -9 #{pids}"
47
- ::Rails.logger.info "HAProxy stop #{pids}"
48
+ log.info "HAProxy stop #{pids}" if log
48
49
  `#{cmd}`
49
- ::Rails.logger.debug "HAProxy unlink #{pid_file_path}"
50
+ log.debug "HAProxy unlink #{pid_file_path}" if log
50
51
  File.unlink pid_file_path
51
52
  end
52
53
  if File.exists? socket_file_path
53
- ::Rails.logger.debug "HAProxy unlink #{socket_file_path}"
54
+ log.debug "HAProxy unlink #{socket_file_path}" if log
54
55
  File.unlink socket_file_path
55
56
  end
56
57
  if File.exists? config_file_path
57
- ::Rails.logger.debug "HAProxy unlink #{config_file_path}"
58
+ log.debug "HAProxy unlink #{config_file_path}" if log
58
59
  File.unlink config_file_path
59
60
  end
60
61
  end
@@ -1,5 +1,5 @@
1
1
  module Synapse
2
2
  module Rails
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.7.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann