clogger 2.0.0 → 2.0.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
  SHA1:
3
- metadata.gz: b76e4e3732458628f99861db1ea7b40bcf6ea794
4
- data.tar.gz: 4d6ff9cf36d46a6715ae540b569962dbbe2ba519
3
+ metadata.gz: 85af41cf4cb499a42ed7dbd0fa83176b587e7897
4
+ data.tar.gz: 363e963d851ffc22fc5947b859eac866c8c4f129
5
5
  SHA512:
6
- metadata.gz: 17e4f24e68ae4be4dd878c32c364349009cbb788a434ac4109e773c12896213c3c34cc799f85a3836c82fc0687a165821177572d305fd7c37a7de7eb6bd66b72
7
- data.tar.gz: 15546434b4982ee7d71d8a05a77440a732625611e4f436c38c09bc5c56facfb9bf6e0a24ca349feb3d8b4a5cc28be94e75d9954727e0e9e663a4b6278647ace1
6
+ metadata.gz: be050e0aa75fa61a11505d0bc677cfbcbbcf7675ecb87fed56e511636db0cb85fc76cfda5e041d8c8dfb2f46c8cae14e0a3e9f76e5fb1d6812eedd156001c56e
7
+ data.tar.gz: 22da33f482565c5d9fc63d3f6a3279ba3c02dac61d634cad93e5221132831d30a0cea0ba02a829be984061bfa0c28b96edd6ee6ad0c5762c6f27e5cbdf17fca9
data/.document CHANGED
@@ -1,7 +1,5 @@
1
1
  README
2
2
  NEWS
3
- ChangeLog
4
3
  lib
5
4
  ext/clogger_ext/clogger.c
6
5
  LICENSE
7
- LATEST
data/.gitignore CHANGED
@@ -12,8 +12,7 @@ Makefile
12
12
  /local.mk
13
13
  /pkg
14
14
  /.manifest
15
- /ChangeLog
16
- /NEWS
15
+ /NEWS*
17
16
  /GIT-VERSION-FILE
18
17
  /LATEST
19
18
  /tmp
data/.manifest CHANGED
@@ -1,9 +1,8 @@
1
1
  .document
2
2
  .gitignore
3
3
  .manifest
4
- .wrongdoc.yml
4
+ .olddoc.yml
5
5
  COPYING
6
- ChangeLog
7
6
  GIT-VERSION-FILE
8
7
  GIT-VERSION-GEN
9
8
  GNUmakefile
@@ -12,7 +11,9 @@ LICENSE
12
11
  NEWS
13
12
  README
14
13
  Rakefile
14
+ archive/.gitignore
15
15
  archive/rfmig.rb
16
+ archive/slrnpull.conf
16
17
  clogger.gemspec
17
18
  ext/clogger_ext/blocking_helpers.h
18
19
  ext/clogger_ext/broken_system_compat.h
@@ -2,6 +2,6 @@
2
2
  rdoc_url: http://clogger.bogomips.org/
3
3
  cgit_url: http://bogomips.org/clogger.git
4
4
  git_url: git://bogomips.org/clogger.git
5
- public_email: clogger@librelist.org
5
+ public_email: clogger-public@bogomips.org
6
6
  private_email: clogger@bogomips.org
7
- changelog_since: 0.4.0
7
+ ml_url: http://bogomips.org/clogger-public/
data/GIT-VERSION-FILE CHANGED
@@ -1 +1 @@
1
- GIT_VERSION = 2.0.0
1
+ GIT_VERSION = 2.0.1
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.0.0
4
+ DEF_VER=v2.0.1
5
5
 
6
6
  LF='
7
7
  '
data/GNUmakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  all::
2
2
  RSYNC_DEST := clogger.bogomips.org:/srv/clogger/
3
- rfproject := clogger
4
3
  rfpackage := clogger
5
4
  include pkg.mk
6
5
  test-ext:
