ougai 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ougai/formatters/base.rb +2 -1
- data/lib/ougai/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 607cde7c3045e9fcbd0ca91cf1a6ad91bade32cb
|
4
|
+
data.tar.gz: ddbc3d91e07a00c197ef231ef47e3544effc47b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8da96a24f57a2ce240292a51d19e63d1595d294ca9139fd6846e413c0d08ef60167d43952dc6987e6544aaedbdbae5d0a1951a1a35948fc5c2d8f419dd680ba5
|
7
|
+
data.tar.gz: dc281f50f0543c07a843dce4064510b153fc60c4823dbcc227b4deaa5f60869333de102abeab10176e169f3ec755daf53b20236bac7fc96bc8e37a1cb0a8c857
|
@@ -6,10 +6,11 @@ module Ougai
|
|
6
6
|
module Formatters
|
7
7
|
class Base < Logger::Formatter
|
8
8
|
attr_accessor :trace_indent, :trace_max_lines
|
9
|
+
attr_reader :app_name, :hostname
|
9
10
|
|
10
11
|
def initialize(app_name = nil, hostname = nil)
|
11
12
|
@app_name = app_name || File.basename($0, ".rb")
|
12
|
-
@hostname = hostname || Socket.gethostname
|
13
|
+
@hostname = hostname || Socket.gethostname.force_encoding('UTF-8')
|
13
14
|
@trace_indent = 2
|
14
15
|
@trace_max_lines = 100
|
15
16
|
end
|
data/lib/ougai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ougai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshimitsu Takahashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|