ruby_rabbitmq_janus 2.6.0.pre.258 → 2.6.0.pre.259

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: 7c2c4198c70eb700d253b4ff3f8177d170c0dfb7739596d28996080d128152d4
4
- data.tar.gz: 6865ae1fc691f3cb88ebe03a59401b8193bf43754b9fc61230564ced574033d3
3
+ metadata.gz: f22219a9d1b138cf9deb72eea8ba0ff5e96babd726840beaea2bcd6bc83ea636
4
+ data.tar.gz: 49231a32d9c46b511a8edcce33a4e298ebc8952922df040dc99ae15e43d0f126
5
5
  SHA512:
6
- metadata.gz: e4dd95300f9b59baed2319cd4b4048c51909308e50d0c345287a9f986b7c96d29b3d70535fbe3545c42c6236f4aa7782c6523059f7aae5add543a345a8a09641
7
- data.tar.gz: 107548935cfdf99305aa34af5c941ee6996b51773ef9e2f3d8ee9cc9e62ba8390c2a8a5d3cb266c3f4040aeb7f09de5c6b06372d238d59d23d163f3898c5e947
6
+ metadata.gz: f8e607410914d08787342033553fe084b5ad784d2dea3779271f92a1374e2ae6c6020220fc32acb724590effdb938cc8a91a8cca11b5909af9f7068820da15c4
7
+ data.tar.gz: aecad6ff93a6f858e5e220adc006f9ff295907396dd90bca9ef98e89670f289d0b13764838671c7621ec311e205d19054a04336cee4aa6443a2c23d01f674fe2
data/config/default.yml CHANGED
@@ -61,13 +61,11 @@ gem:
61
61
  # Precise type logger
62
62
  # stdout : Output standard.
63
63
  # file : Create log file in path 'log/ruby-rabbitmq-janus.log'.
64
- # rails : Use logger rails.
65
64
  # remote : Use RemoteSyslogLogger (for papertrail)
66
65
  type: file
67
66
  # Used with type. Complete missing data :
68
67
  # stdout : no option
69
68
  # file : filename used
70
- # rails : no option
71
69
  # remote : data output (logs.papertrail.com:4685@program_rrj:backend_host)
72
70
  option: ''
73
71
  # Options for listener thread
@@ -39,8 +39,9 @@ module RubyRabbitmqJanus
39
39
  case @config.log_type
40
40
  when :stdout then logger_stdout
41
41
  when :file then logger_file
42
- when :rails then logger_rails
43
42
  when :remote then logger_remote
43
+ else
44
+ logger_stdout
44
45
  end
45
46
  end
46
47
 
@@ -48,15 +49,13 @@ module RubyRabbitmqJanus
48
49
  ::Logger.new(STDOUT)
49
50
  end
50
51
 
51
- def self.logger_rails
52
- Rails.logger
53
- end
54
-
55
52
  def self.logger_file
56
- ::Logger.new('log/ruby-rabbitmq-janus.log')
53
+ ::Logger.new(@config.log_option)
57
54
  end
58
55
 
59
56
  def self.logger_remote
57
+ require 'remote_syslog_logger'
58
+
60
59
  RemoteSyslogLogger.new(remote_url,
61
60
  remote_port,
62
61
  program: remote_program,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_rabbitmq_janus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0.pre.258
4
+ version: 2.6.0.pre.259
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -708,7 +708,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
708
708
  - !ruby/object:Gem::Version
709
709
  version: 1.3.1
710
710
  requirements: []
711
- rubygems_version: 3.0.6
711
+ rubygems_version: 3.0.4
712
712
  signing_key:
713
713
  specification_version: 4
714
714
  summary: Ruby RabbitMQ Janus