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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8accff0f311ddde1179df3cc05c0eb0a879400c8a46303722f2c75ceae0a01b
4
- data.tar.gz: 972da28dd9edb00a26bb55370999837d2a79eb57c357fea44031dac538edfd64
3
+ metadata.gz: ad7490b1a4cb30c8fac2744e37b33aa6180e59bd2f901cf1d28ec1037ecc3ed4
4
+ data.tar.gz: bda546daa010c2f8ff081fa2e3339d906a55869634399e8f25431eb1d9e70051
5
5
  SHA512:
6
- metadata.gz: 76a298b94547bf8874be722d77785d464c5c6369d9df5edfd829634903d082b95050499fe5ba13ff98b842563f6ce15b8ad9b686b8f65e1a33d204af554da327
7
- data.tar.gz: 914d0c357a3d61804a97b4f98ddcab98d8cad1c817eef78a73c6bb0307083abcec99f8699676ea3efe040fd7aa4276290a1bf0de9c1333caba3709bce5c91a56
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.2
16
+ ruby-version: 3.4.5
17
17
  - os: ubuntu-latest
18
- ruby-version: 3.3.7
19
- - os: ubuntu-20.04
18
+ ruby-version: 3.3.9
19
+ - os: ubuntu-22.04
20
20
  ruby-version: 3.2.7
21
- - os: ubuntu-20.04
22
- ruby-version: 3.1.6
21
+ - os: ubuntu-22.04
22
+ ruby-version: 3.1.7
23
23
 
24
24
  runs-on: ${{ matrix.os }}
25
25
 
data/Appraisals CHANGED
@@ -9,7 +9,7 @@ if RUBY_VERSION >= "3.1"
9
9
  end
10
10
 
11
11
  if RUBY_VERSION >= "3.2"
12
- appraisals << "8.0.0.1"
12
+ appraisals << "8.0.2"
13
13
  end
14
14
 
15
15
  appraisals.each do |rails_version|
@@ -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
- start_time.to_default_s ]
52
+ start_time_str ]
51
53
  end
52
54
 
53
55
  def compute_tags(request)
@@ -1,3 +1,3 @@
1
1
  module TimeBandits
2
- VERSION = "0.15.1"
2
+ VERSION = "0.15.2"
3
3
  end
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.1
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-03-12 00:00:00.000000000 Z
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.20
141
+ rubygems_version: 3.5.22
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Custom performance logging for Rails