clogger 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.olddoc.yml +7 -8
- data/GIT-VERSION-FILE +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +1 -1
- data/LATEST +6 -5
- data/NEWS +9 -0
- data/README +8 -8
- data/clogger.gemspec +3 -3
- data/ext/clogger_ext/clogger.c +3 -2
- data/lib/clogger/pure.rb +4 -12
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f07e1211c59e3f7ab5272febd94b6f19cc384d9add4043a2fc1815a3d3579518
|
4
|
+
data.tar.gz: bf4af6f34c84c24542831150a159fc4f89f5bbccf39f8b35f81cf0b2fcb1658d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a615c6cb5ad51d3b391dbd2fccfe8c0413d8301cef29789394d06be886a66343ef448e8f6746a651fe17118e807530242fca6cc67b3dac1e41f9a8f03b37be
|
7
|
+
data.tar.gz: 7167c4bd8881f5452e15852e6c51f8e898bdf548d967c322957c31cdf127f9e7fbf8e8ec31f7439b1be398faf629a1ae7d7513a82299717f7a144c05c6f5a607
|
data/.olddoc.yml
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
---
|
2
|
-
rdoc_url: https://
|
3
|
-
cgit_url: https://
|
4
|
-
git_url:
|
5
|
-
public_email: clogger-public@
|
2
|
+
rdoc_url: https://YHBT.net/clogger/
|
3
|
+
cgit_url: https://YHBT.net/clogger.git
|
4
|
+
git_url: https://YHBT.net/clogger.git
|
5
|
+
public_email: clogger-public@YHBT.net
|
6
6
|
ml_url:
|
7
|
-
- https://
|
7
|
+
- https://YHBT.net/clogger-public/
|
8
8
|
- http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/clogger-public/
|
9
|
-
- imaps://
|
9
|
+
- imaps://YHBT.net/inbox.comp.lang.ruby.clogger.0
|
10
10
|
- imap://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.lang.ruby.clogger.0
|
11
11
|
- nntps://news.public-inbox.org/inbox.comp.lang.ruby.clogger
|
12
12
|
- nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.lang.ruby.clogger
|
13
13
|
source_code:
|
14
|
-
- git clone
|
15
|
-
- git clone https://yhbt.net/clogger.git
|
14
|
+
- git clone https://YHBT.net/clogger.git
|
16
15
|
- torsocks git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/clogger.git
|
data/GIT-VERSION-FILE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
GIT_VERSION = 2.
|
1
|
+
GIT_VERSION = 2.4.0
|
data/GIT-VERSION-GEN
CHANGED
data/GNUmakefile
CHANGED
data/LATEST
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
=== clogger 2.
|
1
|
+
=== clogger 2.4.0 / 2022-06-16 16:53 UTC
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
feedback for the (obsolete) kgio RubyGem:
|
3
|
+
Only 2 code changes, neither of which is really relevant for 99% of
|
4
|
+
users using the C extension and strict HTTP parsers.
|
6
5
|
|
7
|
-
|
6
|
+
escape env['REQUEST_METHOD'] for non-strict HTTP servers
|
7
|
+
pure: fix time.rb incompatibility in Ruby 3.1+
|
8
|
+
doc: drop git:// URLs, use shorter domain for IMAP links
|
8
9
|
|
data/NEWS
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
=== clogger 2.4.0 / 2022-06-16 16:53 UTC
|
2
|
+
|
3
|
+
Only 2 code changes, neither of which is really relevant for 99% of
|
4
|
+
users using the C extension and strict HTTP parsers.
|
5
|
+
|
6
|
+
escape env['REQUEST_METHOD'] for non-strict HTTP servers
|
7
|
+
pure: fix time.rb incompatibility in Ruby 3.1+
|
8
|
+
doc: drop git:// URLs, use shorter domain for IMAP links
|
9
|
+
|
1
10
|
=== clogger 2.3.1 / 2021-05-25 23:39 UTC
|
2
11
|
|
3
12
|
This release fixes compatibility with GC.compact on Ruby 3.x.
|
data/README
CHANGED
@@ -100,13 +100,13 @@ that receives a "<<" method:
|
|
100
100
|
|
101
101
|
The latest development happens in git and is published to the following:
|
102
102
|
|
103
|
-
git clone https://
|
104
|
-
git clone
|
103
|
+
git clone https://YHBT.net/clogger.git
|
104
|
+
git clone https://repo.or.cz/clogger.git
|
105
105
|
|
106
106
|
You may also browse and download snapshot tarballs:
|
107
107
|
|
108
|
-
* https://
|
109
|
-
*
|
108
|
+
* https://YHBT.net/clogger.git
|
109
|
+
* https://repo.or.cz/w/clogger.git (gitweb)
|
110
110
|
|
111
111
|
We use email for coordination and development, see below:
|
112
112
|
|
@@ -115,8 +115,8 @@ We use email for coordination and development, see below:
|
|
115
115
|
All feedback (bug reports, user/development discussion, patches, pull
|
116
116
|
requests) is done via publicly-archived email:
|
117
117
|
|
118
|
-
* https://
|
119
|
-
* imaps://
|
118
|
+
* https://YHBT.net/clogger-public/
|
119
|
+
* imaps://YHBT.net/inbox.comp.lang.ruby.clogger.0
|
120
120
|
* nntps://news.public-inbox.org/inbox.comp.lang.ruby.clogger
|
121
121
|
|
122
122
|
Tor users may also access HTTP, IMAP, and NNTP archives via .onion:
|
@@ -131,9 +131,9 @@ username + password will work.
|
|
131
131
|
No subscription or real names will ever be required to email us.
|
132
132
|
Do not send HTML email, do not top post.
|
133
133
|
|
134
|
-
* mailto:clogger-public@
|
134
|
+
* mailto:clogger-public@YHBT.net
|
135
135
|
|
136
|
-
Homepage: https://
|
136
|
+
Homepage: https://YHBT.net/clogger/
|
137
137
|
|
138
138
|
== INSTALL
|
139
139
|
|
data/clogger.gemspec
CHANGED
@@ -3,12 +3,12 @@ manifest = File.exist?('.manifest') ?
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = %q{clogger}
|
6
|
-
s.version = (ENV['VERSION'] || '2.
|
7
|
-
s.homepage = 'https://
|
6
|
+
s.version = (ENV['VERSION'] || '2.4.0').dup
|
7
|
+
s.homepage = 'https://YHBT.net/clogger/'
|
8
8
|
s.authors = ["cloggers"]
|
9
9
|
s.summary = 'configurable request logging for Rack'
|
10
10
|
s.description = File.read('README').split("\n\n")[1]
|
11
|
-
s.email = %q{clogger-public@
|
11
|
+
s.email = %q{clogger-public@YHBT.net}
|
12
12
|
s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f|
|
13
13
|
File.exist?(f)
|
14
14
|
end
|
data/ext/clogger_ext/clogger.c
CHANGED
@@ -447,10 +447,11 @@ static void append_request(struct clogger *c)
|
|
447
447
|
{
|
448
448
|
VALUE tmp;
|
449
449
|
|
450
|
-
/* REQUEST_METHOD doesn't need escaping, Rack::Lint governs it */
|
451
450
|
tmp = rb_hash_aref(c->env, g_REQUEST_METHOD);
|
452
|
-
if (!NIL_P(tmp))
|
451
|
+
if (!NIL_P(tmp)) {
|
452
|
+
tmp = byte_xs(tmp);
|
453
453
|
rb_str_buf_append(c->log_buf, tmp);
|
454
|
+
}
|
454
455
|
|
455
456
|
rb_str_buf_append(c->log_buf, g_space);
|
456
457
|
|
data/lib/clogger/pure.rb
CHANGED
@@ -118,8 +118,7 @@ private
|
|
118
118
|
version = env['HTTP_VERSION'] and version = " #{byte_xs(version)}"
|
119
119
|
qs = env['QUERY_STRING']
|
120
120
|
qs.empty? or qs = "?#{byte_xs(qs)}"
|
121
|
-
"#{env['REQUEST_METHOD']} "
|
122
|
-
"#{request_uri(env)}#{version}"
|
121
|
+
"#{byte_xs(env['REQUEST_METHOD'] || '')} #{request_uri(env)}#{version}"
|
123
122
|
when :request_uri
|
124
123
|
request_uri(env)
|
125
124
|
when :request_length
|
@@ -134,17 +133,10 @@ private
|
|
134
133
|
when :time_iso8601
|
135
134
|
Time.now.iso8601
|
136
135
|
when :time_local
|
137
|
-
|
138
|
-
|
139
|
-
sign = off < 0 ? '-' : '+'
|
140
|
-
sprintf("%02d/%s/%d:%02d:%02d:%02d #{sign}%02d%02d",
|
141
|
-
t.mday, Time::RFC2822_MONTH_NAME[t.mon - 1],
|
142
|
-
t.year, t.hour, t.min, t.sec, *(off.abs / 60).divmod(60))
|
136
|
+
# %b in Ruby is locale-independent, unlike strftime(3) in C
|
137
|
+
Time.now.strftime('%d/%b/%Y:%H:%M:%S %z')
|
143
138
|
when :time_utc
|
144
|
-
|
145
|
-
sprintf("%02d/%s/%d:%02d:%02d:%02d +0000",
|
146
|
-
t.mday, Time::RFC2822_MONTH_NAME[t.mon - 1],
|
147
|
-
t.year, t.hour, t.min, t.sec)
|
139
|
+
Time.now.utc.strftime('%d/%b/%Y:%H:%M:%S %z')
|
148
140
|
else
|
149
141
|
raise "EDOOFUS #{special_nr}"
|
150
142
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clogger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cloggers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
description: |-
|
48
48
|
clogger is Rack middleware for logging HTTP requests. The log format
|
49
49
|
is customizable so you can specify exactly which fields to log.
|
50
|
-
email: clogger-public@
|
50
|
+
email: clogger-public@YHBT.net
|
51
51
|
executables: []
|
52
52
|
extensions:
|
53
53
|
- ext/clogger_ext/extconf.rb
|
@@ -85,7 +85,7 @@ files:
|
|
85
85
|
- setup.rb
|
86
86
|
- test/test_clogger.rb
|
87
87
|
- test/test_clogger_to_path.rb
|
88
|
-
homepage: https://
|
88
|
+
homepage: https://YHBT.net/clogger/
|
89
89
|
licenses:
|
90
90
|
- LGPL-2.1+
|
91
91
|
metadata: {}
|