@@ -11,7 +10,3 @@ test-pure:
11
10
  test: test-ext test-pure
12
11
 
13
12
  .PHONY: test-ext test-pure
14
- ifneq ($(VERSION),)
15
- release::
16
- $(RAKE) publish_news VERSION=$(VERSION)
17
- endif
data/LATEST CHANGED
@@ -1,18 +1,23 @@
1
- === clogger 2.0.0 - updated website URL, cleanups / 2014-05-12 06:50 UTC
1
+ === clogger 2.0.1 - doc updates and new mailing list / 2015-01-13 02:54 UTC
2
2
 
3
- This updates the documentation to point to the new homepage
4
- at http://clogger.bogomips.org/
3
+ Most notably, there's a new mailing list at
5
4
 
6
- There is one API change which removes :to_io support,
7
- as this was never a valid Rack extension.
5
+ clogger-public@bogomips.org
8
6
 
9
- This also fixes a minor incompatibility which prevented the GVL from
10
- being released on ruby-trunk (2.2.0dev) during disk operations.
7
+ You may (optionally) subscribe to the new mailing list at:
11
8
 
12
- The mailing list continues to be hosted at librelist, but that will
13
- probably soon change to a public-inbox + mailing list.
9
+ clogger-public+subscribe@bogomips.org
14
10
 
15
- There are also minor code cleanups.
11
+ If you're on librelist, you'll need to subscribe manually since
12
+ librelist subscribers cannot be imported. Of course, you do not
13
+ have to be subscribed to post, either (please Cc: everyone as folks
14
+ may not be subscribed).
16
15
 
17
- This also relaxes license to LGPLv2.1 or later.
16
+ shortlog:
17
+ README: document $env support for reading Rack env
18
+ switch docs + website to olddoc
19
+ ext: get rid of noisy and unnecessary cast
20
+ new mailing list at clogger-public@bogomips.org
21
+ gemspec: use SPDX license abbreviation
22
+ remove Rubyforge reference in Rakefile
18
23
 
data/NEWS CHANGED
@@ -1,3 +1,26 @@
1
+ === clogger 2.0.1 - doc updates and new mailing list / 2015-01-13 02:54 UTC
2
+
3
+ Most notably, there's a new mailing list at
4
+
5
+ clogger-public@bogomips.org
6
+
7
+ You may (optionally) subscribe to the new mailing list at:
8
+
9
+ clogger-public+subscribe@bogomips.org
10
+
11
+ If you're on librelist, you'll need to subscribe manually since
12
+ librelist subscribers cannot be imported. Of course, you do not
13
+ have to be subscribed to post, either (please Cc: everyone as folks
14
+ may not be subscribed).
15
+
16
+ shortlog:
17
+ README: document $env support for reading Rack env
18
+ switch docs + website to olddoc
19
+ ext: get rid of noisy and unnecessary cast
20
+ new mailing list at clogger-public@bogomips.org
21
+ gemspec: use SPDX license abbreviation
22
+ remove Rubyforge reference in Rakefile
23
+
1
24
  === clogger 2.0.0 - updated website URL, cleanups / 2014-05-12 06:50 UTC
2
25
 
3
26
  This updates the documentation to point to the new homepage
data/README CHANGED
@@ -88,6 +88,7 @@ that receives a "<<" method:
88
88
  * $pid - process ID of the current process
89
89
  * $e{Thread.current} - Thread processing the request
90
90
  * $e{Actor.current} - Actor processing the request (Revactor or Rubinius)
91
+ * $env{variable_name} - any Rack environment variable (e.g. rack.url_scheme)
91
92
 
92
93
  == REQUIREMENTS
93
94
 
@@ -112,9 +113,9 @@ development. Patches should always be sent inline
112
113
  == CONTACT
113
114
 
114
115
  All feedback (bug reports, user/development discussion, patches, pull
115
- requests) go to the mailing list.
116
+ requests) go to the public mailing list.
116
117
 
