ougai 1.6.6 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f157af11b2825f79fbf60a4db4cbb10b07609d0d640533574904d31fa1a8ed1
4
- data.tar.gz: 7b117078406bef661d44c87c3409af0c8e5b8021486bf79ddd25ec157e945abf
3
+ metadata.gz: 2601a420b579e44bc84f8adf920737cb8b5b55aa17686ec915a5e7a84b30060b
4
+ data.tar.gz: ad66b15e3c09200f04da050ecd0603bcdba398c4d8772a9a56091b52bfe2300c
5
5
  SHA512:
6
- metadata.gz: 864a2b7aa5d44ffe192dda4c32970bf53e8d278aeaabcba3073c0c15362fa5edd3594a710dda41cc79dbad7fa8341e6577098c63599b44dadcf49f647afc3a82
7
- data.tar.gz: a611c0ae6e1c7b19d0b0952f4438ed0128f65d9f61cd5978cfd38079d117ffc4adaaf84cb3d6e73358ee010d67af4738906981ff4a79568a2e7eefaeec9ff949
6
+ metadata.gz: dcefccb0b74c4cc348afe5189674364cb948f66eea37617ab3ac9ddefa41ca9008d51443bc592c423d34fe7b17ee7c5a7b420adc066189e1f7f014e705247444
7
+ data.tar.gz: 223ce77c55f3a7a5b043ee56fd37866bd1768d8d7df310369e45feeaede3aa47f223a4a59674a3363045d3f8df4e726c3a8ba29460c3457012671965e9c39a74
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ougai (1.6.6)
4
+ ougai (1.7.0)
5
5
  oj (~> 3.4)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -2,7 +2,7 @@ Ougai
2
2
  =====
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/ougai.svg)](https://badge.fury.io/rb/ougai)
5
- [![document](https://img.shields.io/badge/document-1.6.4-green.svg)](http://www.rubydoc.info/gems/ougai/)
5
+ [![document](https://img.shields.io/badge/document-1.7.0-green.svg)](http://www.rubydoc.info/gems/ougai/)
6
6
  [![Build Status](https://travis-ci.org/tilfin/ougai.svg?branch=master)](https://travis-ci.org/tilfin/ougai)
7
7
  [![Code Climate](https://codeclimate.com/github/tilfin/ougai/badges/gpa.svg)](https://codeclimate.com/github/tilfin/ougai)
8
8
  [![Test Coverage](https://codeclimate.com/github/tilfin/ougai/badges/coverage.svg)](https://codeclimate.com/github/tilfin/ougai/coverage)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ougai
2
4
  # A logger created by the `child` method of parent logger
3
5
  class ChildLogger
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'time'
2
4
  require 'socket'
3
5
 
@@ -65,10 +67,7 @@ module Ougai
65
67
  end
66
68
 
67
69
  def default_datetime_format
68
- t = Time.new
69
- f = '%FT%T.%3N'
70
- f << (t.utc? ? 'Z' : '%:z')
71
- f.freeze
70
+ "%FT%T.%3N#{(Time.new.utc? ? 'Z' : '%:z')}"
72
71
  end
73
72
 
74
73
  def self.parse_new_params(args)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'ougai/formatters/base'
2
4
 
3
5
  module Ougai
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ougai
2
4
  # The features for JSON formatter
3
5
  # @attr [Boolean] jsonize Whether log should converts JSON
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'ougai/formatters/base'
2
4
 
3
5
  module Ougai
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'ougai/formatters/base'
2
4
 
3
5
  module Ougai
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ougai
2
4
  # Main Logger
3
5
  # @attr [String] default_message Use this if log message is not specified (by default this is 'No message').
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ougai
2
4
  # Common Logging features
3
5
  module Logging
@@ -8,7 +10,7 @@ module Ougai
8
10
  include ::Logger::Severity
9
11
  TRACE = -1
10
12
 
11
- SEV_LABEL = %w(TRACE DEBUG INFO WARN ERROR FATAL ANY).each(&:freeze).freeze
13
+ SEV_LABEL = %w(TRACE DEBUG INFO WARN ERROR FATAL ANY)
12
14
 
13
15
  def to_label(severity)
14
16
  SEV_LABEL[severity + 1] || 'ANY'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ougai
2
4
  class Serializer
3
5
  def self.for_json
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'jrjackson'
2
4
 
3
5
  module Ougai::Serializers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'oj'
2
4
 
3
5
  module Ougai::Serializers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ougai
2
- VERSION = '1.6.6'
4
+ VERSION = '1.7.0'
3
5
  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: 1.6.6
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshimitsu Takahashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-23 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 2.1.2
117
+ version: 2.3.0
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="