Here are some mangled descriptions I found in looking over
some mspec output, with my suggested alternatives.
=====
Array#+ does not infected even if an original array is untrusted
does not get infected
Array#product returns convert arguments using :to_ary
returns converted arguments
Hash#default_proc= raise an error
if passed stuff not convertible to procs
raises an error
string_each_line not care if the string is modified while substituting
does not care
string_each_line accept string-like separator
accepts
String#gsub with pattern and replacement untrusts the result
if the original string or replacement is untrusted
distrusts (or maybe)
makes the result untrusted
String#gsub with pattern and block untrusts the result
if the original string or replacement is untrusted
ditto
String#gsub! with pattern and replacement untrusts self
if replacement is untrusted
ditto
String#gsub! with pattern and block untrusts self
if block's result is untrusted
ditto
String#upto works with symbols to
works with symbols, too
Struct.new instance_eval's a passed block
processes passed block with instance_eval
Hi,
Please read http://rubyspec.org/wiki/rubyspec/Style_Guide if you have not done so.
It appears that your patch adds specs for 2 methods (each_with_object and with_object). Each method needs to be in its own file named each_with_object_spec.rb and with_object spec.rb. Since they are aliases, you need to write shared specs. There are many examples of how to do this and the style guide also explains it.
Thanks,
Brian
thank you Brian, I've already updated the patch with shared specs
Committed in 8b2916ec, thanks.