rjack-slf4j 1.7.0.0-java → 1.7.2.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.7.2.0 (2012-11-9)
2
+ * Upgraded to SLF4J 1.7.2
3
+ * Fix mutation by dup'ing input message in <level>_ex calls,
4
+ (msg,ruby-exception) case (#4, Tom May)
5
+
1
6
  === 1.7.0.0 (2012-9-15)
2
7
  * Upgraded to SLF4J 1.7.0
3
8
 
data/Manifest.txt CHANGED
@@ -18,12 +18,12 @@ lib/rjack-slf4j/log4j-over-slf4j.rb
18
18
  lib/rjack-slf4j/log4j12.rb
19
19
  lib/rjack-slf4j/nop.rb
20
20
  lib/rjack-slf4j/simple.rb
21
- lib/rjack-slf4j/jcl-over-slf4j-1.7.0.jar
22
- lib/rjack-slf4j/jul-to-slf4j-1.7.0.jar
23
- lib/rjack-slf4j/log4j-over-slf4j-1.7.0.jar
24
- lib/rjack-slf4j/slf4j-api-1.7.0.jar
25
- lib/rjack-slf4j/slf4j-jcl-1.7.0.jar
26
- lib/rjack-slf4j/slf4j-jdk14-1.7.0.jar
27
- lib/rjack-slf4j/slf4j-log4j12-1.7.0.jar
28
- lib/rjack-slf4j/slf4j-nop-1.7.0.jar
29
- lib/rjack-slf4j/slf4j-simple-1.7.0.jar
21
+ lib/rjack-slf4j/jcl-over-slf4j-1.7.2.jar
22
+ lib/rjack-slf4j/jul-to-slf4j-1.7.2.jar
23
+ lib/rjack-slf4j/log4j-over-slf4j-1.7.2.jar
24
+ lib/rjack-slf4j/slf4j-api-1.7.2.jar
25
+ lib/rjack-slf4j/slf4j-jcl-1.7.2.jar
26
+ lib/rjack-slf4j/slf4j-jdk14-1.7.2.jar
27
+ lib/rjack-slf4j/slf4j-log4j12-1.7.2.jar
28
+ lib/rjack-slf4j/slf4j-nop-1.7.2.jar
29
+ lib/rjack-slf4j/slf4j-simple-1.7.2.jar
data/lib/rjack-slf4j.rb CHANGED
@@ -224,7 +224,7 @@ module RJack
224
224
  if ex.is_a?( NativeException )
225
225
  @logger.#{lvl}( msg.to_s, ex.cause )
226
226
  elsif #{lvl}?
227
- log = msg.to_s
227
+ log = msg.to_s.dup
228
228
  log << '\n'
229
229
  log << ex.class.name << ': ' << ex.message << '\n'
230
230
  ex.backtrace.each do |b|
@@ -26,7 +26,7 @@ module RJack
26
26
  module SLF4J
27
27
 
28
28
  # SLF4J-java version
29
- SLF4J_VERSION = '1.7.0'
29
+ SLF4J_VERSION = '1.7.2'
30
30
  # SLF4J gem version
31
31
  VERSION = SLF4J_VERSION + '.0'
32
32
 
Binary file
data/pom.xml CHANGED
@@ -16,34 +16,34 @@
16
16
  <dependency>
17
17
  <groupId>org.slf4j</groupId>
18
18
  <artifactId>slf4j-api</artifactId>
19
- <version>1.7.0</version>
19
+ <version>1.7.2</version>
20
20
  </dependency>
21
21
 
22
22
  <dependency>
23
23
  <groupId>org.slf4j</groupId>
24
24
  <artifactId>jcl-over-slf4j</artifactId>
25
- <version>1.7.0</version>
25
+ <version>1.7.2</version>
26
26
  <scope>runtime</scope>
27
27
  </dependency>
28
28
 
29
29
  <dependency>
30
30
  <groupId>org.slf4j</groupId>
31
31
  <artifactId>jul-to-slf4j</artifactId>
32
- <version>1.7.0</version>
32
+ <version>1.7.2</version>
33
33
  <scope>runtime</scope>
34
34
  </dependency>
35
35
 
36
36
  <dependency>
37
37
  <groupId>org.slf4j</groupId>
38
38
  <artifactId>log4j-over-slf4j</artifactId>
39
- <version>1.7.0</version>
39
+ <version>1.7.2</version>
40
40
  <scope>runtime</scope>
41
41
  </dependency>
42
42
 
43
43
  <dependency>
44
44
  <groupId>org.slf4j</groupId>
45
45
  <artifactId>slf4j-jdk14</artifactId>
46
- <version>1.7.0</version>
46
+ <version>1.7.2</version>
47
47
  <scope>runtime</scope>
48
48
  <optional>true</optional>
49
49
  </dependency>
@@ -51,7 +51,7 @@
51
51
  <dependency>
52
52
  <groupId>org.slf4j</groupId>
53
53
  <artifactId>slf4j-log4j12</artifactId>
54
- <version>1.7.0</version>
54
+ <version>1.7.2</version>
55
55
  <scope>runtime</scope>
56
56
  <optional>true</optional>
57
57
  </dependency>
@@ -59,7 +59,7 @@
59
59
  <dependency>
60
60
  <groupId>org.slf4j</groupId>
61
61
  <artifactId>slf4j-jcl</artifactId>
62
- <version>1.7.0</version>
62
+ <version>1.7.2</version>
63
63
  <scope>runtime</scope>
64
64
  <optional>true</optional>
65
65
  </dependency>
@@ -67,7 +67,7 @@
67
67
  <dependency>
68
68
  <groupId>org.slf4j</groupId>
69
69
  <artifactId>slf4j-simple</artifactId>
70
- <version>1.7.0</version>
70
+ <version>1.7.2</version>
71
71
  <scope>runtime</scope>
72
72
  <optional>true</optional>
73
73
  </dependency>
@@ -75,7 +75,7 @@
75
75
  <dependency>
76
76
  <groupId>org.slf4j</groupId>
77
77
  <artifactId>slf4j-nop</artifactId>
78
- <version>1.7.0</version>
78
+ <version>1.7.2</version>
79
79
  <scope>runtime</scope>
80
80
  <optional>true</optional>
81
81
  </dependency>
data/test/test_slf4j.rb CHANGED
@@ -127,6 +127,16 @@ class TestSlf4j < MiniTest::Unit::TestCase
127
127
  assert_equal( 1, @handler.count )
128
128
  end
129
129
 
130
+ def test_ruby_exception_msg
131
+ msg = "my message".freeze
132
+ begin
133
+ 0/0 # ZeroDivisionError
134
+ rescue ZeroDivisionError => x
135
+ @log.error( msg, x )
136
+ end
137
+ assert_equal( 1, @handler.count )
138
+ end
139
+
130
140
  def test_ruby_exception_block
131
141
  begin
132
142
  0/0 # ZeroDivisionError
metadata CHANGED
@@ -1,112 +1,117 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rjack-slf4j
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.7.0.0
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.7.2.0
6
6
  platform: java
7
- authors:
8
- - David Kellum
9
- autorequire:
7
+ authors:
8
+ - David Kellum
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-09-15 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: minitest
17
- version_requirements: &id001 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: "2.2"
23
- requirement: *id001
24
- prerelease: false
25
- type: :development
26
- - !ruby/object:Gem::Dependency
27
- name: rjack-tarpit
28
- version_requirements: &id002 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: "2.0"
34
- requirement: *id002
35
- prerelease: false
36
- type: :development
12
+ date: 2012-11-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: minitest
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: '2.2'
21
+ none: false
22
+ requirement: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '2.2'
27
+ none: false
28
+ prerelease: false
29
+ type: :development
30
+ - !ruby/object:Gem::Dependency
31
+ name: rjack-tarpit
32
+ version_requirements: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ~>
35
+ - !ruby/object:Gem::Version
36
+ version: '2.0'
37
+ none: false
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ version: '2.0'
43
+ none: false
44
+ prerelease: false
45
+ type: :development
37
46
  description: A JRuby adaption and gem packaging of the Simple Logging Facade for Java. Provides all jar dependencies and a Ruby Logger compatible facade.
38
- email:
39
- - dek-oss@gravitext.com
47
+ email:
48
+ - dek-oss@gravitext.com
40
49
  executables: []
41
-
42
50
  extensions: []
43
-
44
- extra_rdoc_files:
45
- - History.rdoc
46
- - README.rdoc
47
- files:
48
- - History.rdoc
49
- - Manifest.txt
50
- - README.rdoc
51
- - Rakefile
52
- - assembly.xml
53
- - pom.xml
54
- - lib/rjack-slf4j/base.rb
55
- - lib/rjack-slf4j.rb
56
- - lib/rjack-slf4j/jul-to-slf4j.rb
57
- - lib/rjack-slf4j/jul.rb
58
- - lib/rjack-slf4j/mdc.rb
59
- - test/example_jul_to_slf4j.rb
60
- - test/test_slf4j.rb
61
- - lib/rjack-slf4j/jcl-over-slf4j.rb
62
- - lib/rjack-slf4j/jcl.rb
63
- - lib/rjack-slf4j/jdk14.rb
64
- - lib/rjack-slf4j/log4j-over-slf4j.rb
65
- - lib/rjack-slf4j/log4j12.rb
66
- - lib/rjack-slf4j/nop.rb
67
- - lib/rjack-slf4j/simple.rb
68
- - lib/rjack-slf4j/jcl-over-slf4j-1.7.0.jar
69
- - lib/rjack-slf4j/jul-to-slf4j-1.7.0.jar
70
- - lib/rjack-slf4j/log4j-over-slf4j-1.7.0.jar
71
- - lib/rjack-slf4j/slf4j-api-1.7.0.jar
72
- - lib/rjack-slf4j/slf4j-jcl-1.7.0.jar
73
- - lib/rjack-slf4j/slf4j-jdk14-1.7.0.jar
74
- - lib/rjack-slf4j/slf4j-log4j12-1.7.0.jar
75
- - lib/rjack-slf4j/slf4j-nop-1.7.0.jar
76
- - lib/rjack-slf4j/slf4j-simple-1.7.0.jar
51
+ extra_rdoc_files:
52
+ - History.rdoc
53
+ - README.rdoc
54
+ files:
55
+ - History.rdoc
56
+ - Manifest.txt
57
+ - README.rdoc
58
+ - Rakefile
59
+ - assembly.xml
60
+ - pom.xml
61
+ - lib/rjack-slf4j/base.rb
62
+ - lib/rjack-slf4j.rb
63
+ - lib/rjack-slf4j/jul-to-slf4j.rb
64
+ - lib/rjack-slf4j/jul.rb
65
+ - lib/rjack-slf4j/mdc.rb
66
+ - test/example_jul_to_slf4j.rb
67
+ - test/test_slf4j.rb
68
+ - lib/rjack-slf4j/jcl-over-slf4j.rb
69
+ - lib/rjack-slf4j/jcl.rb
70
+ - lib/rjack-slf4j/jdk14.rb
71
+ - lib/rjack-slf4j/log4j-over-slf4j.rb
72
+ - lib/rjack-slf4j/log4j12.rb
73
+ - lib/rjack-slf4j/nop.rb
74
+ - lib/rjack-slf4j/simple.rb
75
+ - lib/rjack-slf4j/jcl-over-slf4j-1.7.2.jar
76
+ - lib/rjack-slf4j/jul-to-slf4j-1.7.2.jar
77
+ - lib/rjack-slf4j/log4j-over-slf4j-1.7.2.jar
78
+ - lib/rjack-slf4j/slf4j-api-1.7.2.jar
79
+ - lib/rjack-slf4j/slf4j-jcl-1.7.2.jar
80
+ - lib/rjack-slf4j/slf4j-jdk14-1.7.2.jar
81
+ - lib/rjack-slf4j/slf4j-log4j12-1.7.2.jar
82
+ - lib/rjack-slf4j/slf4j-nop-1.7.2.jar
83
+ - lib/rjack-slf4j/slf4j-simple-1.7.2.jar
77
84
  homepage: http://rjack.rubyforge.org/slf4j
78
85
  licenses: []
79
-
80
- post_install_message:
81
- rdoc_options:
82
- - --main
83
- - README.rdoc
84
- require_paths:
85
- - lib
86
- required_ruby_version: !ruby/object:Gem::Requirement
86
+ post_install_message:
87
+ rdoc_options:
88
+ - --main
89
+ - README.rdoc
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ segments:
98
+ - 0
99
+ hash: 2
87
100
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- hash: 2
92
- segments:
93
- - 0
94
- version: "0"
95
- required_rubygems_version: !ruby/object:Gem::Requirement
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ segments:
107
+ - 0
108
+ hash: 2
96
109
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- hash: 2
101
- segments:
102
- - 0
103
- version: "0"
104
110
  requirements: []
105
-
106
- rubyforge_project:
107
- rubygems_version: 1.8.15
108
- signing_key:
111
+ rubyforge_project:
112
+ rubygems_version: 1.8.24
113
+ signing_key:
109
114
  specification_version: 3
110
115
  summary: A JRuby adaption and gem packaging of the Simple Logging Facade for Java.
111
116
  test_files: []
112
-
117
+ ...
Binary file
Binary file