logging 0.1.0 → 0.2.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.
@@ -1,4 +1,4 @@
1
- # $Id: test_root_logger.rb 13 2007-01-15 17:19:37Z tim_pease $
1
+ # $Id: test_root_logger.rb 22 2007-01-29 16:20:54Z tim_pease $
2
2
 
3
3
  require 'test/setup.rb'
4
4
  require 'stringio'
@@ -13,6 +13,14 @@ module TestLogging
13
13
  @root = ::Logging::Logger.root
14
14
  end
15
15
 
16
+ def test_additive
17
+ assert_raise(NoMethodError) {@root.additive}
18
+ end
19
+
20
+ def test_additive_eq
21
+ assert_raise(NoMethodError) {@root.additive = true}
22
+ end
23
+
16
24
  def test_level_eq
17
25
  assert_equal 0, @root.level
18
26
 
@@ -48,6 +56,14 @@ module TestLogging
48
56
  assert_equal 'root', @root.name
49
57
  end
50
58
 
59
+ def test_parent
60
+ assert_raise(NoMethodError) {@root.parent}
61
+ end
62
+
63
+ def test_parent_eq
64
+ assert_raise(NoMethodError) {@root.parent = nil}
65
+ end
66
+
51
67
  def test_spaceship
52
68
  logs = %w(
53
69
  A A::B A::B::C A::B::C::D A::B::C::E A::B::C::E::G A::B::C::F
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: logging
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.0
7
- date: 2007-01-15 00:00:00 -07:00
6
+ version: 0.2.0
7
+ date: 2007-01-29 00:00:00 -07:00
8
8
  summary: A flexible and extendable logging library for Ruby.
9
9
  require_paths:
10
10
  - lib
@@ -31,12 +31,15 @@ authors:
31
31
  - Tim Pease
32
32
  files:
33
33
  - README.txt
34
+ - examples/logging.yaml
34
35
  - lib/logging.rb
35
36
  - lib/logging/appender.rb
36
37
  - lib/logging/appenders/console.rb
37
38
  - lib/logging/appenders/file.rb
38
39
  - lib/logging/appenders/io.rb
40
+ - lib/logging/appenders/rolling_file.rb
39
41
  - lib/logging/appenders/static_appender.rb
42
+ - lib/logging/config/yaml_configurator.rb
40
43
  - lib/logging/layout.rb
41
44
  - lib/logging/layouts/basic.rb
42
45
  - lib/logging/layouts/pattern.rb
@@ -47,7 +50,9 @@ files:
47
50
  - test/appenders/test_console.rb
48
51
  - test/appenders/test_file.rb
49
52
  - test/appenders/test_io.rb
53
+ - test/appenders/test_rolling_file.rb
50
54
  - test/benchmark.rb
55
+ - test/config/test_yaml_configurator.rb
51
56
  - test/layouts/test_basic.rb
52
57
  - test/layouts/test_pattern.rb
53
58
  - test/setup.rb