raven-transports-fluentd 0.1.1 → 0.1.2

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: cbd83482e6f2c9958c9244cf9bcc7a40d51efcc1
4
- data.tar.gz: a5a0af22bdab1fefd1fb9af83b8582bce4f6f6ab
3
+ metadata.gz: 5f470aa454b5522184c734a77491442b921b8965
4
+ data.tar.gz: ceb7642afa88fb4c2db9cf9b683c4d00b98795f9
5
5
  SHA512:
6
- metadata.gz: 6b7de223fc3a4bf403a1124cb7cf3063d9e5bafd0929f4ccf0387f00de649a80e66ebc00578c26afdaa5f2087ace7bbf79adbca9d524831c26a93b0ff0421614
7
- data.tar.gz: 17f59255c97065ccb86a6806dfb196ed13826da785b8b7960eac5697917ec1b55c7705a7b19bc49aaa1a27727dac1c88184c116dc01afd286744b0dbe44e21c2
6
+ metadata.gz: 60e8967ba6ec2e9334a53a8d68dd138e116253c49647643176770c62e2f5c07c6418853e5a23b44c001ccb8c25461e5d1ddaa575ba262879fd5e8b88a5517a7a
7
+ data.tar.gz: 622d3fec2c796e5747d1e207ec55294c3f251cdee434dde64af3b0b3713e9436a1e1c12fd6c01abba94b086414a281d33ef38974d099500ffab80d6c28e70d4a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.2 (2014-12-08)
2
+ - Fix fluentd plugin issue with sentry-raven >= 0.11.2
3
+
1
4
  ## 0.1.1 (2014-12-08)
2
5
  - Relax dependency on sentry-raven
3
6
 
@@ -1,6 +1,4 @@
1
1
  require 'raven'
2
- require 'hashie'
3
- require 'uri'
4
2
 
5
3
  module Fluent
6
4
  class RavenOutput < BufferedOutput
@@ -14,18 +12,14 @@ module Fluent
14
12
 
15
13
  def configure(conf)
16
14
  super
17
- uri = URI.parse(conf['server'])
18
- project_id = uri.path.slice(/\d+/)
19
15
 
20
- @base_configuration = Hashie::Mash.new(
21
- server: conf['server'],
22
- public_key: 'not_used',
23
- secret_key: 'not_used',
24
- ssl: uri.scheme == 'https' ? true : false,
25
- ssl_verification: conf['ssl_verification'],
26
- timeout: conf['timeout'],
27
- open_timeout: conf['open_timeout'],
28
- )
16
+ @base_configuration = Raven::Configuration.new
17
+ @base_configuration.server = conf['server']
18
+ @base_configuration.public_key = 'not_used'
19
+ @base_configuration.secret_key = 'not_used'
20
+ @base_configuration.ssl_verification = conf['ssl_verification']
21
+ @base_configuration.timeout = conf['timeout']
22
+ @base_configuration.open_timeout = conf['open_timeout']
29
23
 
30
24
  Raven.configure do |config|
31
25
  config.logger = Logger.new(conf['raven_log_path'])
@@ -57,9 +51,9 @@ module Fluent
57
51
  private
58
52
 
59
53
  def send_to_sentry(auth_header, data, project_id, options)
60
- transport = ::Raven::Transports::HTTP.new(@base_configuration.merge(
61
- project_id: project_id,
62
- ))
54
+ config = @base_configuration.dup
55
+ config.project_id = project_id
56
+ transport = ::Raven::Transports::HTTP.new(config)
63
57
  transport.send(auth_header, data, options)
64
58
  end
65
59
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "raven-transports-fluentd"
7
- spec.version = '0.1.1'
7
+ spec.version = '0.1.2'
8
8
  spec.authors = ["Naoto Takai", "Kohei Suzuki"]
9
9
  spec.email = ["takai@cookpad.com", "kohei-suzuki@cookpad.com"]
10
10
  spec.summary = %q{Send error logs to sentry via fluentd.}
@@ -21,6 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "rake"
22
22
 
23
23
  spec.add_dependency "fluent-logger"
24
- spec.add_dependency "hashie"
25
24
  spec.add_dependency "sentry-raven", ">= 0.10.1"
26
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raven-transports-fluentd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoto Takai
@@ -53,20 +53,6 @@ dependencies:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: hashie
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :runtime
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
56
  - !ruby/object:Gem::Dependency
71
57
  name: sentry-raven
72
58
  requirement: !ruby/object:Gem::Requirement