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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 576fb98e7943e4f2ac8b11fa90cd693fd7986b9178bde431c19ccabbc3ddd1ca
4
- data.tar.gz: 22ed09593fba7cb5af8cfc9e3f431a2398a33a8e760fa6bf855b569a9b8010a8
3
+ metadata.gz: f07e1211c59e3f7ab5272febd94b6f19cc384d9add4043a2fc1815a3d3579518
4
+ data.tar.gz: bf4af6f34c84c24542831150a159fc4f89f5bbccf39f8b35f81cf0b2fcb1658d
5
5
  SHA512:
6
- metadata.gz: 80bec9f9effd1a976d854d0edf718eb87c03d2880b98f930e7381ddd889fe9b371efab2b52f6e36f5eb65dbb75a06c955e72c2e006fa4c1b22de66dd9e0c454e
7
- data.tar.gz: 69a4dc1a160ebac95da18310212f2cb5b5c9e5badae56c21dada97823199be242d22c7d46947efd922d03603c033e9e5322b312a5a7b582a10c7e1f39e65ef28
6
+ metadata.gz: 47a615c6cb5ad51d3b391dbd2fccfe8c0413d8301cef29789394d06be886a66343ef448e8f6746a651fe17118e807530242fca6cc67b3dac1e41f9a8f03b37be
7
+ data.tar.gz: 7167c4bd8881f5452e15852e6c51f8e898bdf548d967c322957c31cdf127f9e7fbf8e8ec31f7439b1be398faf629a1ae7d7513a82299717f7a144c05c6f5a607
data/.olddoc.yml CHANGED
@@ -1,16 +1,15 @@
1
1
  ---
2
- rdoc_url: https://yhbt.net/clogger/
3
- cgit_url: https://yhbt.net/clogger.git
4
- git_url: git://yhbt.net/clogger.git
5
- public_email: clogger-public@yhbt.net
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://yhbt.net/clogger-public/
7
+ - https://YHBT.net/clogger-public/
8
8
  - http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/clogger-public/
9
- - imaps://news.public-inbox.org/inbox.comp.lang.ruby.clogger.0
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 git://yhbt.net/clogger.git
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.3.1
1
+ GIT_VERSION = 2.4.0
data/GIT-VERSION-GEN CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
3
  GVF=GIT-VERSION-FILE
4
- DEF_VER=v2.3.1
4
+ DEF_VER=v2.4.0
5
5
 
6
6
  LF='
7
7
  '
data/GNUmakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  all::
2
- RSYNC_DEST := yhbt.net:/srv/yhbt/clogger/
2
+ RSYNC_DEST := YHBT.net:/srv/yhbt/clogger/
3
3
  rfpackage := clogger
4
4
  include pkg.mk
5
5
  test-ext:
data/LATEST CHANGED
@@ -1,8 +1,9 @@
1
- === clogger 2.3.1 / 2021-05-25 23:39 UTC
1
+ === clogger 2.4.0 / 2022-06-16 16:53 UTC
2
2
 
3
- This release fixes compatibility with GC.compact on Ruby 3.x.
4
- Thanks to Ngan Pham for the patch and Aaron Patterson for the
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
- https://yhbt.net/kgio-public/CAAvYYt5Z5f2rMuXO5DMpR1-6uRvu_gXKDvqcyoZ+oNcLiTH39g@mail.gmail.com/T/
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://yhbt.net/clogger.git
104
- git clone git://repo.or.cz/clogger.git
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://yhbt.net/clogger.git
109
- * http://repo.or.cz/w/clogger.git (gitweb)
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://yhbt.net/clogger-public/
119
- * imaps://news.public-inbox.org/inbox.comp.lang.ruby.clogger.0
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@yhbt.net
134
+ * mailto:clogger-public@YHBT.net
135
135
 
136
- Homepage: https://yhbt.net/clogger/
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.1.0').dup
7
- s.homepage = 'https://yhbt.net/clogger/'
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@yhbt.net}
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
@@ -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
- t = Time.now
138
- off = t.utc_offset
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
- t = Time.now.utc
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.3.1
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: 2021-05-25 00:00:00.000000000 Z
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@yhbt.net
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://yhbt.net/clogger/
88
+ homepage: https://YHBT.net/clogger/
89
89
  licenses:
90
90
  - LGPL-2.1+
91
91
  metadata: {}