lumber 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/lumber/lumber.rb +10 -2
  3. metadata +38 -17
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.3
1
+ 0.9.4
data/lib/lumber/lumber.rb CHANGED
@@ -1,5 +1,13 @@
1
1
  require "socket"
2
- require "active_support/core_ext/duplicable"
2
+
3
+ begin
4
+ # rails(active_support) 2
5
+ require "active_support/core_ext/duplicable"
6
+ rescue LoadError
7
+ # rails(active_support) 3
8
+ require "active_support/core_ext/object/duplicable"
9
+ end
10
+
3
11
  require "active_support/core_ext/class"
4
12
  require "active_support/core_ext/module"
5
13
 
@@ -19,7 +27,7 @@ module Lumber
19
27
  # configurator for use in defining outputters
20
28
  #
21
29
  def self.init(opts = {})
22
- opts[:root] ||= RAILS_ROOT if defined?(RAILS_ROOT)
30
+ opts[:root] ||= RAILS_ROOT.to_s if defined?(RAILS_ROOT)
23
31
  opts[:env] ||= RAILS_ENV if defined?(RAILS_ENV)
24
32
  opts[:config_file] ||= "#{opts[:root]}/config/log4r.yml"
25
33
  opts[:log_file] ||= "#{opts[:root]}/log/#{opts[:env]}.log"
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 9
8
+ - 4
9
+ version: 0.9.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - Matt Conway
@@ -9,39 +14,48 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-10-20 00:00:00 -04:00
17
+ date: 2010-06-25 00:00:00 -04:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: shoulda
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
23
30
  version: "0"
24
- version:
31
+ type: :development
32
+ version_requirements: *id001
25
33
  - !ruby/object:Gem::Dependency
26
34
  name: log4r
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
33
43
  version: "0"
34
- version:
44
+ type: :runtime
45
+ version_requirements: *id002
35
46
  - !ruby/object:Gem::Dependency
36
47
  name: activesupport
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
48
+ prerelease: false
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ none: false
40
51
  requirements:
41
52
  - - ">="
42
53
  - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
43
56
  version: "0"
44
- version:
57
+ type: :runtime
58
+ version_requirements: *id003
45
59
  description: Lumber tries to make it easy to use the more robust log4r logging system within your rails application. To do this it sets up log4r configuration from a yml file, and provides utility methods for adding a :logger accessor to classes dynamicaly as they get created.
46
60
  email: matt@conwaysplace.com
47
61
  executables: []
@@ -51,6 +65,7 @@ extensions: []
51
65
  extra_rdoc_files:
52
66
  - LICENSE
53
67
  - README.rdoc
68
+ - TODO
54
69
  files:
55
70
  - CHANGELOG
56
71
  - LICENSE
@@ -63,6 +78,8 @@ files:
63
78
  - lib/lumber.rb
64
79
  - lib/lumber/log4r.rb
65
80
  - lib/lumber/lumber.rb
81
+ - test/lumber_test.rb
82
+ - test/test_helper.rb
66
83
  has_rdoc: true
67
84
  homepage: http://github.com/wr0ngway/lumber
68
85
  licenses: []
@@ -73,21 +90,25 @@ rdoc_options:
73
90
  require_paths:
74
91
  - lib
75
92
  required_ruby_version: !ruby/object:Gem::Requirement
93
+ none: false
76
94
  requirements:
77
95
  - - ">="
78
96
  - !ruby/object:Gem::Version
97
+ segments:
98
+ - 0
79
99
  version: "0"
80
- version:
81
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
+ none: false
82
102
  requirements:
83
103
  - - ">="
84
104
  - !ruby/object:Gem::Version
105
+ segments:
106
+ - 0
85
107
  version: "0"
86
- version:
87
108
  requirements: []
88
109
 
89
110
  rubyforge_project:
90
- rubygems_version: 1.3.5
111
+ rubygems_version: 1.3.7
91
112
  signing_key:
92
113
  specification_version: 3
93
114
  summary: Lumber integrates the log4r logging system within your application.