time_bandits 0.15.1 → 0.15.2
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/run-tests.yml +5 -5
- data/Appraisals +1 -1
- data/lib/time_bandits/rack/logger.rb +3 -1
- data/lib/time_bandits/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad7490b1a4cb30c8fac2744e37b33aa6180e59bd2f901cf1d28ec1037ecc3ed4
|
4
|
+
data.tar.gz: bda546daa010c2f8ff081fa2e3339d906a55869634399e8f25431eb1d9e70051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 017cf8d0c486ae4c8d3b6167ad3463ba0db6564b4effe7a3dd16d3c50a61ea47929bff34b89bdc410c2d5b749e0c1e4f1ccd7d7699c2d790597d9accd0a019d7
|
7
|
+
data.tar.gz: 5016e7367006c7e58df1bae502f152028ab8cc4915ec8a6c4e3e6f241aa898954c38af5f1680ab433b52451da596dffdce233debf5174a03b4d367c6e388cd86
|
@@ -13,13 +13,13 @@ jobs:
|
|
13
13
|
matrix:
|
14
14
|
include:
|
15
15
|
- os: ubuntu-latest
|
16
|
-
ruby-version: 3.4.
|
16
|
+
ruby-version: 3.4.5
|
17
17
|
- os: ubuntu-latest
|
18
|
-
ruby-version: 3.3.
|
19
|
-
- os: ubuntu-
|
18
|
+
ruby-version: 3.3.9
|
19
|
+
- os: ubuntu-22.04
|
20
20
|
ruby-version: 3.2.7
|
21
|
-
- os: ubuntu-
|
22
|
-
ruby-version: 3.1.
|
21
|
+
- os: ubuntu-22.04
|
22
|
+
ruby-version: 3.1.7
|
23
23
|
|
24
24
|
runs-on: ${{ matrix.os }}
|
25
25
|
|
data/Appraisals
CHANGED
@@ -12,6 +12,7 @@ module TimeBandits
|
|
12
12
|
@app = app
|
13
13
|
@taggers = taggers || Rails.application.config.log_tags || []
|
14
14
|
@instrumenter = ActiveSupport::Notifications.instrumenter
|
15
|
+
@use_to_default_s = Gem::Version.new(Rails::VERSION::STRING) < Gem::Version.new("7.1.0")
|
15
16
|
end
|
16
17
|
|
17
18
|
def call(env)
|
@@ -43,11 +44,12 @@ module TimeBandits
|
|
43
44
|
|
44
45
|
# Started GET "/session/new" for 127.0.0.1 at 2012-09-26 14:51:42 -0700
|
45
46
|
def started_request_message(request, start_time = Time.now)
|
47
|
+
start_time_str = @use_to_default_s ? start_time.to_default_s : start_time.to_s
|
46
48
|
'Started %s "%s" for %s at %s' % [
|
47
49
|
request.request_method,
|
48
50
|
request.filtered_path,
|
49
51
|
request.ip,
|
50
|
-
|
52
|
+
start_time_str ]
|
51
53
|
end
|
52
54
|
|
53
55
|
def compute_tags(request)
|
data/lib/time_bandits/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: time_bandits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thread_variables
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
|
-
rubygems_version: 3.5.
|
141
|
+
rubygems_version: 3.5.22
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Custom performance logging for Rails
|