From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2ABF31F575 for ; Sat, 22 Feb 2020 01:01:47 +0000 (UTC) From: Eric Wong To: ruby-io-splice@bogomips.org Subject: [PATCH] doc: update URLs to point to YHBT.net Date: Sat, 22 Feb 2020 01:01:47 +0000 Message-Id: <20200222010147.11620-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: bogomips.org is going away since .org isn't going to be affordable, anymore. While we're at it, stop requiring olddoc to just build the gem. --- .olddoc.yml | 10 +++++----- GNUmakefile | 2 +- README | 16 ++++++++-------- ext/io_splice/io_splice_ext.c | 2 +- io_splice.gemspec | 23 ++++++++++------------- pkg.mk | 2 +- 6 files changed, 26 insertions(+), 29 deletions(-) diff --git a/.olddoc.yml b/.olddoc.yml index 0c12ae8..a8468fc 100644 --- a/.olddoc.yml +++ b/.olddoc.yml @@ -1,6 +1,6 @@ --- -cgit_url: https://bogomips.org/ruby_io_splice.git -git_url: https://bogomips.org/ruby_io_splice.git -rdoc_url: https://bogomips.org/ruby_io_splice/ -public_email: ruby-io-splice@bogomips.org -ml_url: https://bogomips.org/ruby-io-splice/ +cgit_url: https://yhbt.net/ruby_io_splice.git +git_url: https://yhbt.net/ruby_io_splice.git +rdoc_url: https://yhbt.net/ruby_io_splice/ +public_email: ruby-io-splice@yhbt.net +ml_url: https://yhbt.net/ruby-io-splice/ diff --git a/GNUmakefile b/GNUmakefile index f301d05..7fd1af6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,6 @@ all:: RCOV = rcov -RSYNC_DEST := bogomips.org:/srv/bogomips/ruby_io_splice +RSYNC_DEST := yhbt.net:/srv/yhbt/ruby_io_splice rfpackage := io_splice include pkg.mk rcov: build diff --git a/README b/README index c2a62ec..2f14528 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ The splice family of Linux system calls can transfer data between file descriptors without the need to copy data into userspace. Instead of a userspace buffer, they rely on an ordinary Unix pipe as a kernel-level buffer. The `splice' and `tee' syscalls are also provided by the -{sleepy_penguin}[https://bogomips.org/sleepy_penguin/] library. +{sleepy_penguin}[https://yhbt.net/sleepy_penguin/] library. "io_splice" remains maintained for old applications or users experimenting with the vmsplice syscalls @@ -24,7 +24,7 @@ experimenting with the vmsplice syscalls when combined with the IO::Splice::F_NONBLOCK flag. * Fully-documented library API and - {examples}[https://bogomips.org/ruby_io_splice/examples/] + {examples}[https://yhbt.net/ruby_io_splice/examples/] * Adds helpful IO#pipe_size and IO#pipe_size= accessor methods for resizing the pipe buffer in Linux 2.6.35 or later. @@ -46,7 +46,7 @@ If you use RubyGems: Otherwise grab the latest tarball from: -https://bogomips.org/ruby_io_splice/files/ +https://yhbt.net/ruby_io_splice/files/ Unpack it, and run "ruby setup.rb" @@ -69,13 +69,13 @@ standardized and available in non-Linux kernels some day. You can get the latest source via git from the following locations: - https://bogomips.org/ruby_io_splice.git + https://yhbt.net/ruby_io_splice.git https://repo.or.cz/w/ruby_io_splice.git (mirror) You may browse the code from the web and download the latest snapshot tarballs here: -* https://bogomips.org/ruby_io_splice.git +* https://yhbt.net/ruby_io_splice.git * https://repo.or.cz/w/ruby_io_splice.git (gitweb) Inline patches (from "git format-patch") to the mailing list are @@ -90,7 +90,7 @@ don't email the git mailing list or maintainer with io_splice patches. == Contact All feedback (bug reports, user/development discussion, patches, pull -requests) go to the mailing list: mailto:ruby-io-splice@bogomips.org +requests) go to the mailing list: mailto:ruby-io-splice@yhbt.net Send patches (from "git format-patch") with "git send-email" and do not send HTML email or attachments. We are very responsive to email and you @@ -98,9 +98,9 @@ will usually get a response within 24-72 hours. == Mailing List Archives -* https://bogomips.org/ruby-io-splice/ +* https://yhbt.net/ruby-io-splice/ * nntp://news.public-inbox.org/inbox.comp.lang.ruby.io-splice * nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.io-splice Anybody may post without a subscription, but HTML mail will -be rejected: mailto:ruby-io-splice@bogomips.org +be rejected: mailto:ruby-io-splice@yhbt.net diff --git a/ext/io_splice/io_splice_ext.c b/ext/io_splice/io_splice_ext.c index 97f744c..c5387a7 100644 --- a/ext/io_splice/io_splice_ext.c +++ b/ext/io_splice/io_splice_ext.c @@ -476,7 +476,7 @@ static void advance_vmsplice_args(struct vmsplice_args *a, long n) * This may allow the kernel to avoid data copies in some cases. * but is (probably) of limited usefulness in Ruby. If you have * use cases or ideas for making this more useful for Ruby users, - * please tell us at ruby-io-splice@bogomips.org! + * please tell us at ruby-io-splice@yhbt.net! * * Also consider the "sendfile" RubyGem or IO.copy_stream in Ruby 1.9 * if you want to do zero-copy file transfers to pipes or sockets. As diff --git a/io_splice.gemspec b/io_splice.gemspec index 2423eb4..b91a4c4 100644 --- a/io_splice.gemspec +++ b/io_splice.gemspec @@ -1,23 +1,20 @@ -# -*- encoding: binary -*- -ENV["VERSION"] or abort "VERSION= must be specified" -manifest = File.readlines('.manifest').map! { |x| x.chomp! } -require 'olddoc' -extend Olddoc::Gemspec -name, summary, title = readme_metadata +manifest = File.exist?('.manifest') ? + IO.readlines('.manifest').map!(&:chomp!) : `git ls-files`.split("\n") Gem::Specification.new do |s| s.name = %q{io_splice} - s.version = ENV["VERSION"].dup + s.version = (ENV["VERSION"] || '4.4.1').dup s.authors = ["Ruby io_splice hackers"] - s.description = readme_description - s.email = %q{ruby-io-splice@bogomips.org} + s.description = File.read('README').split("\n\n")[1] + s.email = %q{ruby-io-splice@yhbt.net} s.extensions = %w(ext/io_splice/extconf.rb) - s.extra_rdoc_files = extra_rdoc_files(manifest) + s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f| + File.exist?(f) + end s.files = manifest - s.homepage = Olddoc.config['rdoc_url'] - s.summary = summary + s.homepage = 'https://yhbt.net/ruby_io_splice/' + s.summary = 'zero-copy pipe I/O for Linux and Ruby (deprecated)' s.test_files = Dir['test/test_*.rb'] - s.add_development_dependency('olddoc', '~> 1.0') s.licenses = %w(LGPL) # accessor not compatible with older RubyGems end diff --git a/pkg.mk b/pkg.mk index 186db53..628830d 100644 --- a/pkg.mk +++ b/pkg.mk @@ -60,7 +60,7 @@ doc:: .document .olddoc.yml $(pkg_extra) $(PLACEHOLDERS) -find lib -type f -name '*.rbc' -exec rm -f '{}' ';' -find ext -type f -name '*.rbc' -exec rm -f '{}' ';' $(RM) -r doc - $(RDOC) -f oldweb + $(RDOC) -f dark216 $(OLDDOC) merge install -m644 COPYING doc/COPYING install -m644 NEWS doc/NEWS