logging 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.4.0 / 2010-03-16
2
+
3
+ Minor Enhancements
4
+ - Compatibility with the Rack::CommonLogger
5
+
1
6
  == 1.3.0 / 2009-12-18
2
7
 
3
8
  Minor Enhancements
data/Rakefile CHANGED
@@ -5,9 +5,6 @@ rescue LoadError
5
5
  abort '### please install the "bones" gem ###'
6
6
  end
7
7
 
8
- ensure_in_path 'lib'
9
- require 'logging'
10
-
11
8
  task :default => 'test:run'
12
9
  task 'gem:release' => 'test:run'
13
10
 
@@ -16,8 +13,7 @@ Bones {
16
13
  summary 'A flexible and extendable logging library for Ruby'
17
14
  authors 'Tim Pease'
18
15
  email 'tim.pease@gmail.com'
19
- url 'http://gemcutter.org/gems/logging'
20
- version Logging::VERSION
16
+ url 'http://rubygems.org/gems/logging'
21
17
  readme_file 'README.rdoc'
22
18
  ignore_file '.gitignore'
23
19
 
@@ -26,9 +22,9 @@ Bones {
26
22
  #rdoc.dir = 'doc/rdoc'
27
23
 
28
24
  use_gmail
29
- enable_sudo
30
25
 
31
26
  depend_on 'little-plugger'
27
+
32
28
  depend_on 'flexmock', :development => true
33
29
  depend_on 'bones-git', :development => true
34
30
  depend_on 'bones-extras', :development => true
data/lib/logging.rb CHANGED
@@ -19,7 +19,6 @@ module Logging
19
19
  extend LittlePlugger
20
20
 
21
21
  # :stopdoc:
22
- VERSION = '1.3.0'
23
22
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
24
23
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
25
24
  LEVELS = {}
@@ -347,7 +346,7 @@ module Logging
347
346
  # Returns the version string for the library.
348
347
  #
349
348
  def version
350
- VERSION
349
+ @version ||= File.read(path('version.txt')).strip
351
350
  end
352
351
 
353
352
  # Returns the library path for the module. If any arguments are given,
@@ -183,6 +183,7 @@ module Logging
183
183
  @appenders.each {|a| a << msg}
184
184
  @parent << msg if @additive
185
185
  end
186
+ alias :write :<<
186
187
 
187
188
  # call-seq:
188
189
  # add( severity, message = nil ) {block}
data/version.txt ADDED
@@ -0,0 +1 @@
1
+ 1.4.0
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 4
8
+ - 0
9
+ version: 1.4.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - Tim Pease
@@ -9,59 +14,79 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-12-21 00:00:00 -07:00
17
+ date: 2010-03-16 00:00:00 -06:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: little-plugger
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
23
- version: 1.1.1
24
- version:
27
+ segments:
28
+ - 1
29
+ - 1
30
+ - 2
31
+ version: 1.1.2
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: flexmock
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 8
44
+ - 6
33
45
  version: 0.8.6
34
- version:
46
+ type: :development
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: bones-git
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - ">="
42
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 1
57
+ - 1
58
+ - 1
43
59
  version: 1.1.1
44
- version:
60
+ type: :development
61
+ version_requirements: *id003
45
62
  - !ruby/object:Gem::Dependency
46
63
  name: bones-extras
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  requirements:
51
67
  - - ">="
52
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 1
71
+ - 2
72
+ - 2
53
73
  version: 1.2.2
54
- version:
74
+ type: :development
75
+ version_requirements: *id004
55
76
  - !ruby/object:Gem::Dependency
56
77
  name: bones
57
- type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
60
80
  requirements:
61
81
  - - ">="
62
82
  - !ruby/object:Gem::Version
63
- version: 3.2.0
64
- version:
83
+ segments:
84
+ - 3
85
+ - 4
86
+ - 1
87
+ version: 3.4.1
88
+ type: :development
89
+ version_requirements: *id005
65
90
  description: |-
66
91
  Logging is a flexible logging library for use in Ruby programs based on the
67
92
  design of Java's log4j library. It features a hierarchical logging system,
@@ -75,6 +100,7 @@ extensions: []
75
100
  extra_rdoc_files:
76
101
  - History.txt
77
102
  - README.rdoc
103
+ - version.txt
78
104
  files:
79
105
  - History.txt
80
106
  - README.rdoc
@@ -146,8 +172,9 @@ files:
146
172
  - test/test_root_logger.rb
147
173
  - test/test_stats.rb
148
174
  - test/test_utils.rb
175
+ - version.txt
149
176
  has_rdoc: true
150
- homepage: http://gemcutter.org/gems/logging
177
+ homepage: http://rubygems.org/gems/logging
151
178
  licenses: []
152
179
 
153
180
  post_install_message:
@@ -160,18 +187,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
187
  requirements:
161
188
  - - ">="
162
189
  - !ruby/object:Gem::Version
190
+ segments:
191
+ - 0
163
192
  version: "0"
164
- version:
165
193
  required_rubygems_version: !ruby/object:Gem::Requirement
166
194
  requirements:
167
195
  - - ">="
168
196
  - !ruby/object:Gem::Version
197
+ segments:
198
+ - 0
169
199
  version: "0"
170
- version:
171
200
  requirements: []
172
201
 
173
202
  rubyforge_project: logging
174
- rubygems_version: 1.3.5
203
+ rubygems_version: 1.3.6
175
204
  signing_key:
176
205
  specification_version: 3
177
206
  summary: A flexible and extendable logging library for Ruby