tee_logger 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +16 -8
- data/CHANGELOG.md +58 -25
- data/Gemfile +0 -2
- data/README.md +9 -12
- data/lib/tee_logger/utils.rb +1 -1
- data/lib/tee_logger/version.rb +1 -1
- data/tee_logger.gemspec +5 -3
- metadata +43 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7c90876bb1b5e1f7019982d320762c5ac4e133e8e65758d806490bb6535ddd65
|
4
|
+
data.tar.gz: 84d59644444224663ac93be6f2514b90b69c97cb35cedccca07f422f8d202526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cb6c4d2e96e213cc733ee916b55bab201817bdd6eff55d584b56334eb064c4633fbcee71a8a813c1dc35c0dc33eda8a5910e3798b5c99449278cf640868a4f6
|
7
|
+
data.tar.gz: c6406041d667a06fabb06598916129fda741e21104e58834425a6f023c245002e218d8f6638eff65e9bd2a7b7e31b0dbda02920c398787315502c4027bd47e3c
|
data/.travis.yml
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
language: ruby
|
2
|
+
|
2
3
|
cache: bundler
|
4
|
+
|
3
5
|
rvm:
|
4
|
-
-
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
- 3.0
|
7
|
+
- 2.7
|
8
|
+
- 2.6
|
9
|
+
- 2.5
|
10
|
+
|
11
|
+
before_install:
|
12
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
13
|
+
- chmod +x ./cc-test-reporter
|
14
|
+
|
15
|
+
before_script:
|
16
|
+
- ./cc-test-reporter before-build
|
17
|
+
|
18
|
+
after_script:
|
19
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/CHANGELOG.md
CHANGED
@@ -1,92 +1,125 @@
|
|
1
|
-
#
|
1
|
+
# CHANGELOG.md
|
2
|
+
|
3
|
+
## v3.2.3
|
4
|
+
|
5
|
+
2020-01-03 JST
|
6
|
+
|
7
|
+
- Add support for Ruby 3.0
|
8
|
+
|
9
|
+
## v3.2.2
|
10
|
+
|
2
11
|
- [issue #17](https://github.com/k-ta-yamada/tee_logger/issues/17)
|
3
12
|
default settings for extend and include
|
4
13
|
|
5
|
-
|
14
|
+
## v3.2.1
|
15
|
+
|
6
16
|
- [issue #18](https://github.com/k-ta-yamada/tee_logger/issues/18)
|
7
17
|
use initial value `DEFAULT_FILE`, it's change TeeLogger.logdev
|
8
18
|
|
9
|
-
|
19
|
+
## v3.2.0
|
20
|
+
|
10
21
|
- [issue #15](https://github.com/k-ta-yamada/tee_logger/issues/15)
|
11
22
|
Before extend or include the module, allow the setting of logdev
|
12
23
|
|
13
|
-
|
24
|
+
## v3.1.2
|
25
|
+
|
14
26
|
- add .gemspec required_ruby_version = '>= 2.0.0'
|
15
27
|
|
16
|
-
|
28
|
+
## v3.1.1
|
29
|
+
|
17
30
|
- [[clean] module split](https://github.com/k-ta-yamada/tee_logger/pull/14)
|
18
31
|
|
19
|
-
|
32
|
+
## v3.1.0
|
33
|
+
|
20
34
|
- [issue #12](https://github.com/k-ta-yamada/tee_logger/issues/12)
|
21
35
|
Include and Extend support
|
22
36
|
|
23
|
-
|
37
|
+
## v3.0.3
|
38
|
+
|
24
39
|
- shared_examples_for_tee_logger_spec.rb [ae1e481](https://github.com/k-ta-yamada/tee_logger/commit/ae1e481)
|
25
40
|
- new constant for disabling formatter [478eccb](https://github.com/k-ta-yamada/tee_logger/commit/478eccb)
|
26
41
|
|
27
|
-
|
42
|
+
## v3.0.2
|
43
|
+
|
28
44
|
- refactoring
|
29
45
|
- CONSTANTS move to ./lib/constants.rb
|
30
46
|
|
31
|
-
|
47
|
+
## v3.0.1
|
48
|
+
|
32
49
|
- refactoring for [issue #9](https://github.com/k-ta-yamada/tee_logger/issues/9)
|
33
50
|
|
34
|
-
|
51
|
+
## v3.0.0
|
52
|
+
|
35
53
|
- [issue #4](https://github.com/k-ta-yamada/tee_logger/issues/4)
|
36
54
|
logging method's parametrer disabling_target change to enabling_targe
|
37
55
|
- [issue #5](https://github.com/k-ta-yamada/tee_logger/issues/5)
|
38
56
|
log message indentation
|
39
57
|
|
40
|
-
|
58
|
+
## v2.7.0
|
59
|
+
|
41
60
|
- add datetime_format, datetime_format=
|
42
61
|
|
43
|
-
|
62
|
+
## v2.6.0
|
63
|
+
|
44
64
|
- disabling option add to logging_methods
|
45
65
|
|
46
|
-
|
66
|
+
## v2.5.0
|
67
|
+
|
47
68
|
- level, progname and formatter were changed to instance variable
|
48
69
|
- refactoring: disabling and enabling
|
49
70
|
- rm ./lib/tee_logger/constants.rb. Constants move to ./lib/tee_logger.rb
|
50
71
|
|
51
|
-
|
72
|
+
## v2.4.1
|
73
|
+
|
52
74
|
- update README.md
|
53
75
|
- and YARD comment
|
54
76
|
|
55
|
-
|
77
|
+
## v2.4.0
|
78
|
+
|
56
79
|
- TeeLogger#disable is allow block given
|
57
80
|
|
58
|
-
|
81
|
+
## v2.3.1
|
82
|
+
|
59
83
|
- refactoring TeeLogger#disable
|
60
84
|
|
61
|
-
|
85
|
+
## v2.3.0
|
86
|
+
|
62
87
|
- remove TeeLogger.attr_reader
|
63
88
|
- and rename instance variable: @logger => @logfile
|
64
89
|
- implementation `#level` and `level=`
|
65
90
|
- implementation `#formatter` and `formatter=`
|
66
91
|
|
67
|
-
|
92
|
+
## v2.2.0
|
93
|
+
|
68
94
|
- disabling and enabling
|
69
95
|
|
70
|
-
|
96
|
+
## v2.1.1
|
97
|
+
|
71
98
|
- refactoring of test case
|
72
99
|
- Introduced capture_stdout
|
73
100
|
- Introduced FakeFS
|
74
101
|
- Change logdev of Console for Logger from STDOUT to $ stdout
|
75
102
|
|
76
|
-
|
103
|
+
## v2.1.0
|
104
|
+
|
77
105
|
- Integrate TeeLogger::Base class to TeeLogger::TeeLogger class
|
78
106
|
|
79
|
-
|
107
|
+
## v2.0.2
|
108
|
+
|
80
109
|
- bugfix
|
81
110
|
|
82
|
-
|
111
|
+
## v2.0.1
|
112
|
+
|
83
113
|
- bugfix
|
84
114
|
|
85
|
-
|
115
|
+
## v2.0.0
|
116
|
+
|
86
117
|
- Change to Class from Module
|
87
118
|
|
88
|
-
|
119
|
+
## v1.1.0
|
120
|
+
|
89
121
|
- bugfix
|
90
122
|
|
91
|
-
|
123
|
+
## v1.0.0
|
124
|
+
|
92
125
|
- first
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
[![Gem Version][gem_version-svg]][gem_version]
|
2
2
|
[![Build Status][travis-svg]][travis]
|
3
|
+
[![Downloads][downloads-svg]][gem_version]
|
4
|
+
[![Inline docs][inch-ci-svg]][inch-ci]
|
3
5
|
[![Code Climate][codeclimate-svg]][codeclimate]
|
4
6
|
[![Test Coverage][codeclimate_cov-svg]][codeclimate_cov]
|
5
|
-
[![Inline docs][inch-ci-svg]][inch-ci]
|
6
7
|
|
7
8
|
> Sorry. In from version 2 to version 3, changed usage.
|
8
9
|
> see also [CHANGELOG.md][tee_logger-changelog].
|
9
10
|
|
10
11
|
- [Rubygems.org](https://rubygems.org/gems/tee_logger)
|
11
12
|
- [GitHub](https://github.com/k-ta-yamada/tee_logger)
|
12
|
-
- [RubyDoc.info](
|
13
|
+
- [RubyDoc.info](https://www.rubydoc.info/gems/tee_logger)
|
13
14
|
|
14
15
|
# TeeLogger
|
15
16
|
|
@@ -229,28 +230,24 @@ at https://github.com/k-ta-yamada/tee_logger.
|
|
229
230
|
This project is intended to be a safe,
|
230
231
|
welcoming space for collaboration,
|
231
232
|
and contributors are expected to adhere to the
|
232
|
-
[Contributor Covenant](
|
233
|
+
[Contributor Covenant](https://contributor-covenant.org) code of conduct.
|
233
234
|
|
234
235
|
|
235
236
|
## License
|
236
237
|
|
237
238
|
The gem is available as open source under the terms of the
|
238
|
-
[MIT License](
|
239
|
+
[MIT License](https://opensource.org/licenses/MIT).
|
239
240
|
|
240
241
|
|
241
|
-
[gem_version]:
|
242
|
+
[gem_version]: https://badge.fury.io/rb/tee_logger
|
242
243
|
[gem_version-svg]: https://badge.fury.io/rb/tee_logger.svg
|
243
|
-
|
244
244
|
[travis]: https://travis-ci.org/k-ta-yamada/tee_logger
|
245
245
|
[travis-svg]: https://travis-ci.org/k-ta-yamada/tee_logger.svg
|
246
|
-
|
247
246
|
[codeclimate]: https://codeclimate.com/github/k-ta-yamada/tee_logger
|
248
247
|
[codeclimate-svg]: https://codeclimate.com/github/k-ta-yamada/tee_logger/badges/gpa.svg
|
249
|
-
|
250
248
|
[codeclimate_cov]: https://codeclimate.com/github/k-ta-yamada/tee_logger/coverage
|
251
249
|
[codeclimate_cov-svg]: https://codeclimate.com/github/k-ta-yamada/tee_logger/badges/coverage.svg
|
252
|
-
|
253
|
-
[inch-ci]:
|
254
|
-
[
|
255
|
-
|
250
|
+
[inch-ci]: https://inch-ci.org/github/k-ta-yamada/tee_logger
|
251
|
+
[inch-ci-svg]: https://inch-ci.org/github/k-ta-yamada/tee_logger.svg?branch=master
|
252
|
+
[downloads-svg]: https://ruby-gem-downloads-badge.herokuapp.com/tee_logger?type=total&total_label=&color=brightgreen
|
256
253
|
[tee_logger-changelog]: https://github.com/k-ta-yamada/tee_logger/blob/master/CHANGELOG.md
|
data/lib/tee_logger/utils.rb
CHANGED
@@ -8,7 +8,7 @@ module TeeLogger
|
|
8
8
|
options.each_with_object(ParsedOption.new(nil, 0)) do |val, obj|
|
9
9
|
case val
|
10
10
|
when Symbol then obj.logdev_name = name_reverse(val)
|
11
|
-
when
|
11
|
+
when Integer then obj.indent_level = val
|
12
12
|
else incorrect_option_error(val)
|
13
13
|
end
|
14
14
|
end
|
data/lib/tee_logger/version.rb
CHANGED
data/tee_logger.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ['k-ta-yamada']
|
10
10
|
spec.email = ['key.luvless@gmail.com']
|
11
11
|
|
12
|
-
spec.required_ruby_version = '>= 2.
|
12
|
+
spec.required_ruby_version = '>= 2.5.0'
|
13
13
|
|
14
14
|
spec.summary = 'logging to file and standard output.'
|
15
15
|
# rubocop:disable Metrics/LineLength
|
@@ -26,10 +26,12 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
27
|
spec.require_paths = ['lib']
|
28
28
|
|
29
|
-
spec.add_development_dependency 'bundler'
|
30
|
-
spec.add_development_dependency 'rake'
|
29
|
+
spec.add_development_dependency 'bundler'
|
30
|
+
spec.add_development_dependency 'rake'
|
31
31
|
spec.add_development_dependency 'rspec'
|
32
32
|
spec.add_development_dependency 'fuubar'
|
33
|
+
spec.add_development_dependency 'simplecov'
|
34
|
+
spec.add_development_dependency 'simplecov-console'
|
33
35
|
|
34
36
|
spec.add_development_dependency 'pry'
|
35
37
|
spec.add_development_dependency 'pry-doc'
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tee_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k-ta-yamada
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,34 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov-console
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: pry
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,7 +221,7 @@ homepage: https://github.com/k-ta-yamada/tee_logger
|
|
193
221
|
licenses:
|
194
222
|
- MIT
|
195
223
|
metadata: {}
|
196
|
-
post_install_message:
|
224
|
+
post_install_message:
|
197
225
|
rdoc_options: []
|
198
226
|
require_paths:
|
199
227
|
- lib
|
@@ -201,17 +229,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
229
|
requirements:
|
202
230
|
- - ">="
|
203
231
|
- !ruby/object:Gem::Version
|
204
|
-
version: 2.
|
232
|
+
version: 2.5.0
|
205
233
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
234
|
requirements:
|
207
235
|
- - ">="
|
208
236
|
- !ruby/object:Gem::Version
|
209
237
|
version: '0'
|
210
238
|
requirements: []
|
211
|
-
|
212
|
-
|
213
|
-
signing_key:
|
239
|
+
rubygems_version: 3.2.3
|
240
|
+
signing_key:
|
214
241
|
specification_version: 4
|
215
242
|
summary: logging to file and standard output.
|
216
243
|
test_files: []
|
217
|
-
has_rdoc:
|