promenade 0.11.0 → 0.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bfd38ab707b83cd27b230470eee4ec780ba798b483722a68fbf523f126468a5
4
- data.tar.gz: 9f44f7722eeec1d4e0f80c96e9f47f315e8f17545dd1c5c18e7a7213ba1092b7
3
+ metadata.gz: bb2dbe0d103ff6ea073b522ad86a19e45157b39cb543bcd28b19bea3e67e61db
4
+ data.tar.gz: 996c08318d59dd7566a0672270ee7309f23582b972e6956b878b6bb09f871d1f
5
5
  SHA512:
6
- metadata.gz: 8b46d28958a5065ebf3e1311b0b7edaed1e01d626cbccac657d2a40ba644b48dad611ab44ce7c3418c346c8266b6704710f2fc8ba84ba4727dc9e47843549518
7
- data.tar.gz: c33f7d5b259e82fed2fe3856733db53ae4b663ff3a4f9ed5190c9dc59c0053afc66f00d40c31be474472e3527f2eb522ef33b36189f99b14a466e9b060bc86b1
6
+ metadata.gz: d2229ff8f71723344362f38ad8c2828cfb36d1d23b1b0b78a6feb29133e9d6a31a6baa5acbb62a7412f01f1825e81165079163e7bbc3ce72117f54286bf0d188
7
+ data.tar.gz: 7aef5ad799f1be6d8bc7465bb30b91fc5a506e3c088f7d24b15c01bfb21abb1b7d187c115ff6a34865a2840e98c6446f20adf2a14571988a558347574253c355
@@ -9,7 +9,7 @@ jobs:
9
9
  strategy:
10
10
  fail-fast: false
11
11
  matrix:
12
- ruby: ["3.0", "3.1", "3.2"]
12
+ ruby: ["3.0", "3.1", "3.2", "3.3"]
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
15
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_from:
2
2
  - https://raw.githubusercontent.com/cookpad/guides/master/.rubocop.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.7
5
+ TargetRubyVersion: 3.0
6
6
  NewCops: enable
7
7
  Exclude:
8
8
  - vendor/**/*
data/Gemfile.lock CHANGED
@@ -1,99 +1,118 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- promenade (0.11.0)
4
+ promenade (0.12.1)
5
5
  actionpack
6
6
  activesupport (> 6.0, < 8.0)
7
- prometheus-client-mmap (~> 0.16.0)
7
+ prometheus-client-mmap (~> 1.1)
8
8
  rack
9
+ rackup
9
10
 
10
11
  GEM
11
12
  remote: https://rubygems.org/
12
13
  specs:
13
- actioncable (7.0.6)
14
- actionpack (= 7.0.6)
15
- activesupport (= 7.0.6)
14
+ actioncable (7.1.3)
15
+ actionpack (= 7.1.3)
16
+ activesupport (= 7.1.3)
16
17
  nio4r (~> 2.0)
17
18
  websocket-driver (>= 0.6.1)
18
- actionmailbox (7.0.6)
19
- actionpack (= 7.0.6)
20
- activejob (= 7.0.6)
21
- activerecord (= 7.0.6)
22
- activestorage (= 7.0.6)
23
- activesupport (= 7.0.6)
19
+ zeitwerk (~> 2.6)
20
+ actionmailbox (7.1.3)
21
+ actionpack (= 7.1.3)
22
+ activejob (= 7.1.3)
23
+ activerecord (= 7.1.3)
24
+ activestorage (= 7.1.3)
25
+ activesupport (= 7.1.3)
24
26
  mail (>= 2.7.1)
25
27
  net-imap
26
28
  net-pop
27
29
  net-smtp
28
- actionmailer (7.0.6)
29
- actionpack (= 7.0.6)
30
- actionview (= 7.0.6)
31
- activejob (= 7.0.6)
32
- activesupport (= 7.0.6)
30
+ actionmailer (7.1.3)
31
+ actionpack (= 7.1.3)
32
+ actionview (= 7.1.3)
33
+ activejob (= 7.1.3)
34
+ activesupport (= 7.1.3)
33
35
  mail (~> 2.5, >= 2.5.4)
34
36
  net-imap
35
37
  net-pop
36
38
  net-smtp
37
- rails-dom-testing (~> 2.0)
38
- actionpack (7.0.6)
39
- actionview (= 7.0.6)
40
- activesupport (= 7.0.6)
41
- rack (~> 2.0, >= 2.2.4)
39
+ rails-dom-testing (~> 2.2)
40
+ actionpack (7.1.3)
41
+ actionview (= 7.1.3)
42
+ activesupport (= 7.1.3)
43
+ nokogiri (>= 1.8.5)
44
+ racc
45
+ rack (>= 2.2.4)
46
+ rack-session (>= 1.0.1)
42
47
  rack-test (>= 0.6.3)
43
- rails-dom-testing (~> 2.0)
44
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
45
- actiontext (7.0.6)
46
- actionpack (= 7.0.6)
47
- activerecord (= 7.0.6)
48
- activestorage (= 7.0.6)
49
- activesupport (= 7.0.6)
48
+ rails-dom-testing (~> 2.2)
49
+ rails-html-sanitizer (~> 1.6)
50
+ actiontext (7.1.3)
51
+ actionpack (= 7.1.3)
52
+ activerecord (= 7.1.3)
53
+ activestorage (= 7.1.3)
54
+ activesupport (= 7.1.3)
50
55
  globalid (>= 0.6.0)
51
56
  nokogiri (>= 1.8.5)
52
- actionview (7.0.6)
53
- activesupport (= 7.0.6)
57
+ actionview (7.1.3)
58
+ activesupport (= 7.1.3)
54
59
  builder (~> 3.1)
55
- erubi (~> 1.4)
56
- rails-dom-testing (~> 2.0)
57
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
58
- activejob (7.0.6)
59
- activesupport (= 7.0.6)
60
+ erubi (~> 1.11)
61
+ rails-dom-testing (~> 2.2)
62
+ rails-html-sanitizer (~> 1.6)
63
+ activejob (7.1.3)
64
+ activesupport (= 7.1.3)
60
65
  globalid (>= 0.3.6)
61
- activemodel (7.0.6)
62
- activesupport (= 7.0.6)
63
- activerecord (7.0.6)
64
- activemodel (= 7.0.6)
65
- activesupport (= 7.0.6)
66
- activestorage (7.0.6)
67
- actionpack (= 7.0.6)
68
- activejob (= 7.0.6)
69
- activerecord (= 7.0.6)
70
- activesupport (= 7.0.6)
66
+ activemodel (7.1.3)
67
+ activesupport (= 7.1.3)
68
+ activerecord (7.1.3)
69
+ activemodel (= 7.1.3)
70
+ activesupport (= 7.1.3)
71
+ timeout (>= 0.4.0)
72
+ activestorage (7.1.3)
73
+ actionpack (= 7.1.3)
74
+ activejob (= 7.1.3)
75
+ activerecord (= 7.1.3)
76
+ activesupport (= 7.1.3)
71
77
  marcel (~> 1.0)
72
- mini_mime (>= 1.1.0)
73
- activesupport (7.0.6)
78
+ activesupport (7.1.3)
79
+ base64
80
+ bigdecimal
74
81
  concurrent-ruby (~> 1.0, >= 1.0.2)
82
+ connection_pool (>= 2.2.5)
83
+ drb
75
84
  i18n (>= 1.6, < 2)
76
85
  minitest (>= 5.1)
86
+ mutex_m
77
87
  tzinfo (~> 2.0)
78
88
  ast (2.4.2)
89
+ base64 (0.2.0)
90
+ bigdecimal (3.1.6)
79
91
  builder (3.2.4)
80
92
  byebug (11.1.3)
81
93
  climate_control (1.2.0)
82
94
  codecov (0.6.0)
83
95
  simplecov (>= 0.15, < 0.22)
84
- concurrent-ruby (1.2.2)
96
+ concurrent-ruby (1.2.3)
97
+ connection_pool (2.4.1)
85
98
  crass (1.0.6)
86
- date (3.3.3)
87
- diff-lcs (1.5.0)
99
+ date (3.3.4)
100
+ diff-lcs (1.5.1)
88
101
  docile (1.4.0)
102
+ drb (2.2.0)
103
+ ruby2_keywords
89
104
  erubi (1.12.0)
90
- globalid (1.1.0)
91
- activesupport (>= 5.0)
105
+ globalid (1.2.1)
106
+ activesupport (>= 6.1)
92
107
  i18n (1.14.1)
93
108
  concurrent-ruby (~> 1.0)
94
- json (2.6.3)
109
+ io-console (0.7.2)
110
+ irb (1.11.2)
111
+ rdoc
112
+ reline (>= 0.4.2)
113
+ json (2.7.1)
95
114
  language_server-protocol (3.17.0.3)
96
- loofah (2.21.3)
115
+ loofah (2.22.0)
97
116
  crass (~> 1.0.2)
98
117
  nokogiri (>= 1.12.0)
99
118
  mail (2.8.1)
@@ -102,76 +121,100 @@ GEM
102
121
  net-pop
103
122
  net-smtp
104
123
  marcel (1.0.2)
105
- method_source (1.0.0)
106
- mini_mime (1.1.2)
107
- mini_portile2 (2.8.4)
108
- minitest (5.18.1)
109
- net-imap (0.3.6)
124
+ mini_mime (1.1.5)
125
+ minitest (5.22.2)
126
+ mutex_m (0.2.0)
127
+ net-imap (0.4.10)
110
128
  date
111
129
  net-protocol
112
130
  net-pop (0.1.2)
113
131
  net-protocol
114
- net-protocol (0.2.1)
132
+ net-protocol (0.2.2)
115
133
  timeout
116
- net-smtp (0.3.3)
134
+ net-smtp (0.4.0.1)
117
135
  net-protocol
118
- nio4r (2.5.9)
119
- nokogiri (1.15.3)
120
- mini_portile2 (~> 2.8.2)
136
+ nio4r (2.7.0)
137
+ nokogiri (1.16.2-arm-linux)
138
+ racc (~> 1.4)
139
+ nokogiri (1.16.2-arm64-darwin)
121
140
  racc (~> 1.4)
122
- parallel (1.23.0)
123
- parser (3.2.2.3)
141
+ nokogiri (1.16.2-x86_64-darwin)
142
+ racc (~> 1.4)
143
+ nokogiri (1.16.2-x86_64-linux)
144
+ racc (~> 1.4)
145
+ parallel (1.24.0)
146
+ parser (3.3.0.5)
124
147
  ast (~> 2.4.1)
125
148
  racc
126
- prometheus-client-mmap (0.16.2)
127
- racc (1.7.1)
128
- rack (2.2.7)
149
+ prometheus-client-mmap (1.1.1)
150
+ rb_sys (~> 0.9.86)
151
+ prometheus-client-mmap (1.1.1-arm64-darwin)
152
+ rb_sys (~> 0.9.86)
153
+ prometheus-client-mmap (1.1.1-x86_64-darwin)
154
+ rb_sys (~> 0.9.86)
155
+ prometheus-client-mmap (1.1.1-x86_64-linux)
156
+ rb_sys (~> 0.9.86)
157
+ psych (5.1.2)
158
+ stringio
159
+ racc (1.7.3)
160
+ rack (3.0.9)
161
+ rack-session (2.0.0)
162
+ rack (>= 3.0.0)
129
163
  rack-test (2.1.0)
130
164
  rack (>= 1.3)
131
- rails (7.0.6)
132
- actioncable (= 7.0.6)
133
- actionmailbox (= 7.0.6)
134
- actionmailer (= 7.0.6)
135
- actionpack (= 7.0.6)
136
- actiontext (= 7.0.6)
137
- actionview (= 7.0.6)
138
- activejob (= 7.0.6)
139
- activemodel (= 7.0.6)
140
- activerecord (= 7.0.6)
141
- activestorage (= 7.0.6)
142
- activesupport (= 7.0.6)
165
+ rackup (2.1.0)
166
+ rack (>= 3)
167
+ webrick (~> 1.8)
168
+ rails (7.1.3)
169
+ actioncable (= 7.1.3)
170
+ actionmailbox (= 7.1.3)
171
+ actionmailer (= 7.1.3)
172
+ actionpack (= 7.1.3)
173
+ actiontext (= 7.1.3)
174
+ actionview (= 7.1.3)
175
+ activejob (= 7.1.3)
176
+ activemodel (= 7.1.3)
177
+ activerecord (= 7.1.3)
178
+ activestorage (= 7.1.3)
179
+ activesupport (= 7.1.3)
143
180
  bundler (>= 1.15.0)
144
- railties (= 7.0.6)
145
- rails-dom-testing (2.1.1)
181
+ railties (= 7.1.3)
182
+ rails-dom-testing (2.2.0)
146
183
  activesupport (>= 5.0.0)
147
184
  minitest
148
185
  nokogiri (>= 1.6)
149
186
  rails-html-sanitizer (1.6.0)
150
187
  loofah (~> 2.21)
151
188
  nokogiri (~> 1.14)
152
- railties (7.0.6)
153
- actionpack (= 7.0.6)
154
- activesupport (= 7.0.6)
155
- method_source
189
+ railties (7.1.3)
190
+ actionpack (= 7.1.3)
191
+ activesupport (= 7.1.3)
192
+ irb
193
+ rackup (>= 1.0.0)
156
194
  rake (>= 12.2)
157
- thor (~> 1.0)
158
- zeitwerk (~> 2.5)
195
+ thor (~> 1.0, >= 1.2.2)
196
+ zeitwerk (~> 2.6)
159
197
  rainbow (3.1.1)
160
- rake (13.0.6)
161
- regexp_parser (2.8.1)
162
- rexml (3.2.5)
163
- rspec (3.12.0)
164
- rspec-core (~> 3.12.0)
165
- rspec-expectations (~> 3.12.0)
166
- rspec-mocks (~> 3.12.0)
167
- rspec-core (3.12.2)
168
- rspec-support (~> 3.12.0)
169
- rspec-expectations (3.12.3)
198
+ rake (13.1.0)
199
+ rb_sys (0.9.87)
200
+ rdoc (6.6.2)
201
+ psych (>= 4.0.0)
202
+ regexp_parser (2.9.0)
203
+ reline (0.4.2)
204
+ io-console (~> 0.5)
205
+ rexml (3.2.6)
206
+ rspec (3.13.0)
207
+ rspec-core (~> 3.13.0)
208
+ rspec-expectations (~> 3.13.0)
209
+ rspec-mocks (~> 3.13.0)
210
+ rspec-core (3.13.0)
211
+ rspec-support (~> 3.13.0)
212
+ rspec-expectations (3.13.0)
170
213
  diff-lcs (>= 1.2.0, < 2.0)
171
- rspec-support (~> 3.12.0)
172
- rspec-mocks (3.12.6)
214
+ rspec-support (~> 3.13.0)
215
+ rspec-mocks (3.13.0)
173
216
  diff-lcs (>= 1.2.0, < 2.0)
174
- rspec-support (~> 3.12.0)
217
+ rspec-support (~> 3.13.0)
175
218
  rspec-rails (5.1.2)
176
219
  actionpack (>= 5.2)
177
220
  activesupport (>= 5.2)
@@ -180,55 +223,61 @@ GEM
180
223
  rspec-expectations (~> 3.10)
181
224
  rspec-mocks (~> 3.10)
182
225
  rspec-support (~> 3.10)
183
- rspec-support (3.12.1)
184
- rubocop (1.54.2)
226
+ rspec-support (3.13.0)
227
+ rubocop (1.60.2)
185
228
  json (~> 2.3)
186
229
  language_server-protocol (>= 3.17.0)
187
230
  parallel (~> 1.10)
188
- parser (>= 3.2.2.3)
231
+ parser (>= 3.3.0.2)
189
232
  rainbow (>= 2.2.2, < 4.0)
190
233
  regexp_parser (>= 1.8, < 3.0)
191
234
  rexml (>= 3.2.5, < 4.0)
192
- rubocop-ast (>= 1.28.0, < 2.0)
235
+ rubocop-ast (>= 1.30.0, < 2.0)
193
236
  ruby-progressbar (~> 1.7)
194
237
  unicode-display_width (>= 2.4.0, < 3.0)
195
- rubocop-ast (1.29.0)
238
+ rubocop-ast (1.30.0)
196
239
  parser (>= 3.2.1.0)
197
- rubocop-capybara (2.18.0)
240
+ rubocop-capybara (2.20.0)
241
+ rubocop (~> 1.41)
242
+ rubocop-factory_bot (2.25.1)
198
243
  rubocop (~> 1.41)
199
- rubocop-factory_bot (2.23.1)
200
- rubocop (~> 1.33)
201
- rubocop-performance (1.18.0)
202
- rubocop (>= 1.7.0, < 2.0)
203
- rubocop-ast (>= 0.4.0)
204
- rubocop-rails (2.20.2)
244
+ rubocop-performance (1.20.2)
245
+ rubocop (>= 1.48.1, < 2.0)
246
+ rubocop-ast (>= 1.30.0, < 2.0)
247
+ rubocop-rails (2.23.1)
205
248
  activesupport (>= 4.2.0)
206
249
  rack (>= 1.1)
207
250
  rubocop (>= 1.33.0, < 2.0)
208
- rubocop-rspec (2.22.0)
209
- rubocop (~> 1.33)
251
+ rubocop-ast (>= 1.30.0, < 2.0)
252
+ rubocop-rspec (2.26.1)
253
+ rubocop (~> 1.40)
210
254
  rubocop-capybara (~> 2.17)
