bugsnag-delivery-fluent 0.1.4 → 0.2.0

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
  SHA1:
3
- metadata.gz: 8aa3efa1a07e6be5f3af811c377653616bd69bda
4
- data.tar.gz: b27c06b329bf81f61d5b6b4edd3e685c78187915
3
+ metadata.gz: 1600b15c31ff5e3592e150d11ebf6e4b003e5b35
4
+ data.tar.gz: 30c5edbf31cf02902bad322c6cf69d622cfcc838
5
5
  SHA512:
6
- metadata.gz: 1ac772907062a148646534e8df92518c044bb787804568fc9c58d271658496afeecabdc0063bfdca4baad5e71edbcca11632b1e6e7673dd87bac33ea4737623f
7
- data.tar.gz: 38ee00461c8abedbe77587d9334e1d6462c7d99f7c90c2a94b1bb899e731728529d2b8d0aeea82f37dbbd314ce9fe39a4786facae6df21f6b1cf3e8bf5b11722
6
+ metadata.gz: f0cd8a783d0f64330c018744886d3e14bc4173f4467cd26687a52ee078fdf9863d8943feb2c0042f9c2370b57e2d5f2b66c64b8975f4517c46a5634a5fc6f41d
7
+ data.tar.gz: b174f07adf1b88cf526998c611fc40be7c816553d563332c5884837a6521b763798d2d526cf86d87bbf74c634fc3dafe3cb6be68176bb0ca2e0702ce045db802
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency 'rspec'
25
25
  spec.add_development_dependency 'rspec-mocks'
26
26
 
27
- spec.add_runtime_dependency 'bugsnag', "~> 5.0"
27
+ spec.add_runtime_dependency 'bugsnag', '~> 6.0'
28
28
  spec.add_runtime_dependency 'fluent-logger'
29
29
  end
@@ -1,7 +1,7 @@
1
1
  module Bugsnag
2
2
  module Delivery
3
3
  class Fluent
4
- VERSION = "0.1.4"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
@@ -23,7 +23,7 @@ module Bugsnag
23
23
 
24
24
  module Delivery
25
25
  class Fluent
26
- def self.deliver(url, body, configuration)
26
+ def self.deliver(url, body, configuration, options = {})
27
27
  begin
28
28
  logger = ::Fluent::Logger::FluentLogger.new(
29
29
  configuration.fluent_tag_prefix,
@@ -31,15 +31,15 @@ module Bugsnag
31
31
  :port => configuration.fluent_port
32
32
  )
33
33
  if logger.post('deliver', { :url => url, :body => body })
34
- Bugsnag.debug("Notification to #{url} finished, payload was #{body}")
34
+ configuration.debug("Notification to #{url} finished, payload was #{body}")
35
35
  else
36
- Bugsnag.warn("Notification to #{url} failed, #{logger.last_error}")
36
+ configuration.warn("Notification to #{url} failed, #{logger.last_error}")
37
37
  end
38
38
  rescue StandardError => e
39
39
  raise if e.class.to_s == "RSpec::Expectations::ExpectationNotMetError"
40
40
 
41
- Bugsnag.warn("Notification to #{url} failed, #{e.inspect}")
42
- Bugsnag.warn(e.backtrace)
41
+ configuration.warn("Notification to #{url} failed, #{e.inspect}")
42
+ configuration.warn(e.backtrace)
43
43
  end
44
44
  end
45
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag-delivery-fluent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - koshigoe
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5.0'
75
+ version: '6.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '5.0'
82
+ version: '6.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: fluent-logger
85
85
  requirement: !ruby/object:Gem::Requirement