117
- * mailto:clogger@librelist.org
118
+ * mailto:clogger-public@bogomips.org
118
119
 
119
120
  Do not send HTML mail or attachments. Do not top post.
120
121
 
data/Rakefile CHANGED
@@ -4,35 +4,3 @@ begin
4
4
  rescue LoadError
5
5
  warn "rake-compiler not available, cross compiling disabled"
6
6
  end
7
-
8
- cgit_url = "http://bogomips.org/clogger.git"
9
- git_url = 'git://bogomips.org/clogger.git'
10
-
11
- desc "post news article to rubyforge"
12
- task :publish_news do
13
- require 'rubyforge'
14
- spec = Gem::Specification.load('clogger.gemspec')
15
- tmp = Tempfile.new('rf-news')
16
- _, subject, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3)
17
- tmp.puts subject
18
- tmp.puts
19
- tmp.puts spec.description.strip
20
- tmp.puts ""
21
- tmp.puts "* #{spec.homepage}"
22
- tmp.puts "* #{spec.email}"
23
- tmp.puts "* #{git_url}"
24
- tmp.print "\nChanges:\n\n"
25
- tmp.puts body
26
- tmp.flush
27
- system(ENV["VISUAL"], tmp.path) or abort "#{ENV["VISUAL"]} failed: #$?"
28
- msg = File.readlines(tmp.path)
29
- subject = msg.shift
30
- blank = msg.shift
31
- blank == "\n" or abort "no newline after subject!"
32
- subject.strip!
33
- body = msg.join("").strip!
34
-
35
- rf = RubyForge.new.configure
36
- rf.login
37
- rf.post_news('clogger', subject, body)
38
- end
@@ -0,0 +1,3 @@
1
+ /data
2
+ /news
3
+ /requests
@@ -0,0 +1,4 @@
1
+ # group_name max expire headers_only
2
+ gmane.comp.lang.ruby.clogger.general 1000000000 1000000000 0
3
+
4
+ # usage: slrnpull -d $PWD -h news.gmane.org --no-post
data/clogger.gemspec CHANGED
@@ -1,27 +1,25 @@
1
1
  ENV["VERSION"] or abort "VERSION= must be specified"
2
2
  manifest = File.readlines('.manifest').map! { |x| x.chomp! }
3
- require 'wrongdoc'
4
- extend Wrongdoc::Gemspec
3
+ require 'olddoc'
4
+ extend Olddoc::Gemspec
5
5
  name, summary, title = readme_metadata
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = %q{clogger}
9
9
  s.version = ENV["VERSION"].dup
10
- s.homepage = Wrongdoc.config[:rdoc_url]
10
+ s.homepage = Olddoc.config['rdoc_url']
11
11
  s.authors = ["cloggers"]
12
12
  s.description = readme_description
13
- s.email = %q{clogger@librelist.org}
13
+ s.email = %q{clogger@bogomips.org}
14
14
  s.extra_rdoc_files = extra_rdoc_files(manifest)
15
15
  s.files = manifest
16
- s.rdoc_options = rdoc_options
17
- s.rubyforge_project = %q{clogger}
18
16
  s.summary = summary
19
17
  s.test_files = %w(test/test_clogger.rb test/test_clogger_to_path.rb)
20
18
 
21
19
  # HeaderHash wasn't case-insensitive in old versions
22
20
  s.add_dependency(%q<rack>, ["~> 1.0"])
23
- s.add_development_dependency(%q<wrongdoc>, "~> 1.8")
21
+ s.add_development_dependency(%q<olddoc>, "~> 1.0")
24
22
  s.extensions = %w(ext/clogger_ext/extconf.rb)
25
23
 
26
- s.licenses = %w(LGPLv2.1+)
24
+ s.licenses = %w(LGPL-2.1+)
27
25
  end
@@ -238,19 +238,18 @@ static struct clogger *clogger_get(VALUE self)
238
238
  }
239
239
 
240
240
  /* only for writing to regular files, not stupid crap like NFS */
241
- static void write_full(int fd, const void *buf, size_t count)
241
+ static void write_full(int fd, const char *buf, size_t count)
242
242
  {
243
243
  ssize_t r;
244
- unsigned long ubuf = (unsigned long)buf;
245
244
 
246
245
  while (count > 0) {
247
- r = write(fd, (void *)ubuf, count);
246
+ r = write(fd, buf, count);
248
247
 
249
248
  if ((size_t)r == count) { /* overwhelmingly likely */
250
249
  return;
251
250
  } else if (r > 0) {
252
251
  count -= r;
253
- ubuf += r;
252
+ buf += r;
254
253
  } else {
255
254
  if (errno == EINTR || errno == EAGAIN)
256
255
  continue; /* poor souls on NFS and like: */
data/pkg.mk CHANGED
@@ -1,7 +1,8 @@
1
1
  RUBY = ruby
2
2
  RAKE = rake
3
3
  RSYNC = rsync
4
- WRONGDOC = wrongdoc
4
+ OLDDOC = olddoc
5
+ RDOC = rdoc
5
6
 
6
7
  GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
7
8
  @./GIT-VERSION-GEN
@@ -12,14 +13,6 @@ RUBY_VERSION := $(shell $(RUBY) -e 'puts RUBY_VERSION')
12
13
  RUBY_ENGINE := $(shell $(RUBY) -e 'puts((RUBY_ENGINE rescue "ruby"))')
13
14
  lib := lib
14
15
 
15
- ifeq ($(shell test -f script/isolate_for_tests && echo t),t)
16
- isolate_libs := tmp/isolate/$(RUBY_ENGINE)-$(RUBY_VERSION)/isolate.mk
17
- $(isolate_libs): script/isolate_for_tests
18
- @$(RUBY) script/isolate_for_tests
19
- -include $(isolate_libs)
20
- lib := $(lib):$(ISOLATE_LIBS)
21
- endif
22
-
23
16
  ext := $(firstword $(wildcard ext/*))
24
17
  ifneq ($(ext),)
25
18
  ext_pfx := tmp/ext/$(RUBY_ENGINE)-$(RUBY_VERSION)
@@ -36,7 +29,7 @@ $(ext_pfx)/$(ext)/%: $(ext)/% $(ext_d)
36
29
  install -m 644 $< $@
37
30
  $(ext_pfx)/$(ext)/Makefile: $(ext)/extconf.rb $(ext_d) $(ext_h)
38
31
  $(RM) -f $(@D)/*.o
39
- cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb
32
+ cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb $(EXTCONF_ARGS)
40
33
  ext_sfx := _ext.$(DLEXT)
41
34
  ext_dl := $(ext_pfx)/$(ext)/$(notdir $(ext)_ext.$(DLEXT))
42
35
  $(ext_dl): $(ext_src) $(ext_pfx_src) $(ext_pfx)/$(ext)/Makefile
@@ -48,10 +41,10 @@ else
48
41
  build:
49
42
  endif
50
43
 
51
- pkg_extra += GIT-VERSION-FILE NEWS ChangeLog LATEST
52
- ChangeLog: GIT-VERSION-FILE .wrongdoc.yml
53
- $(WRONGDOC) prepare
54
- NEWS LATEST: ChangeLog
44
+ pkg_extra += GIT-VERSION-FILE NEWS LATEST
45
+ NEWS: GIT-VERSION-FILE .olddoc.yml
46
+ $(OLDDOC) prepare
47
+ LATEST: NEWS
55
48
 
56
49
  manifest:
57
50
  $(RM) .manifest
@@ -63,28 +56,20 @@ manifest:
63
56
  cmp $@+ $@ || mv $@+ $@
64
57
  $(RM) $@+
65
58
 
66
- doc:: .document .wrongdoc.yml $(pkg_extra)
59
+ doc:: .document .olddoc.yml $(pkg_extra) $(PLACEHOLDERS)
67
60
  -find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
68
61
  -find ext -type f -name '*.rbc' -exec rm -f '{}' ';'
69
62
  $(RM) -r doc
70
- $(WRONGDOC) all
63
+ $(RDOC) -f oldweb
64
+ $(OLDDOC) merge
71
65
  install -m644 COPYING doc/COPYING
66
+ install -m644 NEWS doc/NEWS
67
+ install -m644 NEWS.atom.xml doc/NEWS.atom.xml
72
68
  install -m644 $(shell LC_ALL=C grep '^[A-Z]' .document) doc/
73
69
 
74
70
  ifneq ($(VERSION),)
75
71
  pkggem := pkg/$(rfpackage)-$(VERSION).gem
76
72
  pkgtgz := pkg/$(rfpackage)-$(VERSION).tgz
77
- release_notes := release_notes-$(VERSION)
78
- release_changes := release_changes-$(VERSION)
79
-
80
- release-notes: $(release_notes)
81
- release-changes: $(release_changes)
82
- $(release_changes):
83
- $(WRONGDOC) release_changes > $@+
84
- $(VISUAL) $@+ && test -s $@+ && mv $@+ $@
85
- $(release_notes):
86
- $(WRONGDOC) release_notes > $@+
87
- $(VISUAL) $@+ && test -s $@+ && mv $@+ $@
88
73
 
89
74
  # ensures we're actually on the tagged $(VERSION), only used for release
90
75
  verify:
@@ -120,31 +105,18 @@ $(pkgtgz): manifest fix-perms
120
105
 
121
106
  package: $(pkgtgz) $(pkggem)
122
107
 
123
- test-release:: verify package $(release_notes) $(release_changes)
124
- # make tgz release on RubyForge
125
- @echo rubyforge add_release -f \
126
- -n $(release_notes) -a $(release_changes) \
127
- $(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
128
- @echo gem push $(pkggem)
129
- @echo rubyforge add_file \
130
- $(rfproject) $(rfpackage) $(VERSION) $(pkggem)
131
- release:: verify package $(release_notes) $(release_changes)
132
- # make tgz release on RubyForge
133
- rubyforge add_release -f -n $(release_notes) -a $(release_changes) \
134
- $(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
108
+ release:: verify package
135
109
  # push gem to RubyGems.org
136
110
  gem push $(pkggem)
137
- # in case of gem downloads from RubyForge releases page
138
- rubyforge add_file \
139
- $(rfproject) $(rfpackage) $(VERSION) $(pkggem)
140
111
  else
141
112
  gem install-gem: GIT-VERSION-FILE
142
113
  $(MAKE) $@ VERSION=$(GIT_VERSION)
143
114
  endif
144
115
 
145
- all:: test
116
+ all:: check
146
117
  test_units := $(wildcard test/test_*.rb)
147
- test: test-unit
118
+ test: check
119
+ check: test-unit
148
120
  test-unit: $(test_units)
149
121
  $(test_units): build
150
122
  $(RUBY) -I $(lib) $@ $(RUBY_TEST_OPTS)
@@ -154,8 +126,6 @@ ifneq ($(RSYNC_DEST),)
154
126
  publish_doc:
155
127
  -git set-file-times
156
128
  $(MAKE) doc
157
- find doc/images -type f | \
158
- TZ=UTC xargs touch -d '1970-01-01 00:00:06' doc/rdoc.css
159
129
  $(MAKE) doc_gz
160
130
  $(RSYNC) -av doc/ $(RSYNC_DEST)/
161
131
  git ls-files | xargs touch
@@ -163,7 +133,7 @@ endif
163
133
 
164
134
  # Create gzip variants of the same timestamp as the original so nginx
165
135
  # "gzip_static on" can serve the gzipped versions directly.
166
- doc_gz: docs = $(shell find doc -type f ! -regex '^.*\.\(gif\|jpg\|png\|gz\)$$')
136
+ doc_gz: docs = $(shell find doc -type f ! -regex '^.*\.gz$$')
167
137
  doc_gz:
168
138
  for i in $(docs); do \
169
139
  gzip --rsyncable -9 < $$i > $$i.gz; touch -r $$i $$i.gz; done
@@ -171,5 +141,10 @@ check-warnings:
171
141
  @(for i in $$(git ls-files '*.rb'| grep -v '^setup\.rb$$'); \
172
142
  do $(RUBY) -d -W2 -c $$i; done) | grep -v '^Syntax OK$$' || :
173
143
 
174
- .PHONY: all .FORCE-GIT-VERSION-FILE doc test $(test_units) manifest
144
+ ifneq ($(PLACEHOLDERS),)
145
+ $(PLACEHOLDERS):
146
+ echo olddoc_placeholder > $@
147
+ endif
148
+
149
+ .PHONY: all .FORCE-GIT-VERSION-FILE doc check test $(test_units) manifest
175
150
  .PHONY: check-warnings
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.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloggers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-12 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -25,43 +25,40 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: wrongdoc
28
+ name: olddoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.8'
33
+ version: '1.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.8'
40
+ version: '1.0'
41
41
  description: |-
42
42
  clogger is Rack middleware for logging HTTP requests. The log format
43
43
  is customizable so you can specify exactly which fields to log.
44
- email: clogger@librelist.org
44
+ email: clogger@bogomips.org
45
45
  executables: []
46
46
  extensions:
47
47
  - ext/clogger_ext/extconf.rb
48
48
  extra_rdoc_files:
49
49
  - README
50
50
  - NEWS
51
- - ChangeLog
52
51
  - lib/clogger.rb
53
52
  - lib/clogger/format.rb
54
53
  - lib/clogger/pure.rb
55
54
  - ext/clogger_ext/clogger.c
56
55
  - LICENSE
57
- - LATEST
58
56
  files:
59
57
  - ".document"
60
58
  - ".gitignore"
61
59
  - ".manifest"
62
- - ".wrongdoc.yml"
60
+ - ".olddoc.yml"
63
61
  - COPYING
64
- - ChangeLog
65
62
  - GIT-VERSION-FILE
66
63
  - GIT-VERSION-GEN
67
64
  - GNUmakefile
@@ -70,7 +67,9 @@ files:
70
67
  - NEWS
71
68
  - README
72
69
  - Rakefile
70
+ - archive/.gitignore
73
71
  - archive/rfmig.rb
72
+ - archive/slrnpull.conf
74
73
  - clogger.gemspec
75
74
  - ext/clogger_ext/blocking_helpers.h
76
75
  - ext/clogger_ext/broken_system_compat.h
@@ -86,14 +85,10 @@ files:
86
85
  - test/test_clogger_to_path.rb
87
86
  homepage: http://clogger.bogomips.org/
88
87
  licenses:
89
- - LGPLv2.1+
88
+ - LGPL-2.1+
90
89
  metadata: {}
91
90
  post_install_message:
92
- rdoc_options:
93
- - "-t"
94
- - clogger - configurable request logging for Rack
95
- - "-W"
96
- - http://bogomips.org/clogger.git/tree/%s
91
+ rdoc_options: []
97
92
  require_paths:
98
93
  - lib
99
94
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -107,8 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
102
  - !ruby/object:Gem::Version
108
103
  version: '0'
109
104
  requirements: []
110
- rubyforge_project: clogger
111
- rubygems_version: 2.2.2
105
+ rubyforge_project:
106
+ rubygems_version: 2.4.5
112
107
  signing_key:
113
108
  specification_version: 4
114
109
  summary: configurable request logging for Rack