On Dec 28, 2009, at 1:09 am, Gary Yngve wrote:
> module Enumerable
> ...
> def size
> size = 0
> each { size += 1 }
> size
> end
> end
>
> if (data.respond_to?(:lstat) && data.lstat.size >=
> USE_100_CONTINUE_PUT_SIZE) ||
> (!data.respond_to?(:lstat) && data.respond_to?(:size) &&
> data.size >= USE_100_CONTINUE_PUT_SIZE)
> headers['expect'] = '100-continue'
> end
>
> -Gary
Hi Gary
This one concerns me. Can you explain why the `!data.respond_to?(:lstat)` has
the effect it does?
Patching this will make it work, but this is clearly not the correct solution.
I suspect the error is in RightAWS S3, by making assumptions about what
responding to :size means - but I haven't thought through it much.
> (who seems to be the king of weird bugs lately)
Thanks for taking the crown =)
Ashley
--
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.