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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d28e952333c675499313816763f1faf5c908afde
4
- data.tar.gz: 71321a829dffd0b7b6126722c449556232d1764d
2
+ SHA256:
3
+ metadata.gz: 7c90876bb1b5e1f7019982d320762c5ac4e133e8e65758d806490bb6535ddd65
4
+ data.tar.gz: 84d59644444224663ac93be6f2514b90b69c97cb35cedccca07f422f8d202526
5
5
  SHA512:
6
- metadata.gz: 16300440ff7dffdd75291528eb42ea1403ad72673e72fd87a5a35bd3ee5f2e422ab38cb88b96d6105ff8b009794e20d31386237d34d75c7f5cd8f8716edb126d
7
- data.tar.gz: 08973e7cdf09bb898f9b984dd5786c24d4132c26defc05c28e6271d1b22f5727828de7ef73995152baf0ec03cecc1665728f8cba84106b4f0575d9ba900dbdc6
6
+ metadata.gz: 3cb6c4d2e96e213cc733ee916b55bab201817bdd6eff55d584b56334eb064c4633fbcee71a8a813c1dc35c0dc33eda8a5910e3798b5c99449278cf640868a4f6
7
+ data.tar.gz: c6406041d667a06fabb06598916129fda741e21104e58834425a6f023c245002e218d8f6638eff65e9bd2a7b7e31b0dbda02920c398787315502c4027bd47e3c
@@ -1,11 +1,19 @@
1
1
  language: ruby
2
+
2
3
  cache: bundler
4
+
3
5
  rvm:
4
- - 2.3.0
5
- - 2.2.3
6
- - 2.1.7
7
- - 2.0.0
8
- before_install: gem install bundler -v 1.10.4
9
- notifications:
10
- slack:
11
- secure: zCs6tIIMRaugSasz857bnfcHywMZvz2nztcTJdkvi25kZFysakVgVJ+CNBRZSHjShsnBD1H1i3ywoECKPHUiLlUDQU4ncZQoSS0qM5CcmVlE0JOHzcvY2POTadZWfVn2XvRcCcoI2k7Oy9cS+xFmbs3PP2TqbVfPStB+l9jD+QejWinpLJR05PGi8M2iqZKjxAwJ9TBoLvmHt7UtXMq6edG/Q+SVOUQMEEkLCaWzSvNQYnDiTk1ewkXF0kG5jtVx/OKjQC62ioQIBz6+I6aMfOil2MCpb8u37asXQeML/rMPfBxVuwvBSwGKpRBrJSUG5XeoWg8bbri0WUOrOGCg3LVRtdiHyUNcAYObaB69+YqFOt/F05Dgg6+9Rs53mgZM2zuvsFp2qeSD27wXCy0ZJhFyMv5YJA5paJZjOAH0ki9FWeZjC4XMasntvO7/83rCEFcqGusMckLKcKE/RdEYurzqLruF2W4FGSAvSTbARjQbtYMxmuh1xJrH4KCdCYDvoxYb4xJrGo+q77j+wnpzGBwf8nak2VcGgN6wXadeosNR31WGW+HBwv8LxTJutlXzDjBTyK2ZcaaIZASbF3liEH294ycdf9YcGlxZYxuauPsg0EXa8C0NHXkfL9Zb1CftEgULXvtBL/qNDr/cyhHWbSYZcJw5DfQYt6inBKudmEU=
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
@@ -1,92 +1,125 @@
1
- # v3.2.2
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
- # v3.2.1
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
- # v3.2.0
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
- # v3.1.2
24
+ ## v3.1.2
25
+
14
26
  - add .gemspec required_ruby_version = '>= 2.0.0'
15
27
 
16
- # v3.1.1
28
+ ## v3.1.1
29
+
17
30
  - [[clean] module split](https://github.com/k-ta-yamada/tee_logger/pull/14)
18
31
 
19
- # v3.1.0
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
- # v3.0.3
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
- # v3.0.2
42
+ ## v3.0.2
43
+
28
44
  - refactoring
29
45
  - CONSTANTS move to ./lib/constants.rb
30
46
 
31
- # v3.0.1
47
+ ## v3.0.1
48
+
32
49
  - refactoring for [issue #9](https://github.com/k-ta-yamada/tee_logger/issues/9)
33
50
 
34
- # v3.0.0
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
- # v2.7.0
58
+ ## v2.7.0
59
+
41
60
  - add datetime_format, datetime_format=
42
61
 
43
- # v2.6.0
62
+ ## v2.6.0
63
+
44
64
  - disabling option add to logging_methods
45
65
 
46
- # v2.5.0
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
- # v2.4.1
72
+ ## v2.4.1
73
+
52
74
  - update README.md
53
75
  - and YARD comment
54
76
 
55
- # v2.4.0
77
+ ## v2.4.0
78
+
56
79
  - TeeLogger#disable is allow block given
57
80
 
58
- # v2.3.1
81
+ ## v2.3.1
82
+
59
83
  - refactoring TeeLogger#disable
60
84
 
61
- # v2.3.0
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
- # v2.2.0
92
+ ## v2.2.0
93
+
68
94
  - disabling and enabling
69
95
 
70
- # v2.1.1
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
- # v2.1.0
103
+ ## v2.1.0
104
+
77
105
  - Integrate TeeLogger::Base class to TeeLogger::TeeLogger class
78
106
 
79
- # v2.0.2
107
+ ## v2.0.2
108
+
80
109
  - bugfix
81
110
 
82
- # v2.0.1
111
+ ## v2.0.1
112
+
83
113
  - bugfix
84
114
 
85
- # v2.0.0
115
+ ## v2.0.0
116
+
86
117
  - Change to Class from Module
87
118
 
88
- # v1.1.0
119
+ ## v1.1.0
120
+
89
121
  - bugfix
90
122
 
91
- # v1.0.0
123
+ ## v1.0.0
124
+
92
125
  - first
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in tee_logger.gemspec
4
4
  gemspec
5
- gem 'codeclimate-test-reporter', group: :test, require: nil
6
- gem 'simplecov-console', group: :test, require: nil
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](http://www.rubydoc.info/gems/tee_logger)
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](http://contributor-covenant.org) code of conduct.
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](http://opensource.org/licenses/MIT).
239
+ [MIT License](https://opensource.org/licenses/MIT).
239
240
 
240
241
 
241
- [gem_version]: http://badge.fury.io/rb/tee_logger
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]: http://inch-ci.org/github/k-ta-yamada/tee_logger
254
- [inch-ci-svg]: http://inch-ci.org/github/k-ta-yamada/tee_logger.svg?branch=master
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
@@ -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 Fixnum then obj.indent_level = val
11
+ when Integer then obj.indent_level = val
12
12
  else incorrect_option_error(val)
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  # namespace
2
2
  module TeeLogger
3
3
  # version number
4
- VERSION = '3.2.2'.freeze
4
+ VERSION = '3.2.3'.freeze
5
5
  end
@@ -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.0.0'
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', '~> 1.10'
30
- spec.add_development_dependency 'rake', '~> 10.0'
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.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: 2016-01-15 00:00:00.000000000 Z
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: '1.10'
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: '1.10'
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: '10.0'
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: '10.0'
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.0.0
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
- rubyforge_project:
212
- rubygems_version: 2.5.1
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: