promenade 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bc9e7a5eea7ac5b45433a918e6b54091707c782787222df5c55ec7cc58ce1ac
4
- data.tar.gz: 35c5975acc909c8a5a7357b51456a18218f133071feb21085c761a0ab6dfa19e
3
+ metadata.gz: bb2dbe0d103ff6ea073b522ad86a19e45157b39cb543bcd28b19bea3e67e61db
4
+ data.tar.gz: 996c08318d59dd7566a0672270ee7309f23582b972e6956b878b6bb09f871d1f
5
5
  SHA512:
6
- metadata.gz: 7e129c3967cd01d47b1b35bd993063c0f39b691328ec4eef5c23240292e3eff55cf8a53acb2ef9e20651a310891fca04c2bb0bbccc65024688c4ed27fc10ae9c
7
- data.tar.gz: 0cf13c348c38cfd1dba981ee2b6a0e9cae756bc5e7d6160675c326abb70353aa815eb97aad3f433e700e6547049c8549e5c7139b73eb7232c34d44084e22e1e6
6
+ metadata.gz: d2229ff8f71723344362f38ad8c2828cfb36d1d23b1b0b78a6feb29133e9d6a31a6baa5acbb62a7412f01f1825e81165079163e7bbc3ce72117f54286bf0d188
7
+ data.tar.gz: 7aef5ad799f1be6d8bc7465bb30b91fc5a506e3c088f7d24b15c01bfb21abb1b7d187c115ff6a34865a2840e98c6446f20adf2a14571988a558347574253c355
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.28)
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,78 +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.28.1)
127
- rb_sys (~> 0.9)
128
- racc (1.7.1)
129
- 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)
130
163
  rack-test (2.1.0)
131
164
  rack (>= 1.3)
132
- rails (7.0.6)
133
- actioncable (= 7.0.6)
134
- actionmailbox (= 7.0.6)
135
- actionmailer (= 7.0.6)
136
- actionpack (= 7.0.6)
137
- actiontext (= 7.0.6)
138
- actionview (= 7.0.6)
139
- activejob (= 7.0.6)
140
- activemodel (= 7.0.6)
141
- activerecord (= 7.0.6)
142
- activestorage (= 7.0.6)
143
- 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)
144
180
  bundler (>= 1.15.0)
145
- railties (= 7.0.6)
146
- rails-dom-testing (2.1.1)
181
+ railties (= 7.1.3)
182
+ rails-dom-testing (2.2.0)
147
183
  activesupport (>= 5.0.0)
148
184
  minitest
149
185
  nokogiri (>= 1.6)
150
186
  rails-html-sanitizer (1.6.0)
151
187
  loofah (~> 2.21)
152
188
  nokogiri (~> 1.14)
153
- railties (7.0.6)
154
- actionpack (= 7.0.6)
155
- activesupport (= 7.0.6)
156
- method_source
189
+ railties (7.1.3)
190
+ actionpack (= 7.1.3)
191
+ activesupport (= 7.1.3)
192
+ irb
193
+ rackup (>= 1.0.0)
157
194
  rake (>= 12.2)
158
- thor (~> 1.0)
159
- zeitwerk (~> 2.5)
195
+ thor (~> 1.0, >= 1.2.2)
196
+ zeitwerk (~> 2.6)
160
197
  rainbow (3.1.1)
161
- rake (13.0.6)
162
- rb_sys (0.9.84)
163
- regexp_parser (2.8.1)
164
- rexml (3.2.5)
165
- rspec (3.12.0)
166
- rspec-core (~> 3.12.0)
167
- rspec-expectations (~> 3.12.0)
168
- rspec-mocks (~> 3.12.0)
169
- rspec-core (3.12.2)
170
- rspec-support (~> 3.12.0)
171
- 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)
172
213
  diff-lcs (>= 1.2.0, < 2.0)
173
- rspec-support (~> 3.12.0)
174
- rspec-mocks (3.12.6)
214
+ rspec-support (~> 3.13.0)
215
+ rspec-mocks (3.13.0)
175
216
  diff-lcs (>= 1.2.0, < 2.0)
176
- rspec-support (~> 3.12.0)
217
+ rspec-support (~> 3.13.0)
177
218
  rspec-rails (5.1.2)
178
219
  actionpack (>= 5.2)
179
220
  activesupport (>= 5.2)
@@ -182,55 +223,61 @@ GEM
182
223
  rspec-expectations (~> 3.10)
183
224
  rspec-mocks (~> 3.10)
184
225
  rspec-support (~> 3.10)
185
- rspec-support (3.12.1)
186
- rubocop (1.54.2)
226
+ rspec-support (3.13.0)
227
+ rubocop (1.60.2)
187
228
  json (~> 2.3)
188
229
  language_server-protocol (>= 3.17.0)
189
230
  parallel (~> 1.10)
190
- parser (>= 3.2.2.3)
231
+ parser (>= 3.3.0.2)
191
232
  rainbow (>= 2.2.2, < 4.0)
192
233
  regexp_parser (>= 1.8, < 3.0)
193
234
  rexml (>= 3.2.5, < 4.0)
194
- rubocop-ast (>= 1.28.0, < 2.0)
235
+ rubocop-ast (>= 1.30.0, < 2.0)
195
236
  ruby-progressbar (~> 1.7)
196
237
  unicode-display_width (>= 2.4.0, < 3.0)
197
- rubocop-ast (1.29.0)
238
+ rubocop-ast (1.30.0)
198
239
  parser (>= 3.2.1.0)
199
- rubocop-capybara (2.18.0)
240
+ rubocop-capybara (2.20.0)
241
+ rubocop (~> 1.41)
242
+ rubocop-factory_bot (2.25.1)
200
243
  rubocop (~> 1.41)
201
- rubocop-factory_bot (2.23.1)
202
- rubocop (~> 1.33)
203
- rubocop-performance (1.18.0)
204
- rubocop (>= 1.7.0, < 2.0)
205
- rubocop-ast (>= 0.4.0)
206
- 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)
207
248
  activesupport (>= 4.2.0)
208
249
  rack (>= 1.1)
209
250
  rubocop (>= 1.33.0, < 2.0)
210
- rubocop-rspec (2.22.0)
211
- rubocop (~> 1.33)
251
+ rubocop-ast (>= 1.30.0, < 2.0)
252
+ rubocop-rspec (2.26.1)
253
+ rubocop (~> 1.40)
212
254
  rubocop-capybara (~> 2.17)
213
255
  rubocop-factory_bot (~> 2.22)
214
256
  ruby-progressbar (1.13.0)
257
+ ruby2_keywords (0.0.5)
215
258
  simplecov (0.21.2)
216
259
  docile (~> 1.1)
217
260
  simplecov-html (~> 0.11)
218
261
  simplecov_json_formatter (~> 0.1)
219
262
  simplecov-html (0.12.3)
220
263
  simplecov_json_formatter (0.1.4)
221
- thor (1.2.2)
222
- timeout (0.4.0)
264
+ stringio (3.1.0)
265
+ thor (1.3.0)
266
+ timeout (0.4.1)
223
267
  tzinfo (2.0.6)
224
268
  concurrent-ruby (~> 1.0)
225
- unicode-display_width (2.4.2)
269
+ unicode-display_width (2.5.0)
226
270
  webrick (1.8.1)
227
- websocket-driver (0.7.5)
271
+ websocket-driver (0.7.6)
228
272
  websocket-extensions (>= 0.1.0)
229
273
  websocket-extensions (0.1.5)
230
- zeitwerk (2.6.8)
274
+ zeitwerk (2.6.13)
231
275
 
232
276
  PLATFORMS
233
- ruby
277
+ arm64-darwin-22
278
+ arm64-linux
279
+ x86_64-darwin-22
280
+ x86_64-linux
234
281
 
235
282
  DEPENDENCIES
236
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.12.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.28"
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.12.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: 2024-01-24 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.28'
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.28'
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
  - - ">="