logit 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -0
- data/Rakefile +1 -1
- data/lib/logit.rb +1 -1
- data/logit.gemspec +2 -2
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -96,6 +96,9 @@ environment to the log file name. For example:
|
|
96
96
|
|
97
97
|
= Release Notes
|
98
98
|
|
99
|
+
[1.0.3]
|
100
|
+
* Changed default date format to month-day-year.
|
101
|
+
|
99
102
|
[1.0.2]
|
100
103
|
* Added :flush_mode option. Set this to <tt>:immediate</tt> if you want each message flushed to the log file immediately.
|
101
104
|
* Added :stdout option. Set this to <tt>true</tt> if you want logs printed to stdout as well.
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('logit', '1.0.
|
5
|
+
Echoe.new('logit', '1.0.3') do |p|
|
6
6
|
p.description = 'Easily add custom logging abilities to your Ruby or Rails application.'
|
7
7
|
p.url = 'http://github.com/codemariner/logit'
|
8
8
|
p.author = 'Scott Sayles'
|
data/lib/logit.rb
CHANGED
@@ -128,7 +128,7 @@ module Logit
|
|
128
128
|
|
129
129
|
name = (progname) ? " [#{progname}]" : ""
|
130
130
|
|
131
|
-
message = "#{timestamp.strftime('%d-%
|
131
|
+
message = "#{timestamp.strftime('%m-%d-%Y %H:%M:%S')} #{severity.ljust(6)}#{name}: #{msg}\n"
|
132
132
|
puts message if @opts[:stdout]
|
133
133
|
message
|
134
134
|
end
|
data/logit.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{logit}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Scott Sayles"]
|
9
|
-
s.date = %q{2010-12-
|
9
|
+
s.date = %q{2010-12-10}
|
10
10
|
s.description = %q{Easily add custom logging abilities to your Ruby or Rails application.}
|
11
11
|
s.email = %q{ssayles@users.sourceforge.net}
|
12
12
|
s.extra_rdoc_files = ["LICENSE", "README.rdoc", "lib/logit.rb"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Sayles
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-10 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|