211
255
  rubocop-factory_bot (~> 2.22)
212
256
  ruby-progressbar (1.13.0)
257
+ ruby2_keywords (0.0.5)
213
258
  simplecov (0.21.2)
214
259
  docile (~> 1.1)
215
260
  simplecov-html (~> 0.11)
216
261
  simplecov_json_formatter (~> 0.1)
217
262
  simplecov-html (0.12.3)
218
263
  simplecov_json_formatter (0.1.4)
219
- thor (1.2.2)
220
- timeout (0.4.0)
264
+ stringio (3.1.0)
265
+ thor (1.3.0)
266
+ timeout (0.4.1)
221
267
  tzinfo (2.0.6)
222
268
  concurrent-ruby (~> 1.0)
223
- unicode-display_width (2.4.2)
269
+ unicode-display_width (2.5.0)
224
270
  webrick (1.8.1)
225
- websocket-driver (0.7.5)
271
+ websocket-driver (0.7.6)
226
272
  websocket-extensions (>= 0.1.0)
227
273
  websocket-extensions (0.1.5)
228
- zeitwerk (2.6.8)
274
+ zeitwerk (2.6.13)
229
275
 
230
276
  PLATFORMS
231
- ruby
277
+ arm64-darwin-22
278
+ arm64-linux
279
+ x86_64-darwin-22
280
+ x86_64-linux
232
281
 
233
282
  DEPENDENCIES
234
283
  bundler (~> 2.0)
data/exe/promenade CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "promenade"
4
4
  require "rack"
5
+ require "rackup"
5
6
  require "prometheus/client/rack/exporter"
6
7
 
7
8
  Promenade.setup
@@ -15,6 +16,6 @@ app = Rack::Builder.app do
15
16
  run ->(_env) { [404, {}, ["visit /metrics for metrics"]] }
16
17
  end
17
18
 
18
- Signal.trap("TERM") { Rack::Handler::WEBrick.shutdown }
19
+ Signal.trap("TERM") { Rackup::Handler::WEBrick.shutdown }
19
20
 
20
- Rack::Handler::WEBrick.run app, Port: ENV.fetch("PORT", "9394"), Host: "0.0.0.0"
21
+ Rackup::Handler::WEBrick.run app, Port: ENV.fetch("PORT", "9394"), Host: "0.0.0.0"
@@ -6,7 +6,7 @@ module Promenade
6
6
 
7
7
  QUEUE_START_HEADER = "HTTP_X_QUEUE_START".freeze
8
8
 
9
- HEADER_VALUE_MATCHER = /^(?:t=)(?<timestamp>\d{10}(?:\.\d+))$/.freeze
9
+ HEADER_VALUE_MATCHER = /^(?:t=)(?<timestamp>\d{10}(?:\.\d+))$/
10
10
 
11
11
  def initialize(env:, request_received_time:)
12
12
  @env = env
@@ -1,3 +1,3 @@
1
1
  module Promenade
2
- VERSION = "0.11.0".freeze
2
+ VERSION = "0.12.1".freeze
3
3
  end
data/promenade.gemspec CHANGED
@@ -22,12 +22,13 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.required_ruby_version = ">= 2.7"
25
+ spec.required_ruby_version = ">= 3.0"
26
26
 
27
27
  spec.add_dependency "actionpack"
28
28
  spec.add_dependency "activesupport", "> 6.0", "< 8.0"
29
- spec.add_dependency "prometheus-client-mmap", "~> 0.16.0"
29
+ spec.add_dependency "prometheus-client-mmap", "~> 1.1"
30
30
  spec.add_dependency "rack"
31
+ spec.add_dependency "rackup"
31
32
  spec.add_development_dependency "bundler", "~> 2.0"
32
33
  spec.add_development_dependency "byebug"
33
34
  spec.add_development_dependency "climate_control"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promenade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-19 00:00:00.000000000 Z
11
+ date: 2024-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.16.0
53
+ version: '1.1'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 0.16.0
60
+ version: '1.1'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rack
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -72,6 +72,20 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rackup
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
75
89
  - !ruby/object:Gem::Dependency
76
90
  name: bundler
77
91
  requirement: !ruby/object:Gem::Requirement
@@ -316,7 +330,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
316
330
  requirements:
317
331
  - - ">="
318
332
  - !ruby/object:Gem::Version
319
- version: '2.7'
333
+ version: '3.0'
320
334
  required_rubygems_version: !ruby/object:Gem::Requirement
321
335
  requirements:
322
336
  - - ">="