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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee55ccd0e16bdcaafe5880046fc7e09a17cde478
4
- data.tar.gz: ab8146d77524e26ecb3ab5498740792d77f585fa
3
+ metadata.gz: 607cde7c3045e9fcbd0ca91cf1a6ad91bade32cb
4
+ data.tar.gz: ddbc3d91e07a00c197ef231ef47e3544effc47b4
5
5
  SHA512:
6
- metadata.gz: 154c083a42f3581dd78084c706f017d5f26bda3dda67f2a802b83f11906457def3a89241930ecc40279d8db0fcbec09dc863e0df7405f53235ec4b2768f23b69
7
- data.tar.gz: ac30201aa80e3f45f7e6072d1ba4e344a5e15f9d1c1ea2dfb2109e4c5cec979672fde5fdcef735ba2e629743ad1bd583c21c1455f430c6e80ec86e071c41c47f
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
@@ -1,3 +1,3 @@
1
1
  module Ougai
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
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.3
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: 2016-11-22 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler