From 5e1450c9d9c5611752c9729954e3108c3565d3b0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 13 Oct 2015 21:13:38 +0000 Subject: update various comments Clarify APP_CONFIG is only public for modules maintained within yahns, not external users. While we're at it, avoid the http:// -> https:// redirect for bugs.ruby-lang.org in the comment. --- lib/yahns/config.rb | 5 ++++- lib/yahns/log.rb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb index faae9c9..e39115c 100644 --- a/lib/yahns/config.rb +++ b/lib/yahns/config.rb @@ -6,7 +6,10 @@ # See http://yahns.yhbt.net/examples/yahns_multi.conf.rb for a full # example configuration file. class Yahns::Config # :nodoc: - APP_CLASS = {} # public, see yahns/rack for usage example + # public within yahns itself, NOT a public interface for users outside + # of yahns. See yahns/rack for usage example + APP_CLASS = {} + CfgBlock = Struct.new(:type, :ctx) # :nodoc: attr_reader :config_file, :config_listeners, :set attr_reader :qeggs, :app_ctx diff --git a/lib/yahns/log.rb b/lib/yahns/log.rb index a03c973..b8015c4 100644 --- a/lib/yahns/log.rb +++ b/lib/yahns/log.rb @@ -66,7 +66,7 @@ module Yahns::Log # :nodoc: # MRI will use freopen(3) here internally on std{in,out,err} fp.reopen(fp.path, "a") else - # We should not need this: http://bugs.ruby-lang.org/issues/9036 + # We should not need this: https://bugs.ruby-lang.org/issues/9036 # MRI will not call call fclose(3) or freopen(3) here # since there's no associated std{in,out,err} FILE * pointer # This should atomically use dup3(2) (or dup2(2)) syscall -- cgit v1.2.3-24-ge0c7