rjack-slf4j 1.5.11.0-java → 1.5.11.1-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +3 -0
- data/Manifest.txt +3 -3
- data/README.rdoc +1 -1
- data/lib/rjack-slf4j/base.rb +2 -2
- data/lib/rjack-slf4j/jul-to-slf4j.rb +24 -0
- data/lib/rjack-slf4j/jul.rb +1 -1
- data/lib/rjack-slf4j/mdc.rb +1 -1
- data/lib/rjack-slf4j.rb +1 -1
- data/test/example_jul_to_slf4j.rb +48 -0
- data/test/test_slf4j.rb +2 -1
- metadata +25 -13
- data/Manifest.static +0 -13
data/History.rdoc
CHANGED
data/Manifest.txt
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
|
1
|
+
History.rdoc
|
2
2
|
Manifest.txt
|
3
3
|
README.rdoc
|
4
|
-
History.rdoc
|
5
4
|
Rakefile
|
6
|
-
pom.xml
|
7
5
|
assembly.xml
|
6
|
+
pom.xml
|
8
7
|
lib/rjack-slf4j/base.rb
|
9
8
|
lib/rjack-slf4j.rb
|
10
9
|
lib/rjack-slf4j/jul-to-slf4j.rb
|
11
10
|
lib/rjack-slf4j/jul.rb
|
12
11
|
lib/rjack-slf4j/mdc.rb
|
12
|
+
test/example_jul_to_slf4j.rb
|
13
13
|
test/test_slf4j.rb
|
14
14
|
lib/rjack-slf4j/jcl-over-slf4j.rb
|
15
15
|
lib/rjack-slf4j/jcl.rb
|
data/README.rdoc
CHANGED
data/lib/rjack-slf4j/base.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (
|
2
|
+
# Copyright (c) 2008-2010 David Kellum
|
3
3
|
#
|
4
4
|
# Permission is hereby granted, free of charge, to any person
|
5
5
|
# obtaining a copy of this software and associated documentation files
|
@@ -28,7 +28,7 @@ module RJack
|
|
28
28
|
# SLF4J-java version
|
29
29
|
SLF4J_VERSION = '1.5.11'
|
30
30
|
# SLF4J gem version
|
31
|
-
VERSION = SLF4J_VERSION + '.
|
31
|
+
VERSION = SLF4J_VERSION + '.1'
|
32
32
|
|
33
33
|
SLF4J_DIR = File.dirname(__FILE__) # :nodoc:
|
34
34
|
|
@@ -1,3 +1,27 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2008-2010 David Kellum
|
3
|
+
# All rights reserved.
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
# a copy of this software and associated documentation files (the
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
# the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
#++
|
24
|
+
|
1
25
|
require 'rjack-slf4j'
|
2
26
|
require 'rjack-slf4j/jul'
|
3
27
|
|
data/lib/rjack-slf4j/jul.rb
CHANGED
data/lib/rjack-slf4j/mdc.rb
CHANGED
data/lib/rjack-slf4j.rb
CHANGED
@@ -0,0 +1,48 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
#--
|
3
|
+
# Copyright (c) 2008-2010 David Kellum
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person
|
6
|
+
# obtaining a copy of this software and associated documentation files
|
7
|
+
# (the "Software"), to deal in the Software without restriction,
|
8
|
+
# including without limitation the rights to use, copy, modify, merge,
|
9
|
+
# publish, distribute, sublicense, and/or sell copies of the Software,
|
10
|
+
# and to permit persons to whom the Software is furnished to do so,
|
11
|
+
# subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
20
|
+
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
21
|
+
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
22
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
#++
|
25
|
+
|
26
|
+
$LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
|
27
|
+
|
28
|
+
require 'rjack-slf4j/jul-to-slf4j'
|
29
|
+
|
30
|
+
# FIXME: Can't make this a standard test case, as test_slf4j.rb uses
|
31
|
+
# slf4j/jdk14 output adapter.
|
32
|
+
|
33
|
+
SLF4J::JUL.replace_root_handlers
|
34
|
+
SLF4J::JUL.root.level = SLF4J::JUL::INFO
|
35
|
+
|
36
|
+
julog = SLF4J::JUL[ "jul" ]
|
37
|
+
julog.level = SLF4J::JUL::FINEST
|
38
|
+
|
39
|
+
require 'rubygems'
|
40
|
+
require 'rjack-logback'
|
41
|
+
Logback.root.level = Logback::TRACE
|
42
|
+
|
43
|
+
slog = SLF4J['slf4j']
|
44
|
+
slog.debug "from slf4j"
|
45
|
+
|
46
|
+
julog.info( "INFO message" )
|
47
|
+
julog.finer( "FINER message" )
|
48
|
+
julog.finest( "FINEST message" )
|
data/test/test_slf4j.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env jruby
|
2
2
|
#--
|
3
|
-
# Copyright (c) 2008-
|
3
|
+
# Copyright (c) 2008-2010 David Kellum
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person
|
6
6
|
# obtaining a copy of this software and associated documentation files
|
@@ -43,6 +43,7 @@ class TestHandler < java.util.logging.Handler
|
|
43
43
|
attr_accessor :count, :last
|
44
44
|
|
45
45
|
def initialize
|
46
|
+
super
|
46
47
|
reset
|
47
48
|
end
|
48
49
|
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rjack-slf4j
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 5
|
8
|
+
- 11
|
9
|
+
- 1
|
10
|
+
version: 1.5.11.1
|
5
11
|
platform: java
|
6
12
|
authors:
|
7
13
|
- David Kellum
|
@@ -9,19 +15,23 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2010-
|
18
|
+
date: 2010-04-21 00:00:00 -07:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: rjack-tarpit
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
25
|
requirements:
|
21
26
|
- - ~>
|
22
27
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 2
|
31
|
+
- 1
|
32
|
+
version: 1.2.1
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
25
35
|
description: |-
|
26
36
|
A JRuby adaption and gem packaging of the
|
27
37
|
{Simple Logging Facade for Java}[http://www.slf4j.org/].
|
@@ -45,18 +55,18 @@ extra_rdoc_files:
|
|
45
55
|
- README.rdoc
|
46
56
|
- History.rdoc
|
47
57
|
files:
|
48
|
-
-
|
58
|
+
- History.rdoc
|
49
59
|
- Manifest.txt
|
50
60
|
- README.rdoc
|
51
|
-
- History.rdoc
|
52
61
|
- Rakefile
|
53
|
-
- pom.xml
|
54
62
|
- assembly.xml
|
63
|
+
- pom.xml
|
55
64
|
- lib/rjack-slf4j/base.rb
|
56
65
|
- lib/rjack-slf4j.rb
|
57
66
|
- lib/rjack-slf4j/jul-to-slf4j.rb
|
58
67
|
- lib/rjack-slf4j/jul.rb
|
59
68
|
- lib/rjack-slf4j/mdc.rb
|
69
|
+
- test/example_jul_to_slf4j.rb
|
60
70
|
- test/test_slf4j.rb
|
61
71
|
- lib/rjack-slf4j/jcl-over-slf4j.rb
|
62
72
|
- lib/rjack-slf4j/jcl.rb
|
@@ -88,18 +98,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
98
|
requirements:
|
89
99
|
- - ">="
|
90
100
|
- !ruby/object:Gem::Version
|
101
|
+
segments:
|
102
|
+
- 0
|
91
103
|
version: "0"
|
92
|
-
version:
|
93
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
105
|
requirements:
|
95
106
|
- - ">="
|
96
107
|
- !ruby/object:Gem::Version
|
108
|
+
segments:
|
109
|
+
- 0
|
97
110
|
version: "0"
|
98
|
-
version:
|
99
111
|
requirements: []
|
100
112
|
|
101
113
|
rubyforge_project: rjack
|
102
|
-
rubygems_version: 1.3.
|
114
|
+
rubygems_version: 1.3.6
|
103
115
|
signing_key:
|
104
116
|
specification_version: 3
|
105
117
|
summary: A JRuby adaption and gem packaging of the {Simple Logging Facade for Java}[http://www.slf4j.org/]
|
data/Manifest.static
DELETED