graylog2_exceptions 1.0.0 → 1.1.0

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.
data/README CHANGED
@@ -1 +1,5 @@
1
- See http://www.graylog2.org/ for more information. Use gem as installation source. This is just the development repository.
1
+ Log all the Exceptions of your Rack application to a Graylog2 server.
2
+
3
+ Installation and configuration instructions in the Wiki.
4
+
5
+ More information about Graylog2: [[http://www.graylog2.org/]]
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.email = "lennart@socketfeed.com"
13
13
  gem.homepage = "http://www.graylog2.org/"
14
14
  gem.authors = "Lennart Koopmann"
15
- gem.add_dependency "gelf", "= 1.0.0"
15
+ gem.add_dependency "gelf", "= 1.1.1"
16
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
17
  end
18
18
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -1,4 +1,5 @@
1
1
  require 'helper'
2
+ require 'logger'
2
3
 
3
4
  class TestGraylog2Exceptions < Test::Unit::TestCase
4
5
 
@@ -32,14 +33,13 @@ class TestGraylog2Exceptions < Test::Unit::TestCase
32
33
 
33
34
  def test_send_exception_to_graylog2_without_custom_parameters
34
35
  ex = build_exception
35
-
36
36
  c = Graylog2Exceptions.new(nil, {})
37
37
  sent = Zlib::Inflate.inflate(c.send_to_graylog2(ex).join)
38
38
  json = JSON.parse(sent)
39
39
 
40
40
  assert json["short_message"].include?('undefined method `klopfer!')
41
41
  assert json["full_message"].include?('in `build_exception')
42
- assert_equal 3, json["level"]
42
+ assert_equal 4, json["level"]
43
43
  assert_equal Socket.gethostname, json["host"]
44
44
  assert_equal ex.backtrace[0].split(":")[1], json["line"]
45
45
  assert_equal ex.backtrace[0].split(":")[0], json["file"]
@@ -48,13 +48,13 @@ class TestGraylog2Exceptions < Test::Unit::TestCase
48
48
  def test_send_exception_to_graylog2_with_custom_parameters
49
49
  ex = build_exception
50
50
 
51
- c = Graylog2Exceptions.new(nil, {:local_app_name => "machinexx", :level => 1})
51
+ c = Graylog2Exceptions.new(nil, {:local_app_name => "machinexx", :level => 4})
52
52
  sent = Zlib::Inflate.inflate(c.send_to_graylog2(ex).join)
53
53
  json = JSON.parse(sent)
54
54
 
55
55
  assert json["short_message"].include?('undefined method `klopfer!')
56
56
  assert json["full_message"].include?('in `build_exception')
57
- assert_equal 1, json["level"]
57
+ assert_equal 3, json["level"]
58
58
  assert_equal "machinexx", json["host"]
59
59
  assert_equal ex.backtrace[0].split(":")[1], json["line"]
60
60
  assert_equal ex.backtrace[0].split(":")[0], json["file"]
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
+ - 1
7
8
  - 0
8
- - 0
9
- version: 1.0.0
9
+ version: 1.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lennart Koopmann
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-19 00:00:00 +01:00
17
+ date: 2011-01-23 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -27,9 +27,9 @@ dependencies:
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
29
  - 1
30
- - 0
31
- - 0
32
- version: 1.0.0
30
+ - 1
31
+ - 1
32
+ version: 1.1.1
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  description: A Rack middleware that sends every Exception as GELF message to your Graylog2 server
@@ -41,7 +41,6 @@ extensions: []
41
41
  extra_rdoc_files:
42
42
  - README
43
43
  files:
44
- - .gitignore
45
44
  - README
46
45
  - Rakefile
47
46
  - VERSION
@@ -53,8 +52,8 @@ homepage: http://www.graylog2.org/
53
52
  licenses: []
54
53
 
55
54
  post_install_message:
56
- rdoc_options:
57
- - --charset=UTF-8
55
+ rdoc_options: []
56
+
58
57
  require_paths:
59
58
  - lib
60
59
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- pkg/
2
- coverage/
3
- Manifest