logging 2.3.1 → 2.4.0

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
  SHA256:
3
- metadata.gz: f7bb89dcc5956ebabbf591d8f8d348e0e3cfdc7cb5fa356e9995168278b45a95
4
- data.tar.gz: be4ad44cf88417be5abe80fbaf0b1d28a2f4899df2c00d1d4818af78cc440443
3
+ metadata.gz: 7ace468b9fc33996bbb96930b075f13029e46ace2a397bb87843783e54c453ab
4
+ data.tar.gz: bbca00b480fff6f3b23c68b814fde25598b5e5e1e070eca11a852e1a516d5628
5
5
  SHA512:
6
- metadata.gz: b61a6a3bcda67484ec4334a89adfd6149d2aa91be51ba0ca476514c7c4532d0b4040cc202ce58d30e9d93ba5821e6eedbde77d8bdeaac7a82224731796d79eda
7
- data.tar.gz: 55c888af479f8c01eb89f96eda24b2cc9cd92f52cc0b1f21d5fde7fcb7e91e573b6007998c67b00781cf8c5ea3eadcb9462b9df2da26dbcfe0464deb13340d18
6
+ metadata.gz: 55c2dddbda46e6050ed58d665396e11b555ca3b6b058dd5a144130a8865806d39fddd38d029dff479cd739280a32402f7df78e09ab1b4733f170bef18865989f
7
+ data.tar.gz: 9b02f1c8f3c4c01ec3fa88523681eb6aa7972df353be38d05e37471ec0f1dbbc810271419c61e4764ba33aa29bd06807a0b6ef7f39f6827299f483a2b4c52d54
@@ -0,0 +1,46 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ test:
14
+ name: Test
15
+ runs-on: ubuntu-latest
16
+
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ ruby-version: ['2.7', '3.1', '3.2', 'jruby']
21
+
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@v3
25
+
26
+ - name: Setup Ruby
27
+ uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{ matrix.ruby-version }}
30
+ bundler-cache: true
31
+
32
+ - name: Setup Gem Cache
33
+ uses: actions/cache@v3
34
+ with:
35
+ path: vendor/bundle
36
+ key: ${{ runner.os }}-gems-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
37
+ restore-keys: |
38
+ ${{ runner.os }}-gems-${{ matrix.ruby-version }}-
39
+
40
+ - name: Install Dependencies
41
+ run: |
42
+ gem install bones
43
+ rake gem:install_dependencies
44
+
45
+ - name: Run Tests
46
+ run: rake test
data/History.txt CHANGED
@@ -1,3 +1,12 @@
1
+ == 2.4.0 / 2024-06-08
2
+
3
+ Enhancements
4
+ - @ag4a fix the rails_compat to work with Rails 7 [PR #246]
5
+
6
+ Bug Fixes
7
+ - @bastelfreak adding license to the gemspec [PR #223]
8
+ - @olleolleolle dropping unused gemspec directives [PR #233]
9
+
1
10
  == 2.3.1 / 2022-05-24
2
11
 
3
12
  Bug Fixes
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2007-2016 Tim Pease
3
+ Copyright (c) 2007-2022 Tim Pease
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
+ [![.github/workflows/ruby.yml](https://github.com/TwP/logging/actions/workflows/ruby.yml/badge.svg)](https://github.com/TwP/logging/actions/workflows/ruby.yml)
2
+
1
3
  ## Logging
2
- by Tim Pease [![](https://secure.travis-ci.org/TwP/logging.svg)](https://travis-ci.org/TwP/logging)
4
+ by Tim Pease
3
5
 
4
6
  * [Homepage](http://rubygems.org/gems/logging)
5
7
  * [Github Project](https://github.com/TwP/logging)
@@ -103,7 +105,7 @@ package. The recommended reading order is the following:
103
105
  ### Extending
104
106
 
105
107
  The Logging framework is extensible via the [little-plugger](https://github.com/twp/little-plugger)
106
- gem based plugin system. New appenders or formatters can be released as ruby
108
+ gem-based plugin system. New appenders, layouts, or filters can be released as ruby
107
109
  gems. When installed locally, the Logging framework will automatically detect
108
110
  these gems as plugins and make them available for use.
109
111
 
@@ -117,7 +119,7 @@ The three steps for creating a plugin are:
117
119
 
118
120
  * create a new Ruby gem: `logging-<name>`
119
121
  * include a plugin file: `lib/logging/plugins/<name>.rb`
120
- * definie a plugin initializer: `Logging::Plugins::<Name>.initialize_<name>`
122
+ * define a plugin initializer: `Logging::Plugins::<Name>.initialize_<name>`
121
123
 
122
124
  ### Development
123
125
 
data/Rakefile CHANGED
@@ -18,6 +18,7 @@ Bones {
18
18
  email 'tim.pease@gmail.com'
19
19
  url 'http://rubygems.org/gems/logging'
20
20
  version Logging::VERSION
21
+ license 'MIT'
21
22
 
22
23
  rdoc.exclude << '^data'
23
24
  rdoc.include << '^examples/.*\.rb'
@@ -28,8 +29,8 @@ Bones {
28
29
  depend_on 'little-plugger', '~> 1.1'
29
30
  depend_on 'multi_json', '~> 1.14'
30
31
 
31
- depend_on 'test-unit', '~> 3.3', :development => true
32
- depend_on 'bones-git', '~> 1.3', :development => true
33
- #depend_on 'bones-rcov', :development => true
32
+ depend_on 'test-unit', '~> 3.3', development: true
33
+ depend_on 'bones-git', '~> 1.3', development: true
34
+ #depend_on 'bones-rcov', development: true
34
35
  }
35
36
 
@@ -11,6 +11,9 @@ module Logging
11
11
  # A no-op implementation of the `formatter` method.
12
12
  def formatter; end
13
13
 
14
+ # A no-op implementation of the `formatter=` method.
15
+ def formatter=(_formatter); end
16
+
14
17
  # A no-op implementation of the +silence+ method. Setting of log levels
15
18
  # should be done during the Logging configuration. It is the author's
16
19
  # opinion that overriding the log level programmatically is a logical
@@ -1,5 +1,5 @@
1
1
  module Logging
2
- VERSION = "2.3.1".freeze
2
+ VERSION = "2.4.0".freeze
3
3
 
4
4
  # Returns the version string for the library.
5
5
  def self.version
data/logging.gemspec CHANGED
@@ -1,45 +1,30 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: logging 2.3.0 ruby lib
2
+ # stub: logging 2.4.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "logging".freeze
6
- s.version = "2.3.0"
6
+ s.version = "2.4.0".freeze
7
7
 
8
+ s.license = "MIT"
8
9
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
10
  s.require_paths = ["lib".freeze]
10
11
  s.authors = ["Tim Pease".freeze]
11
- s.date = "2020-07-04"
12
+ s.date = "2024-06-08"
12
13
  s.description = "**Logging** is a flexible logging library for use in Ruby programs based on the\ndesign of Java's log4j library. It features a hierarchical logging system,\ncustom level names, multiple output destinations per log event, custom\nformatting, and more.".freeze
13
14
  s.email = "tim.pease@gmail.com".freeze
14
15
  s.extra_rdoc_files = ["History.txt".freeze]
15
- s.files = [".gitignore".freeze, ".travis.yml".freeze, "History.txt".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "examples/appenders.rb".freeze, "examples/classes.rb".freeze, "examples/colorization.rb".freeze, "examples/custom_log_levels.rb".freeze, "examples/fork.rb".freeze, "examples/formatting.rb".freeze, "examples/hierarchies.rb".freeze, "examples/layouts.rb".freeze, "examples/lazy.rb".freeze, "examples/loggers.rb".freeze, "examples/mdc.rb".freeze, "examples/names.rb".freeze, "examples/rails4.rb".freeze, "examples/reusing_layouts.rb".freeze, "examples/rspec_integration.rb".freeze, "examples/simple.rb".freeze, "lib/logging.rb".freeze, "lib/logging/appender.rb".freeze, "lib/logging/appenders.rb".freeze, "lib/logging/appenders/buffering.rb".freeze, "lib/logging/appenders/console.rb".freeze, "lib/logging/appenders/file.rb".freeze, "lib/logging/appenders/io.rb".freeze, "lib/logging/appenders/rolling_file.rb".freeze, "lib/logging/appenders/string_io.rb".freeze, "lib/logging/appenders/syslog.rb".freeze, "lib/logging/color_scheme.rb".freeze, "lib/logging/diagnostic_context.rb".freeze, "lib/logging/filter.rb".freeze, "lib/logging/filters.rb".freeze, "lib/logging/filters/level.rb".freeze, "lib/logging/layout.rb".freeze, "lib/logging/layouts.rb".freeze, "lib/logging/layouts/basic.rb".freeze, "lib/logging/layouts/parseable.rb".freeze, "lib/logging/layouts/pattern.rb".freeze, "lib/logging/log_event.rb".freeze, "lib/logging/logger.rb".freeze, "lib/logging/proxy.rb".freeze, "lib/logging/rails_compat.rb".freeze, "lib/logging/repository.rb".freeze, "lib/logging/root_logger.rb".freeze, "lib/logging/utils.rb".freeze, "lib/logging/version.rb".freeze, "lib/rspec/logging_helper.rb".freeze, "lib/spec/logging_helper.rb".freeze, "logging.gemspec".freeze, "script/bootstrap".freeze, "script/console".freeze, "test/appenders/test_async_flushing.rb".freeze, "test/appenders/test_buffered_io.rb".freeze, "test/appenders/test_console.rb".freeze, "test/appenders/test_file.rb".freeze, "test/appenders/test_io.rb".freeze, "test/appenders/test_rolling_file.rb".freeze, "test/appenders/test_string_io.rb".freeze, "test/appenders/test_syslog.rb".freeze, "test/benchmark.rb".freeze, "test/layouts/test_basic.rb".freeze, "test/layouts/test_color_pattern.rb".freeze, "test/layouts/test_json.rb".freeze, "test/layouts/test_nested_exceptions.rb".freeze, "test/layouts/test_pattern.rb".freeze, "test/layouts/test_yaml.rb".freeze, "test/performance.rb".freeze, "test/setup.rb".freeze, "test/test_appender.rb".freeze, "test/test_color_scheme.rb".freeze, "test/test_filter.rb".freeze, "test/test_layout.rb".freeze, "test/test_log_event.rb".freeze, "test/test_logger.rb".freeze, "test/test_logging.rb".freeze, "test/test_mapped_diagnostic_context.rb".freeze, "test/test_nested_diagnostic_context.rb".freeze, "test/test_proxy.rb".freeze, "test/test_repository.rb".freeze, "test/test_root_logger.rb".freeze, "test/test_utils.rb".freeze]
16
+ s.files = ["History.txt".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "examples/appenders.rb".freeze, "examples/classes.rb".freeze, "examples/colorization.rb".freeze, "examples/custom_log_levels.rb".freeze, "examples/fork.rb".freeze, "examples/formatting.rb".freeze, "examples/hierarchies.rb".freeze, "examples/layouts.rb".freeze, "examples/lazy.rb".freeze, "examples/loggers.rb".freeze, "examples/mdc.rb".freeze, "examples/names.rb".freeze, "examples/rails4.rb".freeze, "examples/reusing_layouts.rb".freeze, "examples/rspec_integration.rb".freeze, "examples/simple.rb".freeze, "lib/logging.rb".freeze, "lib/logging/appender.rb".freeze, "lib/logging/appenders.rb".freeze, "lib/logging/appenders/buffering.rb".freeze, "lib/logging/appenders/console.rb".freeze, "lib/logging/appenders/file.rb".freeze, "lib/logging/appenders/io.rb".freeze, "lib/logging/appenders/rolling_file.rb".freeze, "lib/logging/appenders/string_io.rb".freeze, "lib/logging/appenders/syslog.rb".freeze, "lib/logging/color_scheme.rb".freeze, "lib/logging/diagnostic_context.rb".freeze, "lib/logging/filter.rb".freeze, "lib/logging/filters.rb".freeze, "lib/logging/filters/level.rb".freeze, "lib/logging/layout.rb".freeze, "lib/logging/layouts.rb".freeze, "lib/logging/layouts/basic.rb".freeze, "lib/logging/layouts/parseable.rb".freeze, "lib/logging/layouts/pattern.rb".freeze, "lib/logging/log_event.rb".freeze, "lib/logging/logger.rb".freeze, "lib/logging/proxy.rb".freeze, "lib/logging/rails_compat.rb".freeze, "lib/logging/repository.rb".freeze, "lib/logging/root_logger.rb".freeze, "lib/logging/utils.rb".freeze, "lib/logging/version.rb".freeze, "lib/rspec/logging_helper.rb".freeze, "lib/spec/logging_helper.rb".freeze, "logging.gemspec".freeze, "script/bootstrap".freeze, "script/console".freeze, "test/appenders/test_async_flushing.rb".freeze, "test/appenders/test_buffered_io.rb".freeze, "test/appenders/test_console.rb".freeze, "test/appenders/test_file.rb".freeze, "test/appenders/test_io.rb".freeze, "test/appenders/test_rolling_file.rb".freeze, "test/appenders/test_string_io.rb".freeze, "test/appenders/test_syslog.rb".freeze, "test/benchmark.rb".freeze, "test/layouts/test_basic.rb".freeze, "test/layouts/test_color_pattern.rb".freeze, "test/layouts/test_json.rb".freeze, "test/layouts/test_nested_exceptions.rb".freeze, "test/layouts/test_pattern.rb".freeze, "test/layouts/test_yaml.rb".freeze, "test/performance.rb".freeze, "test/setup.rb".freeze, "test/test_appender.rb".freeze, "test/test_color_scheme.rb".freeze, "test/test_filter.rb".freeze, "test/test_layout.rb".freeze, "test/test_log_event.rb".freeze, "test/test_logger.rb".freeze, "test/test_logging.rb".freeze, "test/test_mapped_diagnostic_context.rb".freeze, "test/test_nested_diagnostic_context.rb".freeze, "test/test_proxy.rb".freeze, "test/test_repository.rb".freeze, "test/test_root_logger.rb".freeze, "test/test_utils.rb".freeze]
16
17
  s.homepage = "http://rubygems.org/gems/logging".freeze
18
+ s.licenses = ["MIT".freeze]
17
19
  s.rdoc_options = ["--main".freeze, "README.md".freeze]
18
- s.rubygems_version = "3.0.1".freeze
20
+ s.rubygems_version = "3.5.3".freeze
19
21
  s.summary = "A flexible and extendable logging library for Ruby".freeze
20
- s.test_files = ["test/appenders/test_async_flushing.rb".freeze, "test/appenders/test_buffered_io.rb".freeze, "test/appenders/test_console.rb".freeze, "test/appenders/test_file.rb".freeze, "test/appenders/test_io.rb".freeze, "test/appenders/test_rolling_file.rb".freeze, "test/appenders/test_string_io.rb".freeze, "test/appenders/test_syslog.rb".freeze, "test/layouts/test_basic.rb".freeze, "test/layouts/test_color_pattern.rb".freeze, "test/layouts/test_json.rb".freeze, "test/layouts/test_nested_exceptions.rb".freeze, "test/layouts/test_pattern.rb".freeze, "test/layouts/test_yaml.rb".freeze, "test/test_appender.rb".freeze, "test/test_color_scheme.rb".freeze, "test/test_filter.rb".freeze, "test/test_layout.rb".freeze, "test/test_log_event.rb".freeze, "test/test_logger.rb".freeze, "test/test_logging.rb".freeze, "test/test_mapped_diagnostic_context.rb".freeze, "test/test_nested_diagnostic_context.rb".freeze, "test/test_proxy.rb".freeze, "test/test_repository.rb".freeze, "test/test_root_logger.rb".freeze, "test/test_utils.rb".freeze]
21
22
 
22
- if s.respond_to? :specification_version then
23
- s.specification_version = 4
23
+ s.specification_version = 4
24
24
 
25
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
- s.add_runtime_dependency(%q<little-plugger>.freeze, ["~> 1.1"])
27
- s.add_runtime_dependency(%q<multi_json>.freeze, ["~> 1.14"])
28
- s.add_development_dependency(%q<test-unit>.freeze, ["~> 3.3"])
29
- s.add_development_dependency(%q<bones-git>.freeze, ["~> 1.3"])
30
- s.add_development_dependency(%q<bones>.freeze, [">= 3.8.4"])
31
- else
32
- s.add_dependency(%q<little-plugger>.freeze, ["~> 1.1"])
33
- s.add_dependency(%q<multi_json>.freeze, ["~> 1.14"])
34
- s.add_dependency(%q<test-unit>.freeze, ["~> 3.3"])
35
- s.add_dependency(%q<bones-git>.freeze, ["~> 1.3"])
36
- s.add_dependency(%q<bones>.freeze, [">= 3.8.4"])
37
- end
38
- else
39
- s.add_dependency(%q<little-plugger>.freeze, ["~> 1.1"])
40
- s.add_dependency(%q<multi_json>.freeze, ["~> 1.14"])
41
- s.add_dependency(%q<test-unit>.freeze, ["~> 3.3"])
42
- s.add_dependency(%q<bones-git>.freeze, ["~> 1.3"])
43
- s.add_dependency(%q<bones>.freeze, [">= 3.8.4"])
44
- end
25
+ s.add_runtime_dependency(%q<little-plugger>.freeze, ["~> 1.1".freeze])
26
+ s.add_runtime_dependency(%q<multi_json>.freeze, ["~> 1.14".freeze])
27
+ s.add_development_dependency(%q<test-unit>.freeze, ["~> 3.3".freeze])
28
+ s.add_development_dependency(%q<bones-git>.freeze, ["~> 1.3".freeze])
29
+ s.add_development_dependency(%q<bones>.freeze, ["~> 3.9.0".freeze])
45
30
  end
data/script/bootstrap CHANGED
@@ -1,15 +1,13 @@
1
1
  #!/usr/bin/env sh
2
2
 
3
- gem list -i bones >/dev/null 2>&1
4
- rc=$?
5
- if [[ $rc != 0 ]]; then
6
- gem install bones
7
- fi
3
+ gem_install () {
4
+ gem list -i $1 >/dev/null 2>&1
5
+ if [ $? -ne 0 ]; then
6
+ gem install $1
7
+ fi
8
+ }
8
9
 
9
- gem list -i rdoc >/dev/null 2>&1
10
- rc=$?
11
- if [[ $rc != 0 ]]; then
12
- gem install rdoc
13
- fi
10
+ gem_install 'bones'
11
+ gem_install 'rdoc'
14
12
 
15
13
  rake gem:install_dependencies
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pease
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-24 00:00:00.000000000 Z
11
+ date: 2024-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: little-plugger
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: bones
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 3.8.5
75
+ version: 3.9.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 3.8.5
82
+ version: 3.9.0
83
83
  description: |-
84
84
  **Logging** is a flexible logging library for use in Ruby programs based on the
85
85
  design of Java's log4j library. It features a hierarchical logging system,
@@ -91,8 +91,8 @@ extensions: []
91
91
  extra_rdoc_files:
92
92
  - History.txt
93
93
  files:
94
+ - ".github/workflows/ruby.yml"
94
95
  - ".gitignore"
95
- - ".travis.yml"
96
96
  - History.txt
97
97
  - LICENSE
98
98
  - README.md
@@ -177,7 +177,8 @@ files:
177
177
  - test/test_root_logger.rb
178
178
  - test/test_utils.rb
179
179
  homepage: http://rubygems.org/gems/logging
180
- licenses: []
180
+ licenses:
181
+ - MIT
181
182
  metadata: {}
182
183
  post_install_message:
183
184
  rdoc_options:
@@ -196,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
197
  - !ruby/object:Gem::Version
197
198
  version: '0'
198
199
  requirements: []
199
- rubygems_version: 3.3.7
200
+ rubygems_version: 3.5.3
200
201
  signing_key:
201
202
  specification_version: 4
202
203
  summary: A flexible and extendable logging library for Ruby
data/.travis.yml DELETED
@@ -1,16 +0,0 @@
1
- language: ruby
2
-
3
- before_install: "gem install bones"
4
- install: "rake gem:install_dependencies"
5
-
6
- script: "rake"
7
-
8
- rvm:
9
- - 2.0.0-p648
10
- - 2.1.10
11
- - 2.2.7
12
- - 2.3.8
13
- - 2.4.9
14
- - 2.5.7
15
- - 2.6.5
16
- - jruby-9.2.9.0