loga 2.7.0 → 2.8.1
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 +4 -4
- data/.github/workflows/build-and-test.yml +72 -0
- data/.github/workflows/publish-gem.yml +28 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +206 -0
- data/Appraisals +58 -46
- data/CHANGELOG.md +10 -0
- data/Gemfile +22 -0
- data/gemfiles/rails52.gemfile +23 -1
- data/gemfiles/rails60.gemfile +22 -0
- data/gemfiles/rails61.gemfile +22 -0
- data/gemfiles/rails70.gemfile +24 -0
- data/gemfiles/rails71.gemfile +35 -0
- data/gemfiles/sidekiq51.gemfile +22 -0
- data/gemfiles/sidekiq60.gemfile +22 -0
- data/gemfiles/sidekiq61.gemfile +22 -0
- data/gemfiles/sidekiq62.gemfile +22 -0
- data/gemfiles/sidekiq63.gemfile +22 -0
- data/gemfiles/sidekiq64.gemfile +22 -0
- data/gemfiles/sidekiq65.gemfile +22 -0
- data/gemfiles/sidekiq7.gemfile +22 -0
- data/gemfiles/sidekiq70.gemfile +22 -0
- data/gemfiles/sidekiq71.gemfile +22 -0
- data/gemfiles/sinatra14.gemfile +22 -0
- data/gemfiles/sinatra2.gemfile +33 -0
- data/gemfiles/sinatra3.gemfile +33 -0
- data/gemfiles/sinatra4.gemfile +33 -0
- data/gemfiles/unit.gemfile +22 -0
- data/lib/loga/formatters/gelf_formatter.rb +13 -6
- data/lib/loga/railtie.rb +2 -2
- data/lib/loga/version.rb +1 -1
- data/loga.gemspec +0 -15
- data/spec/fixtures/{rails50.rb → rails71.rb} +1 -1
- data/spec/integration/rails/action_mailer_spec.rb +2 -0
- data/spec/integration/rails/railtie_spec.rb +13 -3
- data/spec/integration/rails/request_spec.rb +4 -2
- data/spec/integration/sidekiq5_spec.rb +15 -13
- data/spec/integration/sidekiq60_spec.rb +3 -3
- data/spec/integration/sidekiq61_spec.rb +6 -4
- data/spec/integration/sidekiq65_spec.rb +1 -1
- data/spec/integration/sinatra_spec.rb +9 -6
- data/spec/loga/sidekiq5/job_logger_spec.rb +2 -0
- data/spec/loga/sidekiq6/job_logger_spec.rb +3 -1
- data/spec/loga/sidekiq7/job_logger_spec.rb +3 -1
- data/spec/loga/sidekiq_spec.rb +4 -2
- data/spec/spec_helper.rb +6 -3
- data/spec/support/gethostname_shared.rb +3 -1
- data/spec/support/helpers.rb +2 -0
- data/spec/support/request_spec.rb +83 -81
- data/spec/support/timecop_shared.rb +3 -1
- data/spec/unit/loga/configuration_spec.rb +11 -9
- data/spec/unit/loga/event_spec.rb +4 -2
- data/spec/unit/loga/formatters/gelf_formatter_spec.rb +38 -13
- data/spec/unit/loga/formatters/simple_formatter_spec.rb +7 -5
- data/spec/unit/loga/log_subscribers/action_mailer_spec.rb +6 -4
- data/spec/unit/loga/parameter_filter_spec.rb +2 -0
- data/spec/unit/loga/rack/logger_spec.rb +18 -16
- data/spec/unit/loga/rack/request_spec.rb +2 -0
- data/spec/unit/loga/service_version_strategies_spec.rb +2 -0
- data/spec/unit/loga/utilities_spec.rb +2 -0
- data/spec/unit/loga_spec.rb +3 -1
- metadata +12 -206
- data/.circleci/config.yml +0 -112
- data/gemfiles/rails42.gemfile +0 -11
- data/gemfiles/rails50.gemfile +0 -11
- data/spec/fixtures/rails42.rb +0 -80
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f60214dba9c061d960dfd2704ee5e99c6f56a07ce4c7cc6f96bbe515981243a
|
4
|
+
data.tar.gz: dd73dfe8323036995f6f65296ec0f9d3c753f58e1232a0a60b1702058313e00f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1457fd34f8bf23f3d97fff90806e8cf5572c74232de2439ff4e0ba0a37fdab762da3ea599ca58dc0f9a5861f8743859723ca4c9852054d0b0e237b72e3d84d66
|
7
|
+
data.tar.gz: 51390e73c632c180f8d5f41d2bbd231c61bed119a5518eae01f57095b4b659bb5d50c0f1a4d199cfd065e20374f5270b8e549b9fe03dd8a3a32097fd16ce3abf
|
@@ -0,0 +1,72 @@
|
|
1
|
+
name: Build & Test
|
2
|
+
run-name: Build & Test - ${{ github.ref_name }}
|
3
|
+
|
4
|
+
on:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- '**'
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
version-check:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
if: "!contains(github.ref, 'master')"
|
13
|
+
steps:
|
14
|
+
- name: Checkout commit
|
15
|
+
uses: actions/checkout@v4
|
16
|
+
with:
|
17
|
+
fetch-depth: 0
|
18
|
+
|
19
|
+
- name: Gem versioned correctly
|
20
|
+
shell: sh
|
21
|
+
run: |
|
22
|
+
CHANGED=$(git diff origin/master HEAD --name-only | grep 'lib/loga') || exit 0
|
23
|
+
[[ -z "$CHANGED" ]] || (echo "$CHANGED" | grep 'version.rb') || exit 1
|
24
|
+
|
25
|
+
rubocop:
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
steps:
|
28
|
+
- name: Check out repository code
|
29
|
+
uses: actions/checkout@v4
|
30
|
+
|
31
|
+
- name: Set up Ruby
|
32
|
+
uses: ruby/setup-ruby@v1
|
33
|
+
with:
|
34
|
+
ruby-version: '3.3'
|
35
|
+
bundler-cache: true
|
36
|
+
|
37
|
+
- name: Run RuboCop
|
38
|
+
run: bundle exec rubocop
|
39
|
+
|
40
|
+
build-and-test:
|
41
|
+
runs-on: ubuntu-latest
|
42
|
+
services:
|
43
|
+
redis:
|
44
|
+
image: redis:7
|
45
|
+
options: >-
|
46
|
+
--health-cmd "redis-cli ping"
|
47
|
+
--health-interval 10s
|
48
|
+
--health-timeout 5s
|
49
|
+
--health-retries 5
|
50
|
+
ports:
|
51
|
+
- 6379:6379
|
52
|
+
strategy:
|
53
|
+
matrix:
|
54
|
+
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', 'head']
|
55
|
+
steps:
|
56
|
+
- name: Check out repository code
|
57
|
+
uses: actions/checkout@v4
|
58
|
+
|
59
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
60
|
+
uses: ruby/setup-ruby@v1
|
61
|
+
with:
|
62
|
+
ruby-version: ${{ matrix.ruby-version }}
|
63
|
+
bundler-cache: true
|
64
|
+
|
65
|
+
- name: Install appraisal gems
|
66
|
+
run: bundle exec appraisal install
|
67
|
+
|
68
|
+
- name: Test with RACK_ENV=development
|
69
|
+
run: RACK_ENV=development bundle exec appraisal rspec
|
70
|
+
|
71
|
+
- name: Test with RACK_ENV=production
|
72
|
+
run: RACK_ENV=production bundle exec appraisal rspec
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: Deploy to RubyGems
|
2
|
+
run-name: ${{ github.actor }} is publishing a new version
|
3
|
+
|
4
|
+
on:
|
5
|
+
release:
|
6
|
+
types: [published]
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
publish-gem:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- name: Check out repository code
|
13
|
+
uses: actions/checkout@v4
|
14
|
+
|
15
|
+
- name: Set up Ruby
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: '3.3'
|
19
|
+
bundler-cache: true
|
20
|
+
|
21
|
+
- name: Build gem
|
22
|
+
run: gem build loga.gemspec
|
23
|
+
|
24
|
+
- name: Publish gem
|
25
|
+
env:
|
26
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
27
|
+
run: |
|
28
|
+
gem push loga-*.gem
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,206 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config --exclude-limit 10000000`
|
3
|
+
# on 2024-02-09 15:03:07 UTC using RuboCop version 1.60.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 5
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
12
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
13
|
+
Bundler/OrderedGems:
|
14
|
+
Exclude:
|
15
|
+
- 'Gemfile'
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
# This cop supports safe autocorrection (--autocorrect).
|
19
|
+
Layout/EmptyLineAfterGuardClause:
|
20
|
+
Exclude:
|
21
|
+
- 'lib/loga/formatters/gelf_formatter.rb'
|
22
|
+
|
23
|
+
# Offense count: 34
|
24
|
+
# This cop supports safe autocorrection (--autocorrect).
|
25
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
26
|
+
# SupportedHashRocketStyles: key, separator, table
|
27
|
+
# SupportedColonStyles: key, separator, table
|
28
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
29
|
+
Layout/HashAlignment:
|
30
|
+
Exclude:
|
31
|
+
- 'lib/loga/configuration.rb'
|
32
|
+
- 'lib/loga/formatters/gelf_formatter.rb'
|
33
|
+
- 'lib/loga/rack/logger.rb'
|
34
|
+
- 'lib/loga/railtie.rb'
|
35
|
+
- 'lib/loga/sidekiq6/job_logger.rb'
|
36
|
+
|
37
|
+
# Offense count: 1
|
38
|
+
# This cop supports safe autocorrection (--autocorrect).
|
39
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
40
|
+
Layout/LeadingCommentSpace:
|
41
|
+
Exclude:
|
42
|
+
- 'lib/loga/railtie.rb'
|
43
|
+
|
44
|
+
# Offense count: 2
|
45
|
+
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
46
|
+
Lint/EmptyBlock:
|
47
|
+
Exclude:
|
48
|
+
- 'Appraisals'
|
49
|
+
- 'spec/integration/sinatra_spec.rb'
|
50
|
+
|
51
|
+
# Offense count: 1
|
52
|
+
# Configuration parameters: AllowedParentClasses.
|
53
|
+
Lint/MissingSuper:
|
54
|
+
Exclude:
|
55
|
+
- 'lib/loga/formatters/gelf_formatter.rb'
|
56
|
+
|
57
|
+
# Offense count: 1
|
58
|
+
# This cop supports safe autocorrection (--autocorrect).
|
59
|
+
Lint/RedundantCopDisableDirective:
|
60
|
+
Exclude:
|
61
|
+
- 'lib/loga/railtie.rb'
|
62
|
+
|
63
|
+
# Offense count: 2
|
64
|
+
# This cop supports safe autocorrection (--autocorrect).
|
65
|
+
Lint/SendWithMixinArgument:
|
66
|
+
Exclude:
|
67
|
+
- 'lib/loga/railtie.rb'
|
68
|
+
|
69
|
+
# Offense count: 1
|
70
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
71
|
+
Metrics/CyclomaticComplexity:
|
72
|
+
Max: 8
|
73
|
+
|
74
|
+
# Offense count: 1
|
75
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
76
|
+
Metrics/PerceivedComplexity:
|
77
|
+
Max: 9
|
78
|
+
|
79
|
+
# Offense count: 1
|
80
|
+
# This cop supports safe autocorrection (--autocorrect).
|
81
|
+
Migration/DepartmentName:
|
82
|
+
Exclude:
|
83
|
+
- 'lib/loga/railtie.rb'
|
84
|
+
|
85
|
+
# Offense count: 1
|
86
|
+
# This cop supports safe autocorrection (--autocorrect).
|
87
|
+
# Configuration parameters: PreferredName.
|
88
|
+
Naming/RescuedExceptionsVariableName:
|
89
|
+
Exclude:
|
90
|
+
- 'lib/loga/sidekiq5/job_logger.rb'
|
91
|
+
|
92
|
+
# Offense count: 3
|
93
|
+
# Configuration parameters: Prefixes, AllowedPatterns.
|
94
|
+
# Prefixes: when, with, without
|
95
|
+
RSpec/ContextWording:
|
96
|
+
Exclude:
|
97
|
+
- 'spec/support/gethostname_shared.rb'
|
98
|
+
- 'spec/support/timecop_shared.rb'
|
99
|
+
- 'spec/unit/loga/configuration_spec.rb'
|
100
|
+
|
101
|
+
# Offense count: 41
|
102
|
+
# Configuration parameters: AllowSubject.
|
103
|
+
RSpec/MultipleMemoizedHelpers:
|
104
|
+
Max: 12
|
105
|
+
|
106
|
+
# Offense count: 6
|
107
|
+
# Configuration parameters: AllowedPatterns.
|
108
|
+
# AllowedPatterns: ^expect_, ^assert_
|
109
|
+
RSpec/NoExpectationExample:
|
110
|
+
Exclude:
|
111
|
+
- 'spec/integration/sidekiq60_spec.rb'
|
112
|
+
- 'spec/integration/sidekiq61_spec.rb'
|
113
|
+
- 'spec/integration/sidekiq65_spec.rb'
|
114
|
+
- 'spec/integration/sidekiq7_spec.rb'
|
115
|
+
|
116
|
+
# Offense count: 2
|
117
|
+
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
|
118
|
+
# Include: **/*_spec.rb
|
119
|
+
RSpec/SpecFilePathFormat:
|
120
|
+
Exclude:
|
121
|
+
- '**/spec/routing/**/*'
|
122
|
+
- 'spec/integration/rails/action_mailer_spec.rb'
|
123
|
+
- 'spec/integration/rails/railtie_spec.rb'
|
124
|
+
|
125
|
+
# Offense count: 1
|
126
|
+
RSpec/SubjectDeclaration:
|
127
|
+
Exclude:
|
128
|
+
- 'spec/unit/loga/event_spec.rb'
|
129
|
+
|
130
|
+
# Offense count: 1
|
131
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
132
|
+
# Configuration parameters: AllowedReceivers.
|
133
|
+
Style/CollectionCompact:
|
134
|
+
Exclude:
|
135
|
+
- 'lib/loga/configuration.rb'
|
136
|
+
|
137
|
+
# Offense count: 1
|
138
|
+
# This cop supports safe autocorrection (--autocorrect).
|
139
|
+
# Configuration parameters: Keywords, RequireColon.
|
140
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
|
141
|
+
Style/CommentAnnotation:
|
142
|
+
Exclude:
|
143
|
+
- 'lib/loga/configuration.rb'
|
144
|
+
|
145
|
+
# Offense count: 25
|
146
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
147
|
+
# Configuration parameters: EnforcedStyle.
|
148
|
+
# SupportedStyles: always, always_true, never
|
149
|
+
Style/FrozenStringLiteralComment:
|
150
|
+
Exclude:
|
151
|
+
- 'Appraisals'
|
152
|
+
- 'Gemfile'
|
153
|
+
- 'Guardfile'
|
154
|
+
- 'Rakefile'
|
155
|
+
- 'lib/loga.rb'
|
156
|
+
- 'lib/loga/configuration.rb'
|
157
|
+
- 'lib/loga/event.rb'
|
158
|
+
- 'lib/loga/ext/core/tempfile.rb'
|
159
|
+
- 'lib/loga/ext/rails/rack/debug_exceptions.rb'
|
160
|
+
- 'lib/loga/ext/rails/rack/logger.rb'
|
161
|
+
- 'lib/loga/ext/rails/rack/logger3.rb'
|
162
|
+
- 'lib/loga/formatters/gelf_formatter.rb'
|
163
|
+
- 'lib/loga/formatters/simple_formatter.rb'
|
164
|
+
- 'lib/loga/log_subscribers/action_mailer.rb'
|
165
|
+
- 'lib/loga/parameter_filter.rb'
|
166
|
+
- 'lib/loga/rack/logger.rb'
|
167
|
+
- 'lib/loga/rack/request.rb'
|
168
|
+
- 'lib/loga/rack/request_id.rb'
|
169
|
+
- 'lib/loga/railtie.rb'
|
170
|
+
- 'lib/loga/service_version_strategies.rb'
|
171
|
+
- 'lib/loga/sidekiq5/job_logger.rb'
|
172
|
+
- 'lib/loga/sidekiq6/job_logger.rb'
|
173
|
+
- 'lib/loga/tagged_logging.rb'
|
174
|
+
- 'lib/loga/utilities.rb'
|
175
|
+
- 'lib/loga/version.rb'
|
176
|
+
|
177
|
+
# Offense count: 1
|
178
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
179
|
+
Style/GlobalStdStream:
|
180
|
+
Exclude:
|
181
|
+
- 'lib/loga/configuration.rb'
|
182
|
+
|
183
|
+
# Offense count: 1
|
184
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
185
|
+
# Configuration parameters: EnforcedStyle.
|
186
|
+
# SupportedStyles: literals, strict
|
187
|
+
Style/MutableConstant:
|
188
|
+
Exclude:
|
189
|
+
- 'lib/loga/rack/request.rb'
|
190
|
+
|
191
|
+
# Offense count: 2
|
192
|
+
Style/OpenStructUse:
|
193
|
+
Exclude:
|
194
|
+
- 'spec/unit/loga/formatters/gelf_formatter_spec.rb'
|
195
|
+
|
196
|
+
# Offense count: 3
|
197
|
+
# This cop supports safe autocorrection (--autocorrect).
|
198
|
+
Style/RedundantFileExtensionInRequire:
|
199
|
+
Exclude:
|
200
|
+
- 'lib/loga/railtie.rb'
|
201
|
+
|
202
|
+
# Offense count: 1
|
203
|
+
# This cop supports safe autocorrection (--autocorrect).
|
204
|
+
Style/RedundantFreeze:
|
205
|
+
Exclude:
|
206
|
+
- 'lib/loga/sidekiq7/job_logger.rb'
|
data/Appraisals
CHANGED
@@ -1,12 +1,4 @@
|
|
1
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('
|
2
|
-
appraise 'rails42' do
|
3
|
-
gem 'rails', '~> 4.2.0'
|
4
|
-
end
|
5
|
-
|
6
|
-
appraise 'rails50' do
|
7
|
-
gem 'rails', '~> 5.0.0'
|
8
|
-
end
|
9
|
-
|
1
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.0.0')
|
10
2
|
appraise 'rails52' do
|
11
3
|
gem 'rails', '~> 5.2.0'
|
12
4
|
end
|
@@ -16,60 +8,80 @@ appraise 'sinatra14' do
|
|
16
8
|
gem 'sinatra', '~> 1.4.0'
|
17
9
|
end
|
18
10
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
11
|
+
appraise 'sinatra2' do
|
12
|
+
gem 'sinatra', '~> 2.2.4'
|
13
|
+
end
|
23
14
|
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
appraise 'sinatra3' do
|
16
|
+
gem 'sinatra', '~> 3.2.0'
|
17
|
+
end
|
27
18
|
|
28
|
-
|
29
|
-
|
30
|
-
|
19
|
+
appraise 'sinatra4' do
|
20
|
+
gem 'sinatra', '~> 4.0.0'
|
21
|
+
end
|
31
22
|
|
32
|
-
|
33
|
-
|
34
|
-
|
23
|
+
appraise 'sidekiq51' do
|
24
|
+
gem 'sidekiq', '~> 5.1.0'
|
25
|
+
end
|
35
26
|
|
36
|
-
|
37
|
-
|
38
|
-
|
27
|
+
appraise 'sidekiq60' do
|
28
|
+
gem 'sidekiq', '~> 6.0.0'
|
29
|
+
end
|
39
30
|
|
40
|
-
|
41
|
-
|
42
|
-
|
31
|
+
appraise 'sidekiq61' do
|
32
|
+
gem 'sidekiq', '~> 6.1.0'
|
33
|
+
end
|
43
34
|
|
44
|
-
|
45
|
-
|
46
|
-
|
35
|
+
appraise 'sidekiq62' do
|
36
|
+
gem 'sidekiq', '~> 6.2.0'
|
37
|
+
end
|
38
|
+
|
39
|
+
appraise 'sidekiq63' do
|
40
|
+
gem 'sidekiq', '~> 6.3.0'
|
47
41
|
end
|
48
42
|
|
49
|
-
|
43
|
+
appraise 'sidekiq64' do
|
44
|
+
gem 'sidekiq', '~> 6.4.0'
|
45
|
+
end
|
46
|
+
|
47
|
+
appraise 'sidekiq65' do
|
48
|
+
gem 'sidekiq', '~> 6.5.0'
|
49
|
+
end
|
50
|
+
|
51
|
+
appraise 'sidekiq70' do
|
52
|
+
gem 'sidekiq', '~> 7.0.0'
|
53
|
+
end
|
54
|
+
|
55
|
+
appraise 'sidekiq71' do
|
56
|
+
gem 'sidekiq', '~> 7.1.0'
|
57
|
+
end
|
58
|
+
|
59
|
+
appraise 'sidekiq7' do
|
60
|
+
gem 'sidekiq', '~> 7.0'
|
61
|
+
end
|
62
|
+
|
63
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.2.0')
|
64
|
+
appraise 'rails60' do
|
65
|
+
gem 'rails', '~> 6.0.0'
|
66
|
+
end
|
67
|
+
|
50
68
|
appraise 'rails61' do
|
51
69
|
gem 'rails', '~> 6.1.4.4'
|
52
70
|
end
|
71
|
+
end
|
53
72
|
|
73
|
+
if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('3.0.0')
|
54
74
|
appraise 'rails70' do
|
55
75
|
gem 'rails', '~> 7.0.0'
|
76
|
+
gem 'base64'
|
77
|
+
gem 'mutex_m'
|
56
78
|
end
|
57
79
|
|
58
|
-
appraise '
|
59
|
-
gem '
|
80
|
+
appraise 'rails71' do
|
81
|
+
gem 'rails', '~> 7.1.0'
|
82
|
+
gem 'base64'
|
83
|
+
gem 'mutex_m'
|
60
84
|
end
|
61
|
-
|
62
|
-
appraise 'sidekiq70' do
|
63
|
-
gem 'sidekiq', '~> 7.0.0'
|
64
|
-
end
|
65
|
-
|
66
|
-
appraise 'sidekiq71' do
|
67
|
-
gem 'sidekiq', '~> 7.1.0'
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
appraise 'sidekiq51' do
|
72
|
-
gem 'sidekiq', '~> 5.1.0'
|
73
85
|
end
|
74
86
|
|
75
87
|
appraise 'unit' do
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [2.8.1] - 2023-02-12
|
8
|
+
### Added
|
9
|
+
- Improve CI pipeline
|
10
|
+
### Fixed
|
11
|
+
- Support for rails 7.1
|
12
|
+
|
13
|
+
## [2.8.0] - 2023-11-14
|
14
|
+
### Added
|
15
|
+
- Support open-telemetry and add trace_id and span_id to logs events
|
16
|
+
|
7
17
|
## [2.7.0] - 2023-03-28
|
8
18
|
### Added
|
9
19
|
- Support for sidekiq 7
|
data/Gemfile
CHANGED
@@ -3,6 +3,28 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in loga.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
+
group :development do
|
7
|
+
gem 'appraisal'
|
8
|
+
gem 'bundler', '>= 1.6'
|
9
|
+
gem 'byebug'
|
10
|
+
gem 'guard'
|
11
|
+
gem 'guard-rspec'
|
12
|
+
gem 'guard-rubocop'
|
13
|
+
gem 'pry'
|
14
|
+
gem 'rack-test'
|
15
|
+
gem 'rake'
|
16
|
+
gem 'fakeredis'
|
17
|
+
gem 'rspec', '~> 3.7'
|
18
|
+
gem 'rubocop'
|
19
|
+
gem 'rubocop-rspec'
|
20
|
+
gem 'timecop'
|
21
|
+
gem 'psych'
|
22
|
+
gem 'net-smtp'
|
23
|
+
gem 'net-pop'
|
24
|
+
gem 'net-imap'
|
25
|
+
gem 'bigdecimal'
|
26
|
+
end
|
27
|
+
|
6
28
|
group :test do
|
7
29
|
gem 'simplecov', '~> 0.17.0'
|
8
30
|
end
|
data/gemfiles/rails52.gemfile
CHANGED
@@ -4,8 +4,30 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "rails", "~> 5.2.0"
|
6
6
|
|
7
|
+
group :development do
|
8
|
+
gem "appraisal"
|
9
|
+
gem "bundler", ">= 1.6"
|
10
|
+
gem "byebug"
|
11
|
+
gem "guard"
|
12
|
+
gem "guard-rspec"
|
13
|
+
gem "guard-rubocop"
|
14
|
+
gem "pry"
|
15
|
+
gem "rack-test"
|
16
|
+
gem "rake"
|
17
|
+
gem "fakeredis"
|
18
|
+
gem "rspec", "~> 3.7"
|
19
|
+
gem "rubocop"
|
20
|
+
gem "rubocop-rspec"
|
21
|
+
gem "timecop"
|
22
|
+
gem "psych"
|
23
|
+
gem "net-smtp"
|
24
|
+
gem "net-pop"
|
25
|
+
gem "net-imap"
|
26
|
+
gem "bigdecimal"
|
27
|
+
end
|
28
|
+
|
7
29
|
group :test do
|
8
|
-
gem "simplecov"
|
30
|
+
gem "simplecov", "~> 0.17.0"
|
9
31
|
end
|
10
32
|
|
11
33
|
gemspec path: "../"
|
data/gemfiles/rails60.gemfile
CHANGED
@@ -4,6 +4,28 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "rails", "~> 6.0.0"
|
6
6
|
|
7
|
+
group :development do
|
8
|
+
gem "appraisal"
|
9
|
+
gem "bundler", ">= 1.6"
|
10
|
+
gem "byebug"
|
11
|
+
gem "guard"
|
12
|
+
gem "guard-rspec"
|
13
|
+
gem "guard-rubocop"
|
14
|
+
gem "pry"
|
15
|
+
gem "rack-test"
|
16
|
+
gem "rake"
|
17
|
+
gem "fakeredis"
|
18
|
+
gem "rspec", "~> 3.7"
|
19
|
+
gem "rubocop"
|
20
|
+
gem "rubocop-rspec"
|
21
|
+
gem "timecop"
|
22
|
+
gem "psych"
|
23
|
+
gem "net-smtp"
|
24
|
+
gem "net-pop"
|
25
|
+
gem "net-imap"
|
26
|
+
gem "bigdecimal"
|
27
|
+
end
|
28
|
+
|
7
29
|
group :test do
|
8
30
|
gem "simplecov", "~> 0.17.0"
|
9
31
|
end
|
data/gemfiles/rails61.gemfile
CHANGED
@@ -4,6 +4,28 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "rails", "~> 6.1.4.4"
|
6
6
|
|
7
|
+
group :development do
|
8
|
+
gem "appraisal"
|
9
|
+
gem "bundler", ">= 1.6"
|
10
|
+
gem "byebug"
|
11
|
+
gem "guard"
|
12
|
+
gem "guard-rspec"
|
13
|
+
gem "guard-rubocop"
|
14
|
+
gem "pry"
|
15
|
+
gem "rack-test"
|
16
|
+
gem "rake"
|
17
|
+
gem "fakeredis"
|
18
|
+
gem "rspec", "~> 3.7"
|
19
|
+
gem "rubocop"
|
20
|
+
gem "rubocop-rspec"
|
21
|
+
gem "timecop"
|
22
|
+
gem "psych"
|
23
|
+
gem "net-smtp"
|
24
|
+
gem "net-pop"
|
25
|
+
gem "net-imap"
|
26
|
+
gem "bigdecimal"
|
27
|
+
end
|
28
|
+
|
7
29
|
group :test do
|
8
30
|
gem "simplecov", "~> 0.17.0"
|
9
31
|
end
|
data/gemfiles/rails70.gemfile
CHANGED
@@ -3,6 +3,30 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "rails", "~> 7.0.0"
|
6
|
+
gem "base64"
|
7
|
+
gem "mutex_m"
|
8
|
+
|
9
|
+
group :development do
|
10
|
+
gem "appraisal"
|
11
|
+
gem "bundler", ">= 1.6"
|
12
|
+
gem "byebug"
|
13
|
+
gem "guard"
|
14
|
+
gem "guard-rspec"
|
15
|
+
gem "guard-rubocop"
|
16
|
+
gem "pry"
|
17
|
+
gem "rack-test"
|
18
|
+
gem "rake"
|
19
|
+
gem "fakeredis"
|
20
|
+
gem "rspec", "~> 3.7"
|
21
|
+
gem "rubocop"
|
22
|
+
gem "rubocop-rspec"
|
23
|
+
gem "timecop"
|
24
|
+
gem "psych"
|
25
|
+
gem "net-smtp"
|
26
|
+
gem "net-pop"
|
27
|
+
gem "net-imap"
|
28
|
+
gem "bigdecimal"
|
29
|
+
end
|
6
30
|
|
7
31
|
group :test do
|
8
32
|
gem "simplecov", "~> 0.17.0"
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "rails", "~> 7.1.0"
|
6
|
+
gem "base64"
|
7
|
+
gem "mutex_m"
|
8
|
+
|
9
|
+
group :development do
|
10
|
+
gem "appraisal"
|
11
|
+
gem "bundler", ">= 1.6"
|
12
|
+
gem "byebug"
|
13
|
+
gem "guard"
|
14
|
+
gem "guard-rspec"
|
15
|
+
gem "guard-rubocop"
|
16
|
+
gem "pry"
|
17
|
+
gem "rack-test"
|
18
|
+
gem "rake"
|
19
|
+
gem "fakeredis"
|
20
|
+
gem "rspec", "~> 3.7"
|
21
|
+
gem "rubocop"
|
22
|
+
gem "rubocop-rspec"
|
23
|
+
gem "timecop"
|
24
|
+
gem "psych"
|
25
|
+
gem "net-smtp"
|
26
|
+
gem "net-pop"
|
27
|
+
gem "net-imap"
|
28
|
+
gem "bigdecimal"
|
29
|
+
end
|
30
|
+
|
31
|
+
group :test do
|
32
|
+
gem "simplecov", "~> 0.17.0"
|
33
|
+
end
|
34
|
+
|
35
|
+
gemspec path: "../"
|
data/gemfiles/sidekiq51.gemfile
CHANGED
@@ -4,6 +4,28 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "sidekiq", "~> 5.1.0"
|
6
6
|
|
7
|
+
group :development do
|
8
|
+
gem "appraisal"
|
9
|
+
gem "bundler", ">= 1.6"
|
10
|
+
gem "byebug"
|
11
|
+
gem "guard"
|
12
|
+
gem "guard-rspec"
|
13
|
+
gem "guard-rubocop"
|
14
|
+
gem "pry"
|
15
|
+
gem "rack-test"
|
16
|
+
gem "rake"
|
17
|
+
gem "fakeredis"
|
18
|
+
gem "rspec", "~> 3.7"
|
19
|
+
gem "rubocop"
|
20
|
+
gem "rubocop-rspec"
|
21
|
+
gem "timecop"
|
22
|
+
gem "psych"
|
23
|
+
gem "net-smtp"
|
24
|
+
gem "net-pop"
|
25
|
+
gem "net-imap"
|
26
|
+
gem "bigdecimal"
|
27
|
+
end
|
28
|
+
|
7
29
|
group :test do
|
8
30
|
gem "simplecov", "~> 0.17.0"
|
9
31
|
end
|