[#7809] uninit bug in yaml/emitter.c — "Pat Eyler" <rubypate@...>
During our hacking night, we also looked at an UNINIT bug in yaml/emitter.c
[#7813] :!~ not a symbol — noreply@...
Bugs item #4344, was opened at 2006-05-03 17:41
[#7818] (security-related) patch to ALLOC macros to prevent integer overflow bugs — "Dominique Brezinski" <dominique.brezinski@...>
While fixing the integer overflow in rb_ary_fill(), it occurred to me
[#7833] segfault on Proc#call after setting a trace_func — Mauricio Fernandez <mfp@...>
$ cat bug2.rb
[#7843] Possible YAMl bug in 1.8.4 — Damphyr <damphyr@...>
OK, while parsing the td2 data from the ruby-lang website we stumbled on
Its probably a bug. I'm not familiar with the specifics, but Ruby
[#7858] Ruby threads working with native threads — "Francis Cianfrocca" <garbagecat10@...>
I recently wrote a network-event extension for Ruby ("eventmachine" in
[#7865] Strange interactions between Struct and 'pp' — noreply@...
Bugs item #4457, was opened at 2006-05-12 17:13
[#7872] Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...>
All, I needed a nonblocking socket connect for my asynchronous-event
In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,
How about introducing the method Socket#set_nonblocking, or alternatively
Hi,
Well, it's ok then. I'm comfortable adding in the nonblocking
Hi,
How about Socket#nbconnect and Socket#nbaccept?
On 5/15/06, Francis Cianfrocca <garbagecat10@gmail.com> wrote:
In article <1147709691.180288.28647.nullmailer@x31.priv.netlab.jp>,
[#7881] Segfault on x86_64 when built with -O0 in CFLAGS — noreply@...
Bugs item #4491, was opened at 2006-05-16 12:46
[#7882] reproducible bug in DRb on OSX — cremes.devlist@...
I've been tearing my hair out the last few days trying to track down
[#7909] SCRIPT_LINES__ issue when loading a file more than once — Mauricio Fernandez <mfp@...>
SCRIPT_LINES__ is an obscure feature very few people care about, but I happen
On Fri, May 19, 2006 at 06:46:05PM +0900, Mauricio Fernandez wrote:
Hi,
[#7923] Nonblocking accept — "Francis Cianfrocca" <garbagecat10@...>
Thanks to the Matz and colleagues for adding the *_nonblock functions. They
[#7928] set_trace_func: binding has wrong self value for return events — =?ISO-8859-15?Q?Florian_Gro=DF?= <florgro@...>
Moin.
Florian Growrote:
RDoc --force flag
Hello !
I did propose a small modification for rdoc on the ruby-doc list, and
I got redirected here. Thanks for considering it !
Vincent Fourmond
> I use a lot rdoc, and I sometimes want to have an image/ subdirectory
> in the output directory, to store images in a consistent way. However,
> if I create a permanent doc/image/ directory, rdoc doesn't want to
> output anything. I know the workaround is just to add a doc/created.rid
> file, but at the same time, it would be great to simply say
>
> rdoc --force
>
> and have it work.
>
> I join a patch that does that, I just hope I'm sending it to the right
> place.
Attachments (1)
diff -Naur rdoc.old/options.rb rdoc.new/options.rb
--- rdoc.old/options.rb 2006-05-27 12:25:21.000000000 +0200
+++ rdoc.new/options.rb 2006-05-27 12:29:34.000000000 +0200
@@ -22,6 +22,9 @@
# include private and protected methods in the
# output
attr_accessor :show_all
+
+ # If set, ignores the "already existing dir" error
+ attr_accessor :force_dir_overwrite
# name of the file, class or module to display in
# the initial index page (if not specified
@@ -137,6 +140,11 @@
[ "--fmt", "-f", "format name",
"set the output formatter (see below)" ],
+ [ "--force", "-!", nil,
+ "forces to write the output, even if the \n" +
+ "directory doesn't look like it has been \n" +
+ "produced by rdoc. Use with caution !" ],
+
[ "--help", "-h", nil,
"you're looking at it" ],
@@ -396,6 +404,7 @@
when "--opname" then @op_name = arg
when "--promiscuous" then @promiscuous = true
when "--quiet" then @quiet = true
+ when "--force" then @force_dir_overwrite = true
when "--show-hash" then @show_hash = true
when "--style" then @css = arg
when "--template" then @template = arg
diff -Naur rdoc.old/rdoc.rb rdoc.new/rdoc.rb
--- rdoc.old/rdoc.rb 2006-05-27 12:25:21.000000000 +0200
+++ rdoc.new/rdoc.rb 2006-05-27 12:24:44.000000000 +0200
@@ -104,13 +104,13 @@
# then we refuse to use it, as we may clobber some
# manually generated documentation
- def setup_output_dir(op_dir)
+ def setup_output_dir(op_dir, force = false )
flag_file = File.join(op_dir, "created.rid")
if File.exist?(op_dir)
unless File.directory?(op_dir)
error "'#{op_dir}' exists, and is not a directory"
end
- unless File.file?(flag_file)
+ unless File.file?(flag_file) or force
error "\nDirectory #{op_dir} already exists, but it looks like it\n" +
"isn't an RDoc directory. Because RDoc doesn't want to risk\n" +
"destroying any of your existing files, you'll need to\n" +
@@ -238,7 +238,7 @@
options.parse(argv, GENERATORS)
unless options.all_one_file
- setup_output_dir(options.op_dir)
+ setup_output_dir(options.op_dir, options.force_dir_overwrite)
end
file_info = parse_files(options)