formatted-metrics 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/metrics/configuration.rb +5 -1
- data/lib/metrics/version.rb +1 -1
- metadata +4 -4
@@ -13,7 +13,11 @@ module Metrics
|
|
13
13
|
attr_accessor :formatter
|
14
14
|
|
15
15
|
def logger
|
16
|
-
@logger ||= Logger.new(STDOUT)
|
16
|
+
@logger ||= Logger.new(STDOUT).tap { |log| log.formatter = log_formatter }
|
17
|
+
end
|
18
|
+
|
19
|
+
def log_formatter
|
20
|
+
proc { |severity, datetime, progname, msg| "#{msg}\n" }
|
17
21
|
end
|
18
22
|
|
19
23
|
def source
|
data/lib/metrics/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formatted-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
segments:
|
120
120
|
- 0
|
121
|
-
hash:
|
121
|
+
hash: 2281380061752771059
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
none: false
|
124
124
|
requirements:
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
segments:
|
129
129
|
- 0
|
130
|
-
hash:
|
130
|
+
hash: 2281380061752771059
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
133
|
rubygems_version: 1.8.23
|