logback 0.9.11.1 → 0.9.13.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/Manifest.txt +3 -3
- data/Rakefile +21 -3
- data/lib/logback.rb +2 -4
- data/lib/logback/base.rb +2 -2
- data/lib/logback/logback-access-0.9.13.jar +0 -0
- data/lib/logback/logback-classic-0.9.13.jar +0 -0
- data/lib/logback/logback-core-0.9.13.jar +0 -0
- data/pom.xml +2 -2
- data/test/test_logback.rb +8 -3
- metadata +6 -6
- data/lib/logback/logback-access-0.9.11.jar +0 -0
- data/lib/logback/logback-classic-0.9.11.jar +0 -0
- data/lib/logback/logback-core-0.9.11.jar +0 -0
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -8,6 +8,6 @@ lib/logback.rb
|
|
8
8
|
lib/logback/access.rb
|
9
9
|
lib/logback/base.rb
|
10
10
|
test/test_logback.rb
|
11
|
-
lib/logback/logback-core-0.9.
|
12
|
-
lib/logback/logback-classic-0.9.
|
13
|
-
lib/logback/logback-access-0.9.
|
11
|
+
lib/logback/logback-core-0.9.13.jar
|
12
|
+
lib/logback/logback-classic-0.9.13.jar
|
13
|
+
lib/logback/logback-access-0.9.13.jar
|
data/Rakefile
CHANGED
@@ -23,7 +23,7 @@ $LOAD_PATH << './lib'
|
|
23
23
|
require 'logback/base'
|
24
24
|
|
25
25
|
JARS = %w{ core classic access }.map do |n|
|
26
|
-
"logback-#{n}-#{
|
26
|
+
"logback-#{n}-#{ Logback::LOGBACK_VERSION }.jar"
|
27
27
|
end
|
28
28
|
JAR_FILES = JARS.map { |jar| "lib/logback/#{jar}" }
|
29
29
|
|
@@ -69,9 +69,27 @@ task :mvn_clean do
|
|
69
69
|
end
|
70
70
|
task :clean => :mvn_clean
|
71
71
|
|
72
|
-
|
72
|
+
task :tag do
|
73
|
+
tag = "logback-#{Logback::VERSION}"
|
74
|
+
svn_base = 'svn://localhost/subversion.repo/src/gems'
|
75
|
+
tag_url = "#{svn_base}/tags/#{tag}"
|
76
|
+
|
77
|
+
dname = File.dirname( __FILE__ )
|
78
|
+
dname = '.' if Dir.getwd == dname
|
79
|
+
stat = `svn status #{dname}`
|
80
|
+
stat.strip! if stat
|
81
|
+
if ( stat && stat.length > 0 )
|
82
|
+
$stderr.puts( "Resolve the following before tagging (svn status):" )
|
83
|
+
$stderr.puts( stat )
|
84
|
+
else
|
85
|
+
sh( "svn cp -m 'tag [#{tag}]' #{dname} #{tag_url}" )
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
|
90
|
+
hoe = Hoe.new( "logback", Logback::VERSION ) do |p|
|
73
91
|
p.developer( "David Kellum", "dek-ruby@gravitext.com" )
|
74
|
-
p.extra_deps << [ 'slf4j', '~> 1.5.
|
92
|
+
p.extra_deps << [ 'slf4j', '~> 1.5.6' ]
|
75
93
|
p.rubyforge_name = "rjack"
|
76
94
|
p.rdoc_pattern = /^(lib.*\.(rb|txt))|[^\/]*\.txt$/
|
77
95
|
end
|
data/lib/logback.rb
CHANGED
@@ -73,7 +73,6 @@ require 'logback/base'
|
|
73
73
|
# extensions.
|
74
74
|
#
|
75
75
|
module Logback
|
76
|
-
include LogbackBase
|
77
76
|
|
78
77
|
def self.require_jar( name )
|
79
78
|
require File.join( LOGBACK_DIR, "#{name}-#{ LOGBACK_VERSION }.jar" )
|
@@ -115,7 +114,6 @@ module Logback
|
|
115
114
|
|
116
115
|
# Set output level to specified constant (DEBUG,INFO,...)
|
117
116
|
def level=( level )
|
118
|
-
#FIXME: LogBack bug: level = nil
|
119
117
|
@jlogger.level = level
|
120
118
|
end
|
121
119
|
|
@@ -234,14 +232,14 @@ module Logback
|
|
234
232
|
end
|
235
233
|
|
236
234
|
# Configure Logback with the specified block. The Logback context is
|
237
|
-
# +
|
235
|
+
# +reset+ before yielding, and then started after return
|
238
236
|
# from the block.
|
239
237
|
#
|
240
238
|
# :call-seq:
|
241
239
|
# configure { |context| ... } -> nil
|
242
240
|
#
|
243
241
|
def self.configure
|
244
|
-
@@context.
|
242
|
+
@@context.reset
|
245
243
|
|
246
244
|
yield( context )
|
247
245
|
|
data/lib/logback/base.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/pom.xml
CHANGED
@@ -12,14 +12,14 @@
|
|
12
12
|
<dependency>
|
13
13
|
<groupId>ch.qos.logback</groupId>
|
14
14
|
<artifactId>logback-classic</artifactId>
|
15
|
-
<version>0.9.
|
15
|
+
<version>0.9.13</version>
|
16
16
|
<scope>runtime</scope>
|
17
17
|
</dependency>
|
18
18
|
|
19
19
|
<dependency>
|
20
20
|
<groupId>ch.qos.logback</groupId>
|
21
21
|
<artifactId>logback-access</artifactId>
|
22
|
-
<version>0.9.
|
22
|
+
<version>0.9.13</version>
|
23
23
|
<scope>runtime</scope>
|
24
24
|
</dependency>
|
25
25
|
|
data/test/test_logback.rb
CHANGED
@@ -14,10 +14,11 @@
|
|
14
14
|
# Lesser General Public License for more details.
|
15
15
|
#++
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
gem( 'slf4j', '~> 1.5.5' )
|
17
|
+
require 'rubygems'
|
18
|
+
gem( 'slf4j', '~> 1.5.6' )
|
20
19
|
require 'slf4j'
|
20
|
+
|
21
|
+
$LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
|
21
22
|
require 'logback'
|
22
23
|
|
23
24
|
# Test load works
|
@@ -91,6 +92,10 @@ class TestLevelSet < Test::Unit::TestCase
|
|
91
92
|
@log.warn( "override" )
|
92
93
|
assert_equal( Logback::WARN, @appender.last.level )
|
93
94
|
assert_equal( 1, @appender.count )
|
95
|
+
|
96
|
+
# Unset override
|
97
|
+
Logback[ "my" ].level = nil
|
98
|
+
assert( ! @log.warn? )
|
94
99
|
end
|
95
100
|
|
96
101
|
end
|
metadata
CHANGED
@@ -42,9 +42,9 @@ files:
|
|
42
42
|
- lib/logback/access.rb
|
43
43
|
- lib/logback/base.rb
|
44
44
|
- test/test_logback.rb
|
45
|
-
- lib/logback/logback-core-0.9.
|
46
|
-
- lib/logback/logback-classic-0.9.
|
47
|
-
- lib/logback/logback-access-0.9.
|
45
|
+
- lib/logback/logback-core-0.9.13.jar
|
46
|
+
- lib/logback/logback-classic-0.9.13.jar
|
47
|
+
- lib/logback/logback-access-0.9.13.jar
|
48
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
50
|
- - '>='
|
@@ -58,12 +58,12 @@ requirements: []
|
|
58
58
|
|
59
59
|
authors:
|
60
60
|
- David Kellum
|
61
|
-
date: 2008-
|
61
|
+
date: 2008-12-06 08:00:00 +00:00
|
62
62
|
platform: ruby
|
63
63
|
test_files:
|
64
64
|
- test/test_logback.rb
|
65
65
|
version: !ruby/object:Gem::Version
|
66
|
-
version: 0.9.
|
66
|
+
version: 0.9.13.1
|
67
67
|
require_paths:
|
68
68
|
- lib
|
69
69
|
dependencies:
|
@@ -72,7 +72,7 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.5.
|
75
|
+
version: 1.5.6
|
76
76
|
version:
|
77
77
|
type: :runtime
|
78
78
|
version_requirement:
|
Binary file
|
Binary file
|
Binary file
|