logcraft 2.1 → 2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +2 -2
- data/README.md +1 -0
- data/gemfiles/rails_7.1.gemfile +13 -0
- data/lib/logcraft/railtie.rb +5 -1
- data/lib/logcraft/rspec/helpers.rb +1 -1
- data/lib/logcraft/rspec.rb +1 -1
- data/lib/logcraft/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f83b1cb57e7d3a8072d8fc2d7b5b7d952cd9f96eb72edecb88244179384d4f61
|
4
|
+
data.tar.gz: 2f679955495954defc5ba217f0ef36318f0fae6e8d050c48b834c582b8742ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad933459ec43e29bcf9c13627d591ded635601e1a2df160c7178c98abadb5f103bacdd3b160d5ab7900b83fa0b254d701be6eaeb7e1277dfc211a76303f4b376
|
7
|
+
data.tar.gz: a1693794447ab3fc3180c9aa905d397fd4ae7f4e23fe7474d7c7817cfef8acecf41935db8f4a1589ee691133af7186d486d60a7df432ff02230a089483010fcf
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [2.2] - 2023-10-23
|
8
|
+
### Added
|
9
|
+
- Added support for Rails 7.1.
|
10
|
+
|
7
11
|
## [2.1] - 2023-06-13
|
8
12
|
### Added
|
9
13
|
- Added support for custom log formatters.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -17,6 +17,7 @@ Logcraft's purpose is threefold:
|
|
17
17
|
Logcraft supports:
|
18
18
|
|
19
19
|
* [Ruby](https://www.ruby-lang.org) 2.6 and up (tested with 2.6, 2.7, 3.0 and 3.1)
|
20
|
+
* [Rails](https://rubyonrails.org/) 5 and up (tested with 5.2, 6.0, 6.1, 7.0 and 7.1)
|
20
21
|
* [Rails](https://rubyonrails.org/) 5 and up (tested with 5.2, 6.0, 6.1 and 7.0)
|
21
22
|
* [Sidekiq](https://github.com/mperham/sidekiq) integration is provided via
|
22
23
|
the [Logcraft::Sidekiq](https://github.com/zormandi/logcraft-sidekiq) gem
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in logcraft.gemspec
|
6
|
+
gemspec path: '..'
|
7
|
+
|
8
|
+
group :test do
|
9
|
+
gem 'rails', '~> 7.1.0'
|
10
|
+
gem 'rspec-rails', '~> 6.0'
|
11
|
+
gem 'sqlite3', '~> 1.4'
|
12
|
+
gem 'net-smtp', require: false
|
13
|
+
end
|
data/lib/logcraft/railtie.rb
CHANGED
@@ -45,7 +45,11 @@ module Logcraft
|
|
45
45
|
end
|
46
46
|
|
47
47
|
config.before_configuration do |app|
|
48
|
-
app.config.logger =
|
48
|
+
app.config.logger = if defined? ActiveSupport::BroadcastLogger
|
49
|
+
ActiveSupport::BroadcastLogger.new Logcraft.logger('Application')
|
50
|
+
else
|
51
|
+
Logcraft.logger 'Application'
|
52
|
+
end
|
49
53
|
app.config.log_level = ENV['LOG_LEVEL'] || :info
|
50
54
|
end
|
51
55
|
end
|
data/lib/logcraft/rspec.rb
CHANGED
@@ -7,7 +7,7 @@ require_relative 'rspec/matchers'
|
|
7
7
|
require_relative 'log_layout'
|
8
8
|
|
9
9
|
RSpec.configure do |config|
|
10
|
-
config.include
|
10
|
+
config.include Logcraft::RSpec::Helpers
|
11
11
|
config.before(:suite) do
|
12
12
|
Logging.appenders.string_io('__logcraft_stringio__', layout: Logging.logger.root.appenders.first&.layout || Logcraft::LogLayout.new)
|
13
13
|
config.capture_log_messages to: '__logcraft_stringio__'
|
data/lib/logcraft/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logcraft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zoltan Ormandi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
|
-
description:
|
83
|
+
description:
|
84
84
|
email:
|
85
85
|
- zoltan.ormandi@gmail.com
|
86
86
|
executables: []
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- gemfiles/rails_6.0.gemfile
|
98
98
|
- gemfiles/rails_6.1.gemfile
|
99
99
|
- gemfiles/rails_7.0.gemfile
|
100
|
+
- gemfiles/rails_7.1.gemfile
|
100
101
|
- lib/logcraft.rb
|
101
102
|
- lib/logcraft/log_context_helper.rb
|
102
103
|
- lib/logcraft/log_layout.rb
|
@@ -120,7 +121,7 @@ metadata:
|
|
120
121
|
homepage_uri: https://github.com/zormandi/logcraft
|
121
122
|
source_code_uri: https://github.com/zormandi/logcraft
|
122
123
|
changelog_uri: https://github.com/zormandi/logcraft/blob/main/CHANGELOG.md
|
123
|
-
post_install_message:
|
124
|
+
post_install_message:
|
124
125
|
rdoc_options: []
|
125
126
|
require_paths:
|
126
127
|
- lib
|
@@ -135,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
136
|
- !ruby/object:Gem::Version
|
136
137
|
version: '0'
|
137
138
|
requirements: []
|
138
|
-
rubygems_version: 3.
|
139
|
-
signing_key:
|
139
|
+
rubygems_version: 3.4.10
|
140
|
+
signing_key:
|
140
141
|
specification_version: 4
|
141
142
|
summary: A zero-configuration structured logging solution for pure Ruby or Ruby on
|
142
143
|
Rails projects